@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.
@@ -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
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k03mad/ip2geo",
3
- "version": "7.5.0",
3
+ "version": "8.0.0",
4
4
  "description": "GeoIP library",
5
5
  "maintainers": [
6
6
  "Kirill Molchanov <k03.mad@gmail.com"