Comparing version 1.0.3 to 1.0.4
@@ -40,3 +40,3 @@ var iso3166_data = [ | ||
{alpha2: "AE", alpha3: "ARE", country_code: "971", country_name: "United Arab Emirates", mobile_begin_with: ["5"], phone_number_lengths: [9]}, | ||
{alpha2: "AR", alpha3: "ARG", country_code: "54", country_name: "Argentina", mobile_begin_with: ["9"], phone_number_lengths: [10]}, | ||
{alpha2: "AR", alpha3: "ARG", country_code: "54", country_name: "Argentina", mobile_begin_with: [], phone_number_lengths: [6, 7, 8, 9]}, | ||
{alpha2: "AM", alpha3: "ARM", country_code: "374", country_name: "Armenia", mobile_begin_with: ["5", "7", "9"], phone_number_lengths: [8]}, | ||
@@ -104,3 +104,3 @@ {alpha2: "AS", alpha3: "ASM", country_code: "1", country_name: "American Samoa", mobile_begin_with: ["733", "258"], phone_number_lengths: [7]}, | ||
{alpha2: "DM", alpha3: "DMA", country_code: "1", country_name: "Dominica", mobile_begin_with: [], phone_number_lengths: [7]}, | ||
{alpha2: "DK", alpha3: "DNK", country_code: "45", country_name: "Denmark", mobile_begin_with: ["5"], phone_number_lengths: [8]}, | ||
{alpha2: "DK", alpha3: "DNK", country_code: "45", country_name: "Denmark", mobile_begin_with: ["2", "30", "31", "40", "41", "42", "50", "51", "52", "53", "60", "61", "71", "81", "91", "92", "93"], phone_number_lengths: [8]}, | ||
{alpha2: "DO", alpha3: "DOM", country_code: "1", country_name: "Dominican Republic", mobile_begin_with: ["809", "829", "849"], phone_number_lengths: [10]}, | ||
@@ -142,3 +142,3 @@ {alpha2: "DZ", alpha3: "DZA", country_code: "213", country_name: "Algeria", mobile_begin_with: ["5", "6", "7"], phone_number_lengths: [9]}, | ||
{alpha2: "HN", alpha3: "HND", country_code: "504", country_name: "Honduras", mobile_begin_with: ["3", "7", "8", "9"], phone_number_lengths: [8]}, | ||
{alpha2: "HR", alpha3: "HRV", country_code: "385", country_name: "Croatia", mobile_begin_with: ["9"], phone_number_lengths: [9]}, | ||
{alpha2: "HR", alpha3: "HRV", country_code: "385", country_name: "Croatia", mobile_begin_with: ["9"], phone_number_lengths: [8, 9]}, | ||
{alpha2: "HT", alpha3: "HTI", country_code: "509", country_name: "Haiti", mobile_begin_with: ["3", "4"], phone_number_lengths: [8]}, | ||
@@ -145,0 +145,0 @@ {alpha2: "HU", alpha3: "HUN", country_code: "36", country_name: "Hungary", mobile_begin_with: ["20", "30", "31", "70"], phone_number_lengths: [9]}, |
{ | ||
"name": "phone", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "With a given country and phone number, validate and format the phone number to E.164 standard", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index", |
@@ -89,3 +89,2 @@ ## What is node-phone? | ||
phone('6123-6123', 'HKG'); // return ['+85261236123', 'HKG'] | ||
``` | ||
@@ -106,3 +105,2 @@ | ||
phone('6123-6123', 'HKG'); // return +85261236123 | ||
``` | ||
@@ -115,5 +113,4 @@ | ||
npm test | ||
``` | ||
`` | ||
## Help | ||
@@ -126,2 +123,4 @@ | ||
## Change Log | ||
* 1.0.4 Support more countries with mobile prefix | ||
* 1.0.0 `NOT compatible` with the `0.0.x branch` | ||
@@ -128,0 +127,0 @@ |
59264
137