New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-select-country-list

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-select-country-list - npm Package Compare versions

Comparing version 2.1.2 to 2.2.0

data-native.json

10

country-list.js

@@ -62,2 +62,12 @@ class CountryList {

}
native() {
this.nativeData = require('./data-native.json')
this.nativeData.forEach(country => {
this.labelMap[country.label.toLowerCase()] = country.value
this.valueMap[country.value.toLowerCase()] = country.label
})
return this
}
}

@@ -64,0 +74,0 @@

5

package.json
{
"name": "react-select-country-list",
"version": "2.1.2",
"version": "2.2.0",
"description": "Maps ISO 3166-1-alpha-2 codes to English country names and match react-select options props",
"main": "country-list.js",
"files": [
"data.json"
"data.json",
"data-native.json"
],

@@ -9,0 +10,0 @@ "dependencies": {},

@@ -106,2 +106,7 @@ # react-select-country-list

### native()
You may want to display native name of countries, this is the method for you.
The data source of native names can be found [here](https://annexare.github.io/Countries/)
#### Usage

@@ -118,4 +123,6 @@ ```js

## License
MIT
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