Comparing version 3.1.7 to 3.1.8
@@ -1,2 +0,2 @@ | ||
declare const _default: { | ||
declare const _default: ({ | ||
alpha2: string; | ||
@@ -8,3 +8,10 @@ alpha3: string; | ||
phone_number_lengths: number[]; | ||
}[]; | ||
} | { | ||
alpha2: string; | ||
alpha3: string; | ||
country_code: string; | ||
country_name: string; | ||
mobile_begin_with: number[]; | ||
phone_number_lengths: number[]; | ||
})[]; | ||
export default _default; |
@@ -1513,3 +1513,3 @@ "use strict"; | ||
country_name: 'Svalbard And Jan Mayen', | ||
mobile_begin_with: [], | ||
mobile_begin_with: [79], | ||
phone_number_lengths: [8] | ||
@@ -1516,0 +1516,0 @@ }, |
@@ -15,2 +15,9 @@ import countryPhoneData from '../data/country_phone_data'; | ||
phone_number_lengths: number[]; | ||
} | { | ||
alpha2: string; | ||
alpha3: string; | ||
country_code: string; | ||
country_name: string; | ||
mobile_begin_with: number[]; | ||
phone_number_lengths: number[]; | ||
} | null; | ||
@@ -24,2 +31,9 @@ export declare function findExactCountryPhoneData(phoneNumber: string, validateMobilePrefix: boolean, countryPhoneDatum: CountryPhoneDataItem): { | ||
phone_number_lengths: number[]; | ||
} | { | ||
alpha2: string; | ||
alpha3: string; | ||
country_code: string; | ||
country_name: string; | ||
mobile_begin_with: number[]; | ||
phone_number_lengths: number[]; | ||
} | null; | ||
@@ -33,2 +47,9 @@ export declare function findPossibleCountryPhoneData(phoneNumber: string, validateMobilePrefix: boolean, countryPhoneDatum: CountryPhoneDataItem): { | ||
phone_number_lengths: number[]; | ||
} | { | ||
alpha2: string; | ||
alpha3: string; | ||
country_code: string; | ||
country_name: string; | ||
mobile_begin_with: number[]; | ||
phone_number_lengths: number[]; | ||
} | null | undefined; | ||
@@ -50,2 +71,9 @@ /** | ||
phone_number_lengths: number[]; | ||
} | { | ||
alpha2: string; | ||
alpha3: string; | ||
country_code: string; | ||
country_name: string; | ||
mobile_begin_with: number[]; | ||
phone_number_lengths: number[]; | ||
} | null | undefined; | ||
@@ -59,2 +87,9 @@ possibleCountryPhoneData: { | ||
phone_number_lengths: number[]; | ||
} | { | ||
alpha2: string; | ||
alpha3: string; | ||
country_code: string; | ||
country_name: string; | ||
mobile_begin_with: number[]; | ||
phone_number_lengths: number[]; | ||
} | null | undefined; | ||
@@ -61,0 +96,0 @@ }; |
{ | ||
"name": "phone", | ||
"version": "3.1.7", | ||
"version": "3.1.8", | ||
"description": "With a given country and phone number, validate and format the phone number to E.164 standard", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
85988
2323