country-data-filter 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- const data = require("./data.json");
1
+ const data = require("./country-data.json");
2
2
 
3
3
  // Function to get country by code
4
4
  function getProvinceByCountry(code) {
package/package.json CHANGED
@@ -1,10 +1,13 @@
1
1
  {
2
2
  "name": "country-data-filter",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "A package to filter country data",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
7
+ "test": "jest"
8
+ },
9
+ "devDependencies": {
10
+ "jest": "^29.0.0"
8
11
  },
9
12
  "repository": {
10
13
  "type": "git",
@@ -18,5 +21,9 @@
18
21
  "city"
19
22
  ],
20
23
  "author": "K N Nadeera",
21
- "license": "ISC"
24
+ "license": "ISC",
25
+ "files": [
26
+ "index.js",
27
+ "data.json"
28
+ ]
22
29
  }
package/country-data.json DELETED
@@ -1,18 +0,0 @@
1
- {
2
- "countries": {
3
- "LK": {
4
- "name": "Sri Lanka",
5
- "province": {
6
- "southern": {
7
- "name": "Southern",
8
- "districts": {
9
- "matara": {
10
- "name": "Matara",
11
- "cities": [{ "name": "Weligama", "postalCode": 85700 }]
12
- }
13
- }
14
- }
15
- }
16
- }
17
- }
18
- }