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

react-telephone-input

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-telephone-input - npm Package Compare versions

Comparing version 4.3.4 to 4.4.4

3

es/ReactTelephoneInput.js

@@ -165,5 +165,2 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

this._cursorToEnd(true);
if (typeof this.props.onChange === 'function') {
this.props.onChange(this.state.formattedNumber, this.state.selectedCountry);
}
},

@@ -170,0 +167,0 @@ shouldComponentUpdate: function shouldComponentUpdate(nextProps, nextState) {

@@ -172,5 +172,2 @@ 'use strict';

this._cursorToEnd(true);
if (typeof this.props.onChange === 'function') {
this.props.onChange(this.state.formattedNumber, this.state.selectedCountry);
}
},

@@ -177,0 +174,0 @@ shouldComponentUpdate: function shouldComponentUpdate(nextProps, nextState) {

140

package.json
{
"name": "react-telephone-input",
"version": "4.3.4",
"description": "React component for entering and validating international telephone numbers",
"main": "lib/ReactTelephoneInput.js",
"modules": "es/ReactTelephoneInput.js",
"files": [
"css",
"es",
"lib",
"umd"
],
"scripts": {
"build": "npx nwb build-react-component",
"clean": "npx nwb clean-module && npx clean-demo",
"start": "nwb serve-react-demo",
"lint": "eslint src",
"test": "jest",
"test: coverage": "jest --coverage",
"test:watch": "jest --watch"
},
"jest": {
"transform": {
"^.+\\.js$": "./jest.transform.js"
"name": "react-telephone-input",
"version": "4.4.4",
"description":
"React component for entering and validating international telephone numbers",
"main": "lib/ReactTelephoneInput.js",
"modules": "es/ReactTelephoneInput.js",
"files": ["css", "es", "lib", "umd"],
"scripts": {
"build": "npx nwb build-react-component",
"clean": "npx nwb clean-module && npx clean-demo",
"start": "nwb serve-react-demo",
"lint": "eslint src",
"test": "jest",
"test: coverage": "jest --coverage",
"test:watch": "jest --watch"
},
"jest": {
"transform": {
"^.+\\.js$": "./jest.transform.js"
}
},
"repository": {
"type": "git",
"url": "https://github.com/mukeshsoni/react-telephone-input"
},
"keywords": [
"react-component",
"react-telephone-input",
"international-telephone-input",
"react"
],
"author": "Mukesh Soni",
"license": "MIT",
"bugs": {
"url": "https://github.com/mukeshsoni/react-telephone-input/issues"
},
"homepage": "https://github.com/mukeshsoni/react-telephone-input",
"devDependencies": {
"babel-jest": "20.0.3",
"babel-preset-latest": "6.24.1",
"babel-preset-react": "6.24.1",
"chai": "^3.0.0",
"dirty-chai": "^1.2.2",
"enzyme": "^2.7.1",
"eslint": "0.23.0",
"jest": "20.0.4",
"nwb": "0.18.x",
"react": "^15.x",
"react-addons-test-utils": "15.6.0",
"react-dom": "^15.3.2",
"react-test-renderer": "15.6.1",
"regenerator-runtime": "0.10.5"
},
"dependencies": {
"classnames": "^2.1.2",
"country-telephone-data": "0.4.2",
"create-react-class": "^15.6.0",
"lodash": "4.17.4",
"prop-types": "^15.5.10",
"react-onclickoutside": "^6.5.0"
},
"peerDependencies": {
"react": ">=0.14.0 || ^15.0.0"
},
"browserify-shim": {
"classnames": "global:classNames",
"react": "global:React",
"lodash": "global:lodash"
}
},
"repository": {
"type": "git",
"url": "https://github.com/mukeshsoni/react-telephone-input"
},
"keywords": [
"react-component",
"react-telephone-input",
"international-telephone-input",
"react"
],
"author": "Mukesh Soni",
"license": "MIT",
"bugs": {
"url": "https://github.com/mukeshsoni/react-telephone-input/issues"
},
"homepage": "https://github.com/mukeshsoni/react-telephone-input",
"devDependencies": {
"babel-jest": "20.0.3",
"babel-preset-latest": "6.24.1",
"babel-preset-react": "6.24.1",
"chai": "^3.0.0",
"dirty-chai": "^1.2.2",
"enzyme": "^2.7.1",
"eslint": "0.23.0",
"jest": "20.0.4",
"nwb": "0.18.x",
"react": "^15.x",
"react-addons-test-utils": "15.6.0",
"react-dom": "^15.3.2",
"react-test-renderer": "15.6.1",
"regenerator-runtime": "0.10.5"
},
"dependencies": {
"classnames": "^2.1.2",
"country-telephone-data": "0.4.2",
"create-react-class": "^15.6.0",
"lodash": "4.17.4",
"prop-types": "^15.5.10",
"react-onclickoutside": "^6.5.0"
},
"peerDependencies": {
"react": ">=0.14.0 || ^15.0.0"
},
"browserify-shim": {
"classnames": "global:classNames",
"react": "global:React",
"lodash": "global:lodash"
}
}

@@ -65,3 +65,3 @@ Reactjs Component for International Telephone Input

<ReactTelephoneInput
preferredCountries={['in', 'us', 'uk']}
preferredCountries={['in', 'us', 'gb']}
/>

@@ -68,0 +68,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