@k03mad/ip2geo 20.1.5 β†’ 21.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k03mad/ip2geo",
3
- "version": "20.1.5",
3
+ "version": "21.0.0",
4
4
  "description": "GeoIP library",
5
5
  "license": "MIT",
6
6
  "maintainers": [
@@ -21,22 +21,26 @@
21
21
  "prepare": "husky || true"
22
22
  },
23
23
  "dependencies": {
24
- "chalk": "5.6.2",
24
+ "chalk": "6.0.0",
25
25
  "debug": "4.4.3",
26
26
  "is-ip": "5.0.1",
27
- "tsx": "4.23.1"
27
+ "tsx": "4.23.8"
28
28
  },
29
29
  "devDependencies": {
30
- "@k03mad/oxlint-config": "0.11.1",
30
+ "@k03mad/oxlint-config": "0.12.1",
31
31
  "@tsconfig/strictest": "2.0.8",
32
32
  "@types/debug": "4.1.13",
33
- "@types/node": "26.1.1",
33
+ "@types/node": "26.1.2",
34
34
  "husky": "9.1.7",
35
- "oxfmt": "0.59.0",
36
- "oxlint": "1.74.0",
35
+ "oxfmt": "0.62.0",
36
+ "oxlint": "1.77.0",
37
37
  "typescript": "7.0.2"
38
38
  },
39
39
  "engines": {
40
40
  "node": ">=24"
41
+ },
42
+ "allowScripts": {
43
+ "esbuild@0.28.1": true,
44
+ "fsevents@2.3.3": true
41
45
  }
42
46
  }
@@ -28,12 +28,12 @@ describe(testName, () => {
28
28
  assert.deepEqual(opts.cacheMap.get(REQUEST_IPV4.ip ?? ''), REQUEST_IPV4);
29
29
  });
30
30
 
31
- it.skip(`should return correct response for IP: "${REQUEST_IPV6.ip}"`, async () => {
31
+ it(`should return correct response for IP: "${REQUEST_IPV6.ip}"`, async () => {
32
32
  const data = await ip2geo({ip: REQUEST_IPV6.ip ?? '', ...opts});
33
33
  assert.deepEqual(data, REQUEST_IPV6);
34
34
  });
35
35
 
36
- it.skip('should have 2 correct cache entries', () => {
36
+ it('should have 2 correct cache entries', () => {
37
37
  assert.equal(opts.cacheMap.size, 2);
38
38
  assert.deepEqual(opts.cacheMap.get(REQUEST_IPV4.ip ?? ''), REQUEST_IPV4);
39
39
  assert.deepEqual(opts.cacheMap.get(REQUEST_IPV6.ip ?? ''), REQUEST_IPV6);
package/tests/ip-v6.ts CHANGED
@@ -10,7 +10,7 @@ import {checkCacheFile, removeCacheFolder} from './shared/fs.ts';
10
10
 
11
11
  const testName = getCurrentFilename(import.meta.url);
12
12
 
13
- describe.skip(testName, () => {
13
+ describe(testName, () => {
14
14
  const opts = {
15
15
  cacheDir: getTestFolder(testName),
16
16
  cacheMap: new Map<string, ReqOutput>(),
@@ -9,7 +9,7 @@ export const REQUEST_IPV4: ReqOutput = {
9
9
  countryEmoji: 'πŸ‡ΊπŸ‡Έ',
10
10
  region: 'California',
11
11
  regionCode: 'CA',
12
- city: 'Mountain View',
12
+ city: 'San Jose',
13
13
  connectionAsn: 15_169,
14
14
  connectionOrg: 'Google LLC',
15
15
  connectionIsp: 'Google LLC',
@@ -25,7 +25,7 @@ export const REQUEST_IPV4_MAP_OFF_ONLY: ReqOutput = {
25
25
  countryEmoji: 'πŸ‡ΊπŸ‡Έ',
26
26
  region: 'California',
27
27
  regionCode: 'CA',
28
- city: 'Berkeley',
28
+ city: 'San Francisco',
29
29
  connectionAsn: 19_281,
30
30
  connectionOrg: 'Quad9',
31
31
  connectionIsp: 'Quad9',
@@ -34,16 +34,16 @@ export const REQUEST_IPV4_MAP_OFF_ONLY: ReqOutput = {
34
34
 
35
35
  export const REQUEST_IPV6: ReqOutput = {
36
36
  ip: '2a00:dd80:40:100::',
37
- continent: 'North America',
38
- continentCode: 'NA',
39
- country: 'United States',
40
- countryCode: 'US',
41
- countryEmoji: 'πŸ‡ΊπŸ‡Έ',
42
- region: 'District of Columbia',
43
- regionCode: 'DC',
44
- city: 'Washington',
37
+ continent: 'Europe',
38
+ continentCode: 'EU',
39
+ country: 'Poland',
40
+ countryCode: 'PL',
41
+ countryEmoji: 'πŸ‡΅πŸ‡±',
42
+ region: 'Masovian Voivodeship',
43
+ regionCode: '14',
44
+ city: 'Warsaw',
45
45
  connectionAsn: 36_236,
46
- connectionOrg: 'Netactuate INC',
47
- connectionIsp: 'Netactuate, INC',
46
+ connectionOrg: 'NetActuate Inc',
47
+ connectionIsp: 'NetActuate, Inc',
48
48
  connectionDomain: 'netactuate.com',
49
49
  };