Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

google-libphonenumber

Package Overview
Dependencies
Maintainers
1
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

google-libphonenumber - npm Package Compare versions

Comparing version 3.2.11 to 3.2.12

.github/workflows/ci.yaml

7

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc