@k03mad/dns-leak 7.9.0 → 8.1.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/.nvmrc CHANGED
@@ -1 +1 @@
1
- 20
1
+ 22
@@ -1,3 +1,6 @@
1
1
  {
2
- "eslint.experimental.useFlatConfig": true
2
+ "cSpell.words": [
3
+ "dnssec",
4
+ "DNSSEC"
5
+ ]
3
6
  }
@@ -13,18 +13,6 @@ export default class CloudPing {
13
13
  this._requestsRps = requestsRps;
14
14
  }
15
15
 
16
- /** */
17
- static get endpoints() {
18
- return {
19
-
20
- /** */
21
- edge: () => 'https://edge.feitsui.com/',
22
-
23
- /** */
24
- locations: () => 'https://www.cloudping.cloud/cloudfront-edge-locations.json',
25
- };
26
- }
27
-
28
16
  /**
29
17
  * @returns {Promise<object>}
30
18
  */
@@ -63,4 +51,16 @@ export default class CloudPing {
63
51
  return {...locations[iata.replace(/\d.+/, '')], iata};
64
52
  }
65
53
 
54
+ /** */
55
+ static get endpoints() {
56
+ return {
57
+
58
+ /** */
59
+ edge: () => 'https://edge.feitsui.com/',
60
+
61
+ /** */
62
+ locations: () => 'https://www.cloudping.cloud/cloudfront-edge-locations.json',
63
+ };
64
+ }
65
+
66
66
  }
@@ -80,9 +80,9 @@ export const formatIpInfo = ({
80
80
 
81
81
  output += [
82
82
  ...new Set([
83
+ city,
83
84
  country,
84
85
  region,
85
- city,
86
86
  ]),
87
87
  ].filter(Boolean).join(SEPARATOR);
88
88
 
package/app/run.js CHANGED
@@ -21,8 +21,8 @@ const [leak, next, geoip, location, dnssec] = await Promise.allSettled([
21
21
 
22
22
  const dnsIps = [
23
23
  ...new Set([
24
- ...Object.keys(leak.value?.ip || []),
25
24
  next.value?.resolver || '',
25
+ ...Object.keys(leak.value?.ip || []),
26
26
  ]),
27
27
  ].filter(Boolean);
28
28
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k03mad/dns-leak",
3
- "version": "7.9.0",
3
+ "version": "8.1.0",
4
4
  "description": "DNS leak test",
5
5
  "maintainers": [
6
6
  "Kirill Molchanov <k03.mad@gmail.com"
@@ -15,21 +15,21 @@
15
15
  "license": "MIT",
16
16
  "type": "module",
17
17
  "engines": {
18
- "node": ">=20"
18
+ "node": ">=22"
19
19
  },
20
20
  "dependencies": {
21
- "@k03mad/ip2geo": "10.4.0",
22
- "@k03mad/request": "6.3.0",
23
- "@k03mad/simple-log": "4.2.0",
21
+ "@k03mad/ip2geo": "11.0.0",
22
+ "@k03mad/request": "7.0.0",
23
+ "@k03mad/simple-log": "5.0.0",
24
24
  "chalk": "5.3.0",
25
25
  "country-locale-map": "1.9.8",
26
- "nanoid": "5.0.7",
26
+ "nanoid": "5.0.8",
27
27
  "nanoid-dictionary": "5.0.0-beta.1",
28
- "ora": "8.1.0"
28
+ "ora": "8.1.1"
29
29
  },
30
30
  "devDependencies": {
31
- "@k03mad/eslint-config": "25.6.1",
32
- "eslint": "8.57.0",
31
+ "@k03mad/eslint-config": "26.1.0",
32
+ "eslint": "9.15.0",
33
33
  "husky": "9.1.6"
34
34
  },
35
35
  "scripts": {