geoip-lite2 2.2.3 → 2.2.4
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/geoip-data/city.checksum +1 -1
- package/geoip-data/country.checksum +1 -1
- package/geoip-data/geoip-city-names.dat +0 -0
- package/geoip-data/geoip-city.dat +0 -0
- package/geoip-data/geoip-city6.dat +0 -0
- package/geoip-data/geoip-country.dat +0 -0
- package/geoip-data/geoip-country6.dat +0 -0
- package/package.json +4 -4
- package/test/index.test.js +6 -6
package/geoip-data/city.checksum
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
dacef45e8358b2004b5a70e94ac74d2f7c5ed5e238dc4c5b9ff27d340ff6bea4 GeoLite2-City-CSV_20250304.zip
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
103ac5bbb6cae42abf033a1623bb4f51342fbdbffdf4218c568d043ada815e22 GeoLite2-Country-CSV_20250304.zip
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "geoip-lite2",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.4",
|
|
4
4
|
"description": "A light weight native JavaScript implementation of GeoIP API from MaxMind. Improved and faster version by Sefinek.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"city",
|
|
@@ -71,10 +71,10 @@
|
|
|
71
71
|
"rimraf": "^6.0.1"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"@eslint/js": "^9.
|
|
75
|
-
"globals": "^
|
|
74
|
+
"@eslint/js": "^9.21.0",
|
|
75
|
+
"globals": "^16.0.0",
|
|
76
76
|
"jest": "^29.7.0",
|
|
77
|
-
"terser": "^5.
|
|
77
|
+
"terser": "^5.39.0"
|
|
78
78
|
},
|
|
79
79
|
"engines": {
|
|
80
80
|
"node": ">=10.3.0"
|
package/test/index.test.js
CHANGED
|
@@ -44,10 +44,10 @@ describe('GeoIP2', () => {
|
|
|
44
44
|
expect(actual.country).toBe('JP');
|
|
45
45
|
expect(actual.eu).toBe('0');
|
|
46
46
|
expect(actual.timezone).toBe('Asia/Tokyo');
|
|
47
|
-
expect(actual.city).toBe('
|
|
47
|
+
expect(actual.city).toBe('Roppongi');
|
|
48
48
|
expect(actual.ll).toBeTruthy();
|
|
49
49
|
expect(actual.metro).toBe(0);
|
|
50
|
-
expect(actual.area).toBe(
|
|
50
|
+
expect(actual.area).toBe(500);
|
|
51
51
|
});
|
|
52
52
|
|
|
53
53
|
it('should match data for IPv4 - RU', () => {
|
|
@@ -56,10 +56,10 @@ describe('GeoIP2', () => {
|
|
|
56
56
|
expect(actual.region).toBe('IVA');
|
|
57
57
|
expect(actual.eu).toBe('0');
|
|
58
58
|
expect(actual.timezone).toBe('Europe/Moscow');
|
|
59
|
-
expect(actual.city).toBe('
|
|
59
|
+
expect(actual.city).toBe('Shuya');
|
|
60
60
|
expect(actual.ll).toBeTruthy();
|
|
61
61
|
expect(actual.metro).toBe(0);
|
|
62
|
-
expect(actual.area).toBe(
|
|
62
|
+
expect(actual.area).toBe(50);
|
|
63
63
|
});
|
|
64
64
|
});
|
|
65
65
|
|
|
@@ -67,10 +67,10 @@ describe('GeoIP2', () => {
|
|
|
67
67
|
it('should match data for IPv6 - PL', () => {
|
|
68
68
|
const actual = geoIp2.lookup('2a01:118f:30a:3900:c954:e6ef:8067:d4e8');
|
|
69
69
|
expect(actual.country).toBe('PL');
|
|
70
|
-
expect(actual.region).toBe('
|
|
70
|
+
expect(actual.region).toBe('06');
|
|
71
71
|
expect(actual.eu).toBe('1');
|
|
72
72
|
expect(actual.timezone).toBe('Europe/Warsaw');
|
|
73
|
-
expect(actual.city).toBe('
|
|
73
|
+
expect(actual.city).toBe('Cyców');
|
|
74
74
|
expect(actual.ll).toBeTruthy();
|
|
75
75
|
expect(actual.metro).toBe(0);
|
|
76
76
|
expect(actual.area).toBe(200);
|