@k03mad/dns-leak 6.0.1 → 7.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.
Files changed (2) hide show
  1. package/app/run.js +1 -8
  2. package/package.json +5 -5
package/app/run.js CHANGED
@@ -4,7 +4,6 @@ import {ip2geo} from '@k03mad/ip2geo';
4
4
  import {log} from '@k03mad/simple-log';
5
5
 
6
6
  import {CloudPing, IPLeak, NextDNS, Wander} from './api/_index.js';
7
- import * as spinner from './helpers/spinner.js';
8
7
  import {formatIpInfo, formatLocationInfo, header} from './helpers/text.js';
9
8
 
10
9
  const LeakApi = new IPLeak();
@@ -20,9 +19,6 @@ const [leak, next, geoip, location, dnssec] = await Promise.allSettled([
20
19
  WanderApi.checkDNSSEC(),
21
20
  ]);
22
21
 
23
- const spinnerName = 'IP info';
24
- spinner.start(spinnerName, true);
25
-
26
22
  const dnsIps = [
27
23
  ...new Set([
28
24
  ...Object.keys(leak.value?.ip || []),
@@ -32,9 +28,7 @@ const dnsIps = [
32
28
 
33
29
  const dnsIpsInfo = await Promise.all(dnsIps.map(async ip => {
34
30
  try {
35
- const data = await ip2geo(ip);
36
- spinner.count(spinnerName, dnsIps.length);
37
- return data;
31
+ return await ip2geo(ip);
38
32
  } catch {}
39
33
  }));
40
34
 
@@ -85,5 +79,4 @@ if (location.value) {
85
79
  );
86
80
  }
87
81
 
88
- spinner.stop(spinnerName);
89
82
  log(`\n${output.join('\n\n')}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k03mad/dns-leak",
3
- "version": "6.0.1",
3
+ "version": "7.1.0",
4
4
  "description": "DNS leak test",
5
5
  "maintainers": [
6
6
  "Kirill Molchanov <k03.mad@gmail.com"
@@ -18,9 +18,9 @@
18
18
  "node": ">=20"
19
19
  },
20
20
  "dependencies": {
21
- "@k03mad/ip2geo": "2.3.1",
22
- "@k03mad/request": "5.4.1",
23
- "@k03mad/simple-log": "2.0.0",
21
+ "@k03mad/ip2geo": "4.2.0",
22
+ "@k03mad/request": "5.5.0",
23
+ "@k03mad/simple-log": "2.1.0",
24
24
  "chalk": "5.3.0",
25
25
  "country-locale-map": "1.9.0",
26
26
  "nanoid": "5.0.4",
@@ -28,7 +28,7 @@
28
28
  "ora": "8.0.1"
29
29
  },
30
30
  "devDependencies": {
31
- "@k03mad/eslint-config": "19.3.0",
31
+ "@k03mad/eslint-config": "19.4.0",
32
32
  "eslint": "8.56.0",
33
33
  "husky": "8.0.3"
34
34
  },