@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.
package/app/helpers/cache.js
CHANGED
|
@@ -216,7 +216,7 @@ export const pruneCache = async (cacheDir, cacheFileSeparator, cacheFileNewline)
|
|
|
216
216
|
});
|
|
217
217
|
|
|
218
218
|
const uniqSorted = [...new Set(dataArrRemoveEmpty)]
|
|
219
|
-
.
|
|
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.
|
|
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.
|
|
22
|
+
"@k03mad/request": "7.22.1",
|
|
23
23
|
"@k03mad/simple-log": "5.3.0",
|
|
24
|
-
"chalk": "5.6.
|
|
25
|
-
"debug": "4.4.
|
|
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.
|
|
30
|
-
"eslint": "9.
|
|
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": "
|
|
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
|
}
|