@phonecheck/phone-number-validator-js 1.7.2 → 1.7.3-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.es.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locales.d.ts +1 -1
- package/lib/locales.d.ts.map +1 -1
- package/lib/serverless.cjs.js +430 -243
- package/lib/serverless.esm.js +430 -243
- package/lib/serverless.esm.min.js +3 -3
- package/lib/serverless.umd.js +430 -243
- package/lib/serverless.umd.min.js +3 -3
- package/package.json +12 -15
- package/resources/carrier/en/1.bson +0 -0
- package/resources/carrier/en/229.bson +0 -0
- package/resources/carrier/en/257.bson +0 -0
- package/resources/carrier/en/267.bson +0 -0
- package/resources/carrier/en/31.bson +0 -0
- package/resources/carrier/en/32.bson +0 -0
- package/resources/carrier/en/33.bson +0 -0
- package/resources/carrier/en/34.bson +0 -0
- package/resources/carrier/en/359.bson +0 -0
- package/resources/carrier/en/44.bson +0 -0
- package/resources/carrier/en/590.bson +0 -0
- package/resources/carrier/en/591.bson +0 -0
- package/resources/carrier/en/593.bson +0 -0
- package/resources/carrier/en/599.bson +0 -0
- package/resources/carrier/en/60.bson +0 -0
- package/resources/carrier/en/7.bson +0 -0
- package/resources/carrier/en/90.bson +0 -0
- package/resources/carrier/en/972.bson +0 -0
- package/resources/carrier/en/976.bson +0 -0
- package/resources/carrier/en/992.bson +0 -0
- package/resources/carrier/ru/7.bson +0 -0
- package/resources/geocodes/en/1.bson +0 -0
- package/resources/geocodes/en/48.bson +0 -0
- package/resources/geocodes/kk/7.bson +0 -0
- package/resources/geocodes/pl/48.bson +0 -0
- package/resources/timezones.bson +0 -0
package/lib/index.es.js
CHANGED
|
@@ -75,7 +75,7 @@ function carrier(phonenumber, locale = "en") {
|
|
|
75
75
|
return getLocalizedData("carrier", phonenumber, locale, "en");
|
|
76
76
|
}
|
|
77
77
|
function timezones(phonenumber) {
|
|
78
|
-
if (!phonenumber
|
|
78
|
+
if (!(phonenumber == null ? void 0 : phonenumber.number)) {
|
|
79
79
|
return null;
|
|
80
80
|
}
|
|
81
81
|
let nr = phonenumber.number.toString();
|
package/lib/index.js
CHANGED
|
@@ -77,7 +77,7 @@ function carrier(phonenumber, locale = "en") {
|
|
|
77
77
|
return getLocalizedData("carrier", phonenumber, locale, "en");
|
|
78
78
|
}
|
|
79
79
|
function timezones(phonenumber) {
|
|
80
|
-
if (!phonenumber
|
|
80
|
+
if (!(phonenumber == null ? void 0 : phonenumber.number)) {
|
|
81
81
|
return null;
|
|
82
82
|
}
|
|
83
83
|
let nr = phonenumber.number.toString();
|
package/lib/locales.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type GeocoderLocale = 'ar' | 'be' | 'bg' | 'bs' | 'de' | 'el' | 'en' | 'es' | 'fa' | 'fi' | 'fr' | 'hr' | 'hu' | 'hy' | 'id' | 'it' | 'iw' | 'ja' | 'ko' | 'nl' | 'pl' | 'pt' | 'ro' | 'ru' | 'sq' | 'sr' | 'sv' | 'th' | 'tr' | 'uk' | 'vi' | 'zh' | 'zh_Hant';
|
|
1
|
+
export type GeocoderLocale = 'ar' | 'be' | 'bg' | 'bs' | 'de' | 'el' | 'en' | 'es' | 'fa' | 'fi' | 'fr' | 'hr' | 'hu' | 'hy' | 'id' | 'it' | 'iw' | 'ja' | 'kk' | 'ko' | 'nl' | 'pl' | 'pt' | 'ro' | 'ru' | 'sq' | 'sr' | 'sv' | 'th' | 'tr' | 'uk' | 'vi' | 'zh' | 'zh_Hant';
|
|
2
2
|
export type CarrierLocale = 'ar' | 'be' | 'en' | 'fa' | 'ko' | 'ru' | 'uk' | 'zh' | 'zh_Hant';
|
|
3
3
|
//# sourceMappingURL=locales.d.ts.map
|
package/lib/locales.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../src/locales.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../src/locales.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;AAC9Q,MAAM,MAAM,aAAa,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC"}
|