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

@types/react-phone-number-input

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-phone-number-input - npm Package Compare versions

Comparing version 3.0.3 to 3.0.4

15

react-phone-number-input/index.d.ts

@@ -7,2 +7,3 @@ // Type definitions for react-phone-number-input 3.0

// James Lismore <https://github.com/jlismore>
// Dragoș Străinu <https://github.com/strdr4605>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -36,3 +37,17 @@ // Minimum TypeScript Version: 3.5

export function parsePhoneNumber(input: string): PhoneNumber | undefined;
/**
* @see https://github.com/catamphetamine/libphonenumber-js#phonenumber
*/
export interface PhoneNumber {
number: string;
countryCallingCode: string;
nationalNumber: string;
country?: string;
ext?: string;
carrierCode?: string;
}
/**
* This is simply an alias for getCountryCallingCode() from libphonenumber-js

@@ -39,0 +54,0 @@ * @example getCountryCallingCode('US') === '1'

9

react-phone-number-input/package.json
{
"name": "@types/react-phone-number-input",
"version": "3.0.3",
"version": "3.0.4",
"description": "TypeScript definitions for react-phone-number-input",

@@ -26,2 +26,7 @@ "license": "MIT",

"githubUsername": "jlismore"
},
{
"name": "Dragoș Străinu",
"url": "https://github.com/strdr4605",
"githubUsername": "strdr4605"
}

@@ -40,4 +45,4 @@ ],

},
"typesPublisherContentHash": "346da8651e3a300ee3811b883c4d746e075f8d99754bb209f1565d2e96521df0",
"typesPublisherContentHash": "31fb24bf9cc1dcad616a6c58599e9316aceb7c7922a853095db26c8b792d4023",
"typeScriptVersion": "3.5"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Thu, 12 Mar 2020 22:42:29 GMT
* Last updated: Tue, 12 May 2020 06:44:30 GMT
* Dependencies: [@types/react](https://npmjs.com/package/@types/react)

@@ -17,2 +17,2 @@ * Global values: none

# Credits
These definitions were written by [Peter Yang](https://github.com/PeterYangIO), [Adrien Etienne](https://github.com/AdrienEtienne), [Jonathan Fleckenstein](https://github.com/fleck), and [James Lismore](https://github.com/jlismore).
These definitions were written by [Peter Yang](https://github.com/PeterYangIO), [Adrien Etienne](https://github.com/AdrienEtienne), [Jonathan Fleckenstein](https://github.com/fleck), [James Lismore](https://github.com/jlismore), and [Dragoș Străinu](https://github.com/strdr4605).

Sorry, the diff of this file is not supported yet

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