From b38a15b1864915f37531aa86be5f0edb59182385 Mon Sep 17 00:00:00 2001 From: Bossa573 Date: Mon, 8 Jul 2024 11:56:39 +0800 Subject: [PATCH] Bump to 3.1.49 - https://github.com/AfterShip/phone/issues/395 US 353 phone code --- __tests__/data.csv | 3 ++- package.json | 2 +- src/data/country_phone_data.ts | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/__tests__/data.csv b/__tests__/data.csv index f82e0c4..a2bb5e5 100644 --- a/__tests__/data.csv +++ b/__tests__/data.csv @@ -182,4 +182,5 @@ input_phone,input_country,not_validate_prefix,output_phone,output_country_alpha2 +599 4161234,,,+5994161234,BQ,BES,+599,true,,,"returns BES 1", +599 7001234,,,+5997001234,BQ,BES,+599,true,,,"returns BES 2", +599 9583 1517,,,+59995831517,CW,CUW,+599,true,,,"returns ANT 1", -+599 9683 1517,,,+59996831517,CW,CUW,+599,true,,,"returns ANT 2", \ No newline at end of file ++599 9683 1517,,,+59996831517,CW,CUW,+599,true,,,"returns ANT 2", ++1 (353) 555-8900,,,+13535558900,US,USA,+1,true,,353 area code,"returns +13535558900,USA", \ No newline at end of file diff --git a/package.json b/package.json index 0656a6c..12ed430 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "phone", - "version": "3.1.48", + "version": "3.1.49", "description": "With a given country and phone number, validate and format the phone number to E.164 standard", "main": "./dist/index.js", "types": "./dist/index.d.ts", diff --git a/src/data/country_phone_data.ts b/src/data/country_phone_data.ts index 5ddfff5..bfc2a07 100644 --- a/src/data/country_phone_data.ts +++ b/src/data/country_phone_data.ts @@ -9,7 +9,7 @@ export default [ '248', '251', '252', '253', '254', '256', '260', '262', '267', '269', '270', '272', '274', '276', '278', '281', '283', '301', '302', '303', '304', '305', '307', '308', '309', '310', '312', '313', '314', '315', '316', '317', '318', '319', '320', '321', '323', '325', '327', '329', '330', '331', '332', '334', '336', '337', - '339', '341', '346', '347', '351', '352', '360', '361', '364', '369', '380', '385', '386', '401', '402', + '339', '341', '346', '347', '351', '352', '353', '360', '361', '364', '369', '380', '385', '386', '401', '402', '404', '405', '406', '407', '408', '409', '410', '412', '413', '414', '415', '417', '419', '423', '424', '425', '430', '432', '434', '435', '440', '441', '442', '443', '445', '447', '458', '463', '464', '469', '470', '472', '475', '478', '479', '480', '484', '501', '502', '503', '504', '505', '507', '508', '509', '510', '512', '513',