Socket
Socket
Sign inDemoInstall

libphonenumber-js

Package Overview
Dependencies
Maintainers
1
Versions
392
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libphonenumber-js - npm Package Compare versions

Comparing version 1.7.8 to 1.7.9

18

build/formatNumberForMobileDialing.js

@@ -74,3 +74,3 @@ 'use strict';

// dialed internationally, as that always works.
if ((country === _common.REGION_CODE_FOR_NON_GEO_ENTITY ||
if ((country === REGION_CODE_FOR_NON_GEO_ENTITY ||
// MX fixed line and mobile numbers should always be formatted in

@@ -132,6 +132,12 @@ // international format, even when dialed within MX. For national

var _common = require('./common');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
// This function is copy-pasted from
// https://github.com/googlei18n/libphonenumber/blob/master/javascript/i18n/phonenumbers/phonenumberutil.js
// It hasn't been tested.
// Carriers codes aren't part of this library.
// Send a PR if you want to add them.
var REGION_CODE_FOR_NON_GEO_ENTITY = '001';
/**

@@ -155,8 +161,4 @@ * The prefix that needs to be inserted in front of a Colombian landline number

*/
// This function is copy-pasted from
// https://github.com/googlei18n/libphonenumber/blob/master/javascript/i18n/phonenumbers/phonenumberutil.js
// It hasn't been tested.
// Carriers codes aren't part of this library.
// Send a PR if you want to add them.
function can_be_internationally_dialled(number) {

@@ -163,0 +165,0 @@ return true;

@@ -11,4 +11,5 @@ // This function is copy-pasted from

import getCountryCallingCode from './getCountryCallingCode';
import { REGION_CODE_FOR_NON_GEO_ENTITY } from './common';
var REGION_CODE_FOR_NON_GEO_ENTITY = '001';
/**

@@ -15,0 +16,0 @@ * The prefix that needs to be inserted in front of a Colombian landline number

{
"name": "libphonenumber-js",
"version": "1.7.8",
"version": "1.7.9",
"description": "A simpler (and smaller) rewrite of Google Android's popular libphonenumber library",

@@ -5,0 +5,0 @@ "main": "index.common.js",

@@ -26,4 +26,4 @@ # libphonenumber-js

* Doesn't parse alphabetic phone numbers like `1-800-GOT-MILK`.
* Doesn't parse or format special local-only phone numbers: emergency phone numbers like `911`, ["short codes"](https://support.twilio.com/hc/en-us/articles/223182068-What-is-a-short-code-), numbers starting with a [`*`](https://github.com/googlei18n/libphonenumber/blob/master/FALSEHOODS.md), etc.
* Doesn't use hyphens and brackes when formatting international phone numbers (looks cleaner).
* Doesn't parse or format special local-only phone numbers: emergency phone numbers like `911`, ["short codes"](https://support.twilio.com/hc/en-us/articles/223182068-What-is-a-short-code-) (short SMS-only numbers), numbers starting with a [`*`](https://github.com/googlei18n/libphonenumber/blob/master/FALSEHOODS.md) (like `*555`), etc.
* Doesn't use hyphens and brackets when formatting international phone numbers (looks cleaner).

@@ -30,0 +30,0 @@ <!--

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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