New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

phone

Package Overview
Dependencies
Maintainers
2
Versions
125
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

phone - npm Package Compare versions

Comparing version 3.1.49 to 3.1.50

2

dist/data/country_phone_data.js

@@ -21,3 +21,3 @@ "use strict";

'603', '605', '606', '607', '608', '609', '610', '612', '614', '615', '616', '617', '618', '619', '620',
'623', '626', '627', '628', '629', '630', '631', '636', '640', '641', '646', '650', '651', '656', '657', '659', '660',
'623', '626', '627', '628', '629', '630', '631', '636', '640', '641', '645', '646', '650', '651', '656', '657', '659', '660',
'661', '662', '667', '669', '678', '679', '680', '681', '682', '689', '701', '702', '703', '704', '706', '707',

@@ -24,0 +24,0 @@ '708', '712', '713', '714', '715', '716', '717', '718', '719', '720', '724', '725', '726', '727', '728', '730', '731',

@@ -6,3 +6,7 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.countryPhoneData = exports.phone = void 0;
exports.countryPhoneData = void 0;
exports.default = phone;
exports.phone = phone;
exports.default = phone;
exports.phone = phone;
const country_phone_data_1 = __importDefault(require("./data/country_phone_data"));

@@ -111,4 +115,2 @@ exports.countryPhoneData = country_phone_data_1.default;

}
exports.default = phone;
exports.phone = phone;
;

@@ -6,3 +6,7 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.validatePhoneISO3166 = exports.findCountryPhoneDataByPhoneNumber = exports.findPossibleCountryPhoneData = exports.findExactCountryPhoneData = exports.findCountryPhoneDataByCountry = void 0;
exports.findCountryPhoneDataByCountry = findCountryPhoneDataByCountry;
exports.findExactCountryPhoneData = findExactCountryPhoneData;
exports.findPossibleCountryPhoneData = findPossibleCountryPhoneData;
exports.findCountryPhoneDataByPhoneNumber = findCountryPhoneDataByPhoneNumber;
exports.validatePhoneISO3166 = validatePhoneISO3166;
const country_phone_data_1 = __importDefault(require("../data/country_phone_data"));

@@ -26,3 +30,2 @@ /**

}
exports.findCountryPhoneDataByCountry = findCountryPhoneDataByCountry;
function findExactCountryPhoneData(phoneNumber, validateMobilePrefix, countryPhoneDatum) {

@@ -52,3 +55,2 @@ // check if the phone number length match any one of the length config

}
exports.findExactCountryPhoneData = findExactCountryPhoneData;
function findPossibleCountryPhoneData(phoneNumber, validateMobilePrefix, countryPhoneDatum) {

@@ -78,3 +80,2 @@ // check if the phone number length match any one of the length config

}
exports.findPossibleCountryPhoneData = findPossibleCountryPhoneData;
/**

@@ -108,3 +109,2 @@ * get country phone data by phone number

}
exports.findCountryPhoneDataByPhoneNumber = findCountryPhoneDataByPhoneNumber;
/**

@@ -142,2 +142,1 @@ *

}
exports.validatePhoneISO3166 = validatePhoneISO3166;
{
"name": "phone",
"version": "3.1.49",
"version": "3.1.50",
"description": "With a given country and phone number, validate and format the phone number to E.164 standard",

@@ -32,5 +32,5 @@ "main": "./dist/index.js",

"devDependencies": {
"@babel/preset-env": "^7.24.5",
"@babel/preset-env": "^7.25.3",
"@types/jest": "^29.5.12",
"@types/node": "^20.12.12",
"@types/node": "^22.3.0",
"@types/papaparse": "^5.3.14",

@@ -43,3 +43,3 @@ "babel-cli": "^6.26.0",

"dotenv": "^16.4.5",
"eslint": "^9.3.0",
"eslint": "^9.9.0",
"eslint-config-aftership": "^7.0.0",

@@ -51,8 +51,8 @@ "eslint-plugin-import": "^2.29.1",

"papaparse": "^5.4.1",
"rimraf": "^5.0.7",
"ts-jest": "^29.1.3",
"rimraf": "^6.0.1",
"ts-jest": "^29.2.4",
"ts-node": "^10.9.2",
"twilio": "^5.0.4",
"typescript": "^5.4.5",
"webpack": "^5.91.0",
"twilio": "^5.2.2",
"typescript": "^5.5.4",
"webpack": "^5.93.0",
"webpack-cli": "^5.1.4",

@@ -59,0 +59,0 @@ "webpack-dev-server": "^5.0.4"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc