@k03mad/ip2geo 11.3.0 → 11.5.0
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 +1 -4
- package/package.json +3 -3
package/app/helpers/cache.js
CHANGED
|
@@ -177,10 +177,7 @@ export const pruneCache = async (cacheDir, cacheFileSeparator, cacheFileNewline)
|
|
|
177
177
|
?.find(Boolean)
|
|
178
178
|
?.split(cacheFileSeparator)[0];
|
|
179
179
|
|
|
180
|
-
if (
|
|
181
|
-
stat.isDirectory()
|
|
182
|
-
|| !isIP(firstIp || '')
|
|
183
|
-
) {
|
|
180
|
+
if (stat.isDirectory() || (firstIp && !isIP(firstIp))) {
|
|
184
181
|
throw new Error(`Folder has subfolders or files without IPs, wrong cache folder arg?\n${fullFilePath}`);
|
|
185
182
|
}
|
|
186
183
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@k03mad/ip2geo",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.5.0",
|
|
4
4
|
"description": "GeoIP library",
|
|
5
5
|
"maintainers": [
|
|
6
6
|
"Kirill Molchanov <k03.mad@gmail.com"
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@k03mad/request": "7.6.1",
|
|
23
23
|
"@k03mad/simple-log": "5.1.1",
|
|
24
|
-
"chalk": "5.
|
|
24
|
+
"chalk": "5.4.1",
|
|
25
25
|
"debug": "4.4.0",
|
|
26
26
|
"is-ip": "5.0.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@k03mad/eslint-config": "28.
|
|
29
|
+
"@k03mad/eslint-config": "28.2.0",
|
|
30
30
|
"eslint": "9.17.0",
|
|
31
31
|
"husky": "9.1.7",
|
|
32
32
|
"mocha": "11.0.1",
|