@k03mad/ip2geo 12.14.0 → 12.15.1

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.
@@ -16,5 +16,5 @@ jobs:
16
16
  - uses: actions/setup-node@v4
17
17
  with:
18
18
  node-version-file: '.nvmrc'
19
- - run: npm run setup
19
+ - run: npm i
20
20
  - run: npm run lint
@@ -26,7 +26,7 @@ jobs:
26
26
  registry-url: 'https://registry.npmjs.org'
27
27
 
28
28
  - if: steps.check_pkg_version.outputs.changed == 'true'
29
- run: npm run setup
29
+ run: npm i
30
30
 
31
31
  - if: steps.check_pkg_version.outputs.changed == 'true'
32
32
  run: npm publish
@@ -16,5 +16,5 @@ jobs:
16
16
  - uses: actions/setup-node@v4
17
17
  with:
18
18
  node-version-file: '.nvmrc'
19
- - run: npm run setup
19
+ - run: npm i
20
20
  - run: npm run test
@@ -216,7 +216,7 @@ export const pruneCache = async (cacheDir, cacheFileSeparator, cacheFileNewline)
216
216
  });
217
217
 
218
218
  const uniqSorted = [...new Set(dataArrRemoveEmpty)]
219
- .sort((a, b) => cacheLineToNum(a) - cacheLineToNum(b));
219
+ .toSorted((a, b) => cacheLineToNum(a) - cacheLineToNum(b));
220
220
 
221
221
  getArrayDups(dataArrRemoveEmpty).forEach(dup => duplicates.add(dup));
222
222
  const dupsIp = getArrayDups(uniqSorted.map(elem => elem.split(cacheFileSeparator)[0]));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k03mad/ip2geo",
3
- "version": "12.14.0",
3
+ "version": "12.15.1",
4
4
  "description": "GeoIP library",
5
5
  "maintainers": [
6
6
  "Kirill Molchanov <k03.mad@gmail.com"
@@ -19,26 +19,22 @@
19
19
  "node": ">=22"
20
20
  },
21
21
  "dependencies": {
22
- "@k03mad/request": "7.21.0",
22
+ "@k03mad/request": "7.22.1",
23
23
  "@k03mad/simple-log": "5.3.0",
24
- "chalk": "5.6.0",
25
- "debug": "4.4.1",
24
+ "chalk": "5.6.2",
25
+ "debug": "4.4.3",
26
26
  "is-ip": "5.0.1"
27
27
  },
28
28
  "devDependencies": {
29
- "@k03mad/eslint-config": "29.8.0",
30
- "eslint": "9.34.0",
29
+ "@k03mad/eslint-config": "29.13.1",
30
+ "eslint": "9.36.0",
31
31
  "husky": "9.1.7",
32
32
  "mocha": "11.7.2",
33
33
  "npm-run-all": "4.1.5"
34
34
  },
35
35
  "scripts": {
36
- "lint": "npm run lint:eslint",
37
- "lint:eslint": "eslint ./ --cache",
36
+ "lint": "eslint ./ --cache",
38
37
  "test": "rm -rfv ./.geoip && mocha tests",
39
- "clean": "rm -rf ./node_modules .eslintcache || true",
40
- "setup": "npm run clean && npm run setup:pnpm",
41
- "setup:pnpm": "npm i pnpm -g && pnpm i",
42
38
  "prepare": "husky || true"
43
39
  }
44
40
  }