Huge News!Announcing our $40M Series B led by Abstract Ventures.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.11 to 3.1.12

2

dist/data/country_phone_data.js

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

country_name: 'Saint Pierre And Miquelon',
mobile_begin_with: ['55'],
mobile_begin_with: ['55', '41'],
phone_number_lengths: [6]

@@ -1572,0 +1572,0 @@ },

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

processedPhoneNumber = processedPhoneNumber.replace(/\D/g, '');
let foundCountryPhoneData = utility_1.findCountryPhoneDataByCountry(processedCountry);
let foundCountryPhoneData = (0, utility_1.findCountryPhoneDataByCountry)(processedCountry);
if (!foundCountryPhoneData) {

@@ -58,3 +58,3 @@ return invalidResult;

// try to find the country phone data by the phone number
const { exactCountryPhoneData, possibleCountryPhoneData } = utility_1.findCountryPhoneDataByPhoneNumber(processedPhoneNumber, validateMobilePrefix);
const { exactCountryPhoneData, possibleCountryPhoneData } = (0, utility_1.findCountryPhoneDataByPhoneNumber)(processedPhoneNumber, validateMobilePrefix);
if (exactCountryPhoneData) {

@@ -86,3 +86,3 @@ foundCountryPhoneData = exactCountryPhoneData;

}
let validateResult = utility_1.validatePhoneISO3166(processedPhoneNumber, foundCountryPhoneData, validateMobilePrefix, hasPlusSign);
let validateResult = (0, utility_1.validatePhoneISO3166)(processedPhoneNumber, foundCountryPhoneData, validateMobilePrefix, hasPlusSign);
if (validateResult) {

@@ -99,4 +99,4 @@ return {

// also try to validate against CAN for default country, as CAN is also start with +1
foundCountryPhoneData = utility_1.findCountryPhoneDataByCountry('CAN');
validateResult = utility_1.validatePhoneISO3166(processedPhoneNumber, foundCountryPhoneData, validateMobilePrefix, hasPlusSign);
foundCountryPhoneData = (0, utility_1.findCountryPhoneDataByCountry)('CAN');
validateResult = (0, utility_1.validatePhoneISO3166)(processedPhoneNumber, foundCountryPhoneData, validateMobilePrefix, hasPlusSign);
if (validateResult) {

@@ -103,0 +103,0 @@ return {

{
"name": "phone",
"version": "3.1.11",
"version": "3.1.12",
"description": "With a given country and phone number, validate and format the phone number to E.164 standard",

@@ -31,26 +31,26 @@ "main": "./dist/index.js",

"devDependencies": {
"@babel/preset-env": "^7.15.0",
"@babel/preset-env": "^7.16.11",
"@types/jest": "^26.0.24",
"@types/node": "^14.14.28",
"@types/papaparse": "^5.2.6",
"@types/papaparse": "^5.3.1",
"babel-cli": "^6.26.0",
"babel-loader": "^8.2.2",
"babel-loader": "^8.2.3",
"babel-minify-webpack-plugin": "^0.3.1",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.7.0",
"dotenv": "^10.0.0",
"dotenv": "^14.3.2",
"eslint": "^7.32.0",
"eslint-config-aftership": "^7.0.0",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-import": "^2.25.4",
"idempotent-babel-polyfill": "^7.4.4",
"jest": "^27.0.6",
"jest": "^27.4.7",
"lodash": "^4.17.21",
"papaparse": "^5.3.1",
"rimraf": "^3.0.2",
"ts-jest": "^27.0.4",
"ts-node": "^10.1.0",
"twilio": "^3.66.1",
"typescript": "^4.3.5",
"webpack": "^5.48.0",
"webpack-cli": "^4.7.2",
"ts-jest": "^27.1.3",
"ts-node": "^10.4.0",
"twilio": "^3.73.1",
"typescript": "^4.5.5",
"webpack": "^5.67.0",
"webpack-cli": "^4.9.2",
"webpack-dev-server": "^3.11.2"

@@ -57,0 +57,0 @@ },

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