Socket
Socket
Sign inDemoInstall

country-states

Package Overview
Dependencies
0
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.3 to 0.0.4

6

data/AT.json

@@ -12,11 +12,11 @@ {

{
"name": "K?rnten",
"name": "Kärnten",
"iso": "AT-2"
},
{
"name": "Nieder?sterreich",
"name": "Niederösterreich",
"iso": "AT-3"
},
{
"name": "Ober?sterreich",
"name": "Oberösterreich",
"iso": "AT-4"

@@ -23,0 +23,0 @@ },

@@ -36,3 +36,3 @@ {

{
"name": "Gen?ve",
"name": "Geneva",
"iso": "CH-GE"

@@ -45,3 +45,3 @@ },

{
"name": "Graub?nden",
"name": "Graubünden",
"iso": "CH-GR"

@@ -58,3 +58,3 @@ },

{
"name": "Neuch?tel",
"name": "Neuchâtel",
"iso": "CH-NE"

@@ -111,3 +111,3 @@ },

{
"name": "Z?rich",
"name": "Zürich",
"iso": "CH-ZH"

@@ -114,0 +114,0 @@ }

@@ -56,6 +56,6 @@ {

{
"name": "Franche-Comt?",
"name": "Franche-Comté",
"iso": "FR-I",
"subdivision": "Metropolitan region",
"native": "Franche-Comt?"
"native": "Franche-Comté"
},

@@ -87,6 +87,6 @@ {

{
"name": "Midi-Pyr?n?es",
"name": "Midi-Pyrénées",
"iso": "FR-N",
"subdivision": "Metropolitan region",
"native": "Midi-Pyr?n?es"
"native": "Midi-Pyrénées"
},

@@ -118,12 +118,12 @@ {

{
"name": "Provence-Alpes-C?te d'Azur",
"name": "Provence-Alpes-Côte d'Azur",
"iso": "FR-U",
"subdivision": "Metropolitan region",
"native": "Provence-Alpes-C?te d'Azur"
"native": "Provence-Alpes-Côte d'Azur"
},
{
"name": "Rh?ne-Alpes",
"name": "Rhône-Alpes",
"iso": "FR-V",
"subdivision": "Metropolitan region",
"native": "Rh?ne-Alpes"
"native": "Rhône-Alpes"
},

@@ -137,6 +137,6 @@ {

{
"name": "?le-de-France",
"name": "Île-de-France",
"iso": "FR-J",
"subdivision": "Metropolitan region",
"native": "?le-de-France"
"native": "Île-de-France"
}

@@ -143,0 +143,0 @@ ],

{
"name": "country-states",
"version": "0.0.3",
"version": "0.0.4",
"description": "database with countries and states",

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

@@ -6,7 +6,5 @@ let db = {};

try {
const data = require(`../data/${code}.json`);
const data = require(`../data/${code.toUpperCase()}.json`);
db = { ...db, [data.iso]: data };
} catch (e) {
console.log(e);
}
} catch (e) {}
});

@@ -21,3 +19,2 @@ }

}
return data.states;

@@ -24,0 +21,0 @@ };

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc