ntpclient 1.14.2 → 1.15.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/README.md CHANGED
@@ -4,8 +4,8 @@ TypeScript implementation of the NTP Client Protocol. Based on [node-ntp-client]
4
4
 
5
5
  ## Prerequisites
6
6
 
7
- - [Node.js](https://nodejs.org) >= 14
8
- - npm (preinstalled) or [yarn](https://classic.yarnpkg.com)
7
+ - [Node.js](https://nodejs.org)
8
+ - npm (preinstalled) or [yarn](https://yarnpkg.com)
9
9
 
10
10
  ## Installation
11
11
 
package/dist/cli.js CHANGED
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
- import fs from 'node:fs';
2
+ import fs from 'node:fs/promises';
3
3
  import path from 'node:path';
4
4
  import { program as commander } from 'commander';
5
5
  import { NTPClient } from './index.js';
6
6
  const __dirname = import.meta.dirname;
7
7
  const packageJsonPath = path.join(__dirname, '../package.json');
8
- const { description, name, version } = JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8'));
8
+ const { description, name, version } = JSON.parse(await fs.readFile(packageJsonPath, 'utf-8'));
9
9
  commander
10
10
  .name(name)
11
11
  .version(version)
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "vitest": "4.0.16"
13
13
  },
14
14
  "engines": {
15
- "node": ">= 18.0"
15
+ "node": ">= 21"
16
16
  },
17
17
  "exports": "./dist/index.js",
18
18
  "files": [
@@ -31,6 +31,6 @@
31
31
  "test": "vitest run"
32
32
  },
33
33
  "type": "module",
34
- "version": "1.14.2",
35
- "gitHead": "36492555eb0381ed01b3f1c0c33cb60eaee1da90"
34
+ "version": "1.15.0",
35
+ "gitHead": "b968c846095113cbe57fbdd34e4593a4dea8a1c9"
36
36
  }