@k03mad/dns-leak 2.0.0 → 2.0.2

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.
@@ -1,27 +1,34 @@
1
1
  import chalk from 'chalk';
2
2
 
3
- const {bgBlackBright, blue, gray, green, magenta, yellow} = chalk;
3
+ const {bgBlackBright, blue, gray, green, yellow} = chalk;
4
4
 
5
5
  /**
6
- * @param {any} msg
6
+ * @param {string} msg
7
7
  */
8
- export const header = msg => bgBlackBright(magenta(` ${msg} `));
8
+ export const header = msg => bgBlackBright.magenta.bold(` ${msg}`.padEnd(15, ' '));
9
9
 
10
10
  /**
11
- * @param {any} msg
11
+ * @param {string} msg
12
12
  */
13
13
  export const bar = msg => yellow(msg);
14
14
 
15
15
  /**
16
16
  * @param {object} [ipInfo]
17
+ * @param {object} [ipInfo.connection]
18
+ * @param {object} [ipInfo.flag]
17
19
  * @param {string} [ipInfo.city]
18
20
  * @param {string} [ipInfo.country]
19
21
  * @param {string} [ipInfo.ip]
20
22
  * @param {string} [ipInfo.region]
21
- * @param {object} [ipInfo.flag]
22
- * @param {object} [ipInfo.connection]
23
23
  */
24
- export const formatIpInfo = ({city, connection, country, flag, ip, region} = {}) => {
24
+ export const formatIpInfo = ({
25
+ city,
26
+ connection,
27
+ country,
28
+ flag,
29
+ ip,
30
+ region,
31
+ } = {}) => {
25
32
  let output = '';
26
33
 
27
34
  if (ip) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k03mad/dns-leak",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "DNS leak test",
5
5
  "maintainers": [
6
6
  "Kirill Molchanov <k03.mad@gmail.com"