Skip to content

Commit

Permalink
Snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
purecatamphetamine committed Apr 5, 2020
1 parent 30b9c3d commit d9bf71d
Show file tree
Hide file tree
Showing 14 changed files with 1,389 additions and 422 deletions.
16 changes: 16 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
image: node:9.11.1

pages:
script:
- npm install
- npm run metadata:generate
- npm run build
- mv ./bundle ./public
- cp --recursive ./website/* ./public/

artifacts:
paths:
- public

only:
- master
6 changes: 5 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,13 @@ npm-debug.log
/bundle/legacy.html
/bundle/input-format.min.js
/bundle/input-format.min.js.map
/bundle/input-format-react.min.js
/bundle/input-format-react.min.js.map

# intermediary metadata
/metadata.json
/PhoneNumberMetadata.xml

/test.no.babel.runtime.js
/test.no.babel.runtime.js

/website/
2 changes: 1 addition & 1 deletion AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ Google Inc.
Vonage Holdings Corp.
Ian Galpin
Ben Gertzfield
https://github.com/catamphetamine
https://gitlab.com/catamphetamine
44 changes: 44 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,50 @@ And edit the README:

<!-- (breaking change) Changed `countries` and `country_calling_codes` properties in metadata: now they're not properties but rather elements of an array (`countries` is an array now rather than an object; `countries` is `metadata[0]` and `country_calling_codes` is `metadata[1]`). If you were using a custom-generated metadata then it has to be re-generated for the new version. -->

1.7.50 / 05.04.2020
===================

* [Added](https://github.com/catamphetamine/libphonenumber-js/issues/388#issuecomment-609036293) some utility functions to `AsYouType`:

```js
/**
* Returns `true` if the phone number is being input in international format.
* In other words, returns `true` if and only if the parsed phone number starts with a `"+"`.
* @return {boolean}
*/
isInternational()

/**
* Returns the "country calling code" part of the phone number.
* Returns `undefined` if the number is not being input in international format.
* Returns "country calling code" for "non-geographic" phone numbering plans too.
* @return {string} [countryCallingCode]
*/
getCountryCallingCode()

/**
* Returns a two-letter country code of the phone number.
* Returns `undefined` for "non-geographic" phone numbering plans.
* Returns `undefined` if no phone number has been input yet.
* @return {string} [country]
*/
getCountry()

/**
* Returns `true` if the phone number is "possible".
* Is just a shortcut for `PhoneNumber.isPossible()`.
* @return {boolean}
*/
isPossible()

/**
* Returns `true` if the phone number is "valid".
* Is just a shortcut for `PhoneNumber.isValid()`.
* @return {boolean}
*/
isValid()
```

1.7.38 / 04.02.2020
===================

Expand Down
Loading

0 comments on commit d9bf71d

Please sign in to comment.