@k03mad/ip2geo 7.5.0 → 8.0.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 -1
- package/package.json +1 -1
package/app/helpers/cache.js
CHANGED
|
@@ -177,7 +177,7 @@ export const pruneCache = async (cacheDir, cacheFileSeparator, cacheFileNewline)
|
|
|
177
177
|
const dataArr = data.split(cacheFileNewline);
|
|
178
178
|
|
|
179
179
|
const uniq = [...new Set(dataArr)].sort((a, b) => cacheLineToNum(a) - cacheLineToNum(b));
|
|
180
|
-
await fs.writeFile(fullFilePath, uniq.join(cacheFileNewline));
|
|
180
|
+
await fs.writeFile(fullFilePath, uniq.join(cacheFileNewline).trim());
|
|
181
181
|
|
|
182
182
|
removedEntries += dataArr.length - uniq.length;
|
|
183
183
|
}));
|