google-libphonenumber
Advanced tools
Comparing version 3.2.11 to 3.2.12
{ | ||
"name": "google-libphonenumber", | ||
"version": "3.2.11", | ||
"version": "3.2.12", | ||
"description": "The up-to-date and reliable Google's libphonenumber package for node.js.", | ||
@@ -36,3 +36,2 @@ "author": { | ||
"build": "bin/build.sh", | ||
"changelog": "github_changelog_generator --no-issues --header-label='# Changelog' --future-release=v$npm_config_future_release --user ruimarinho --project google-libphonenumber && sed -i '' -e :a -e '$d;N;2,3ba' -e 'P;D' CHANGELOG.md", | ||
"lint": "eslint src/index.js test", | ||
@@ -43,3 +42,3 @@ "prepare": "npm run build", | ||
"update": "bin/update.sh", | ||
"version": "npm run changelog --future-release=$npm_package_version && npm run build && git add -A CHANGELOG.md dist" | ||
"version": "npm run build && git add -A dist" | ||
}, | ||
@@ -50,2 +49,4 @@ "devDependencies": { | ||
"eslint-config-seegno": "^6.0.0", | ||
"google-closure-compiler": "^20200719.0.0", | ||
"google-closure-library": "^20200719.0.0", | ||
"mocha": "^3.0.2", | ||
@@ -52,0 +53,0 @@ "should": "^11.1.0" |
@@ -33,3 +33,19 @@ # google-libphonenumber | ||
⚠️ _Most libphonenumber functions expect to receive an instance of `libphonenumber.PhoneNumber` which can be obtained by calling `phoneUtil.parse` or `phoneUtil.parseAndKeepRawInput` on a raw (string) number, otherwise it will throw errors like `TypeError: a.getCountryCodeOrDefault is not a function`._ | ||
This **will** work: | ||
```js | ||
phoneUtil.isValidNumberForRegion(phoneUtil.parse('202-456-1414', 'US'), 'US'); | ||
``` | ||
This **will not** work: | ||
```js | ||
phoneUtil.isValidNumberForRegion('202-456-1414', 'US'); | ||
``` | ||
More API examples after parsing the raw string: | ||
```js | ||
// Require `PhoneNumberFormat`. | ||
@@ -36,0 +52,0 @@ const PNF = require('google-libphonenumber').PhoneNumberFormat; |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
346
589523
7
2600
1
6