Socket
Socket
Sign inDemoInstall

react-phone-input

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-phone-input - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

src/react-phone-input-style.less

2

build/country_data.js

@@ -1290,2 +1290,2 @@ // So each country array has the following information:

allCountryCodes: allCountryCodes
};
};

@@ -573,3 +573,3 @@ 'use strict';

}
if (country.dialCode === selectedCountry.dialCode.length && country.priority < selectedCountry.priority) {
if (country.dialCode.length === selectedCountry.dialCode.length && country.priority < selectedCountry.priority) {
return country;

@@ -600,3 +600,5 @@ }

exports['default'] = ReactPhoneInput;
_React2['default'].render(_React2['default'].createElement(ReactPhoneInput, { defaultCountry: 'us', preferredCountries: ['us', 'de'] }), document.getElementById('content'));
module.exports = exports['default'];
{
"name": "react-phone-input",
"version": "0.1.5",
"version": "0.1.6",
"description": "A react component to format phone numbers",

@@ -5,0 +5,0 @@ "main": "build/index.js",

@@ -1290,2 +1290,2 @@ // So each country array has the following information:

allCountryCodes: allCountryCodes
};
};

@@ -501,5 +501,6 @@ // TODO - fix the onlyContries props. Currently expects that as an array of country object, but users should be able to send in array of country isos

}
if(country.dialCode === selectedCountry.dialCode.length && country.priority < selectedCountry.priority) {
if(country.dialCode.length === selectedCountry.dialCode.length && country.priority < selectedCountry.priority) {
return country;
}
}

@@ -529,1 +530,4 @@ return selectedCountry;

React.render(
<ReactPhoneInput defaultCountry={'us'} preferredCountries={['us', 'de']}/>,
document.getElementById('content'));
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