@cto.af/chex-cli 2.2.2 → 3.0.1

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/bin/chex.js CHANGED
@@ -3,9 +3,9 @@
3
3
  import {Command, Option} from 'commander';
4
4
  import {HexDumpTransform} from '@cto.af/chex';
5
5
  import fs from 'node:fs';
6
- import {version as libVersion} from '@cto.af/chex/lib/version.js';
6
+ import lib from '@cto.af/chex/package.json' with {type: 'json'};
7
+ import pkg from '../package.json' with {type: 'json'};
7
8
  import {spawn} from 'node:child_process';
8
- import {version} from '../lib/version.js';
9
9
 
10
10
  const program = new Command();
11
11
  program
@@ -21,7 +21,7 @@ program
21
21
  '-s,--strings <encoding>',
22
22
  'try to decode strings in this encoding'
23
23
  ).choices(['utf8', 'utf-8']))
24
- .version(`${version}, lib:${libVersion}`)
24
+ .version(`${pkg.version}, lib:${lib.version}`)
25
25
  .parse();
26
26
 
27
27
  const opts = program.opts();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cto.af/chex-cli",
3
- "version": "2.2.2",
3
+ "version": "3.0.1",
4
4
  "description": "hexdump -C as a small JS library",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",
@@ -25,10 +25,10 @@
25
25
  "author": "Joe Hildebrand <joe-github@cursive.net>",
26
26
  "license": "MIT",
27
27
  "dependencies": {
28
- "@cto.af/chex": "2.2.2",
29
- "commander": "14.0.3"
28
+ "@cto.af/chex": "3.0.1",
29
+ "commander": "~14.0.3"
30
30
  },
31
31
  "engines": {
32
- "node": ">=20"
32
+ "node": ">=22"
33
33
  }
34
34
  }
package/lib/version.js DELETED
@@ -1,4 +0,0 @@
1
- // Generated by package-extract v3.1.5
2
- // Do not modify by hand.
3
-
4
- export const version = '2.2.2';