zgrzyt 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/lib/check.js CHANGED
@@ -4,10 +4,10 @@ import makeDebug from 'debug';
4
4
 
5
5
  const debug = makeDebug('zgrzyt:check');
6
6
 
7
+ import packageJson from '../package.json' with { type: 'json' };
7
8
  import { resolve } from './dns.js';
8
9
  import { updateHealth } from './state.js';
9
10
 
10
- import packageJson from '../package.json' with { type: 'json' };
11
11
  const {
12
12
  name,
13
13
  version,
package/lib/config.js CHANGED
@@ -22,10 +22,10 @@ function prepareConfig(config) {
22
22
  return;
23
23
  }
24
24
  if (typeof cloudflare.timeout === 'string') {
25
- cloudflare.timeout = Number.parseInt(cloudflare.timeout);
25
+ cloudflare.timeout = Number.parseInt(cloudflare.timeout, 10);
26
26
  }
27
27
  if (typeof cloudflare.retry === 'string') {
28
- cloudflare.retry = Number.parseInt(cloudflare.retry);
28
+ cloudflare.retry = Number.parseInt(cloudflare.retry, 10);
29
29
  }
30
30
 
31
31
  // collect all APIs
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zgrzyt",
3
- "version": "2.2.3",
3
+ "version": "2.2.4",
4
4
  "description": "Poor man's load balancing DNS switcher.",
5
5
  "type": "module",
6
6
  "author": {
@@ -32,7 +32,7 @@
32
32
  "sprintfjs": "^1.2.16"
33
33
  },
34
34
  "devDependencies": {
35
- "@biomejs/biome": "^1.9.4"
35
+ "@biomejs/biome": "2.2.5"
36
36
  },
37
37
  "scripts": {
38
38
  "test": "make check"