libphonenumber-js
Advanced tools
Comparing version 1.6.3 to 1.6.4
@@ -922,2 +922,5 @@ 'use strict'; | ||
value: function getNumber() { | ||
if (!this.countryCallingCode || !this.national_number) { | ||
return undefined; | ||
} | ||
var phoneNumber = new _PhoneNumber2.default(this.country || this.countryCallingCode, this.national_number, this.metadata.metadata); | ||
@@ -924,0 +927,0 @@ if (this.carrierCode) { |
@@ -903,2 +903,5 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
value: function getNumber() { | ||
if (!this.countryCallingCode || !this.national_number) { | ||
return undefined; | ||
} | ||
var phoneNumber = new PhoneNumber(this.country || this.countryCallingCode, this.national_number, this.metadata.metadata); | ||
@@ -905,0 +908,0 @@ if (this.carrierCode) { |
{ | ||
"name": "libphonenumber-js", | ||
"version": "1.6.3", | ||
"version": "1.6.4", | ||
"description": "A simpler (and smaller) rewrite of Google Android's popular libphonenumber library", | ||
@@ -5,0 +5,0 @@ "main": "index.common.js", |
@@ -528,3 +528,3 @@ # libphonenumber-js | ||
* `getNumber()` — Returns the [`PhoneNumber`](#phonenumber). | ||
* `getNumber()` — Returns the [`PhoneNumber`](#phonenumber) (or `undefined`). | ||
* `getTemplate()` — Returns the template used to format the output (or `undefined`). Digits (and the `+` sign, if present) are denoted by `x`-es. | ||
@@ -531,0 +531,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 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
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
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
1938610
11542