Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/phone

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/phone - npm Package Compare versions

Comparing version 2.4.1 to 2.4.2

6

phone/index.d.ts

@@ -1,7 +0,1 @@

// Type definitions for phone 2.4
// Project: https://github.com/aftership/phone
// Definitions by: Hagai Cohen <https://github.com/DxCx>
// Tim Brown <https://github.com/brimtown>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/**

@@ -8,0 +2,0 @@ * used to normalize mobile phone numbers into E.164 format

15

phone/package.json
{
"name": "@types/phone",
"version": "2.4.1",
"version": "2.4.2",
"description": "TypeScript definitions for phone",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/phone",
"license": "MIT",

@@ -9,9 +10,9 @@ "contributors": [

"name": "Hagai Cohen",
"url": "https://github.com/DxCx",
"githubUsername": "DxCx"
"githubUsername": "DxCx",
"url": "https://github.com/DxCx"
},
{
"name": "Tim Brown",
"url": "https://github.com/brimtown",
"githubUsername": "brimtown"
"githubUsername": "brimtown",
"url": "https://github.com/brimtown"
}

@@ -28,4 +29,4 @@ ],

"dependencies": {},
"typesPublisherContentHash": "c796c524334f3b4aebefb50f063a23586ed92fa7c295a80a8a978b90376ea75f",
"typeScriptVersion": "3.5"
"typesPublisherContentHash": "4217ad8f8eb55aa019c2614abe77fcab4dc867e874582ba51e59df26ee905c1b",
"typeScriptVersion": "4.5"
}

@@ -9,9 +9,34 @@ # Installation

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/phone.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/phone/index.d.ts)
````ts
/**
* used to normalize mobile phone numbers into E.164 format
*/
declare function phone(phoneNumber: string, countryCode?: string, allowLandLine?: boolean): string[];
declare namespace phone {
const iso3166_data: PhoneData[];
interface PhoneData {
alpha2: string;
alpha3: string;
country_code: string;
country_name: string;
mobile_begin_with: string[];
phone_number_lengths: number[];
}
}
export as namespace phone;
export = phone;
````
### Additional Details
* Last updated: Wed, 19 May 2021 02:31:48 GMT
* Last updated: Wed, 18 Oct 2023 05:47:08 GMT
* Dependencies: none
* Global values: `phone`
# Credits
These definitions were written by [Hagai Cohen](https://github.com/DxCx), and [Tim Brown](https://github.com/brimtown).
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