country-state-picker
Advanced tools
Comparing version 1.0.0 to 1.0.1
exports.getCountries = function () { | ||
let countries = require('./countries.json'); | ||
console.log(countries); | ||
let countries = require('./data/countries.json'); | ||
return countries; | ||
@@ -8,10 +7,8 @@ } | ||
exports.getStates = function (countryCode) { | ||
let states = require('./states.json'); | ||
let states = require('./data/states.json'); | ||
try { | ||
console.log(states[countryCode]); | ||
return states[countryCode]; | ||
} catch (error) { | ||
console.log('Invalid country code'); | ||
return 'Invalid country code'; | ||
} | ||
} |
{ | ||
"name": "country-state-picker", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "NPM package to get the list of countries and their states.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
117671
5
0
98
5098
1