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

react-country-province

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-country-province - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

1

example/index.jsx

@@ -25,2 +25,3 @@

opts = {
countryDefault: 'US',
country:{

@@ -27,0 +28,0 @@ name:'countrySelect',

@@ -42,4 +42,11 @@

var country;
if( this.opts.country ){
country = this.opts.country.value
} else if( this.opts.countryDefault ){
country = this.opts.countryDefault
}
if( this.opts.province ){
this.renderProvinces(this.opts.country.value)
this.renderProvinces(country)
}

@@ -84,4 +91,8 @@ }

placeholder: this.opts.province.label,
multi: false,
options: []
}
if( this.opts.province.multi ){
rOpts.multi = true
}
if( this.provinceOptions[country] ){

@@ -88,0 +99,0 @@ rOpts.options = this.provinceOptions[country]

{
"name": "react-country-province",
"version": "0.1.1",
"version": "0.2.0",
"description": "Country and Province/State typeahead selector using react.",

@@ -39,3 +39,7 @@ "main": "index.js",

"watchify": "^2.4.0"
},
"repository": {
"type": "git",
"url": "git@github.com:wunderlink/react-country-province.git"
}
}
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