geoip-lite2
Advanced tools
Comparing version 2.2.1 to 2.2.2
@@ -0,4 +1,4 @@ | ||
const terser = require('terser'); | ||
const fs = require('node:fs/promises'); | ||
const path = require('node:path'); | ||
const terser = require('terser'); | ||
@@ -5,0 +5,0 @@ const minifyJSFiles = async (sourceDirectory, outputDirectory) => { |
{ | ||
"name": "geoip-lite2", | ||
"version": "2.2.1", | ||
"version": "2.2.2", | ||
"description": "A light weight native JavaScript implementation of GeoIP API from MaxMind. Improved and faster version by Sefinek.", | ||
@@ -40,7 +40,5 @@ "keywords": [ | ||
"location", | ||
"low latency geoip", | ||
"maxmind integration", | ||
"maxmind lite", | ||
"maxmind", | ||
"real time ip lookup", | ||
"region", | ||
@@ -77,6 +75,6 @@ "state" | ||
"devDependencies": { | ||
"@eslint/js": "^9.13.0", | ||
"globals": "^15.11.0", | ||
"@eslint/js": "^9.16.0", | ||
"globals": "^15.13.0", | ||
"jest": "^29.7.0", | ||
"terser": "^5.36.0" | ||
"terser": "^5.37.0" | ||
}, | ||
@@ -83,0 +81,0 @@ "engines": { |
@@ -47,6 +47,6 @@ const geoIp2 = require('../lib/main.js'); | ||
expect(actual.timezone).toBe('Asia/Tokyo'); | ||
expect(actual.city).toBe(''); | ||
expect(actual.city).toBe('Tokushima'); | ||
expect(actual.ll).toBeTruthy(); | ||
expect(actual.metro).toBe(0); | ||
expect(actual.area).toBe(200); | ||
expect(actual.area).toBe(500); | ||
}); | ||
@@ -63,3 +63,3 @@ | ||
expect(actual.metro).toBe(0); | ||
expect(actual.area).toBe(50); | ||
expect(actual.area).toBe(20); | ||
}); | ||
@@ -78,3 +78,3 @@ }); | ||
expect(actual.metro).toBe(0); | ||
expect(actual.area).toBe(100); | ||
expect(actual.area).toBe(200); | ||
}); | ||
@@ -111,3 +111,3 @@ | ||
expect(actual.country).toBe('ES'); | ||
expect(actual.city).toBe('Sant Cugat del Vallès'); | ||
expect(actual.city).toBe('Madrid'); | ||
expect(actual.timezone).toBe('Europe/Madrid'); | ||
@@ -114,0 +114,0 @@ }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
184755408