suzumearch 0.2.3 → 0.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.
Files changed (3) hide show
  1. package/cli.mjs +1376 -1376
  2. package/package.json +1 -1
  3. package/suzume.cjs +6 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "suzumearch",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "Independent SuzumeArch CLI mod of the Claude Code Leak by Nefertary I. Forster.",
5
5
  "author": "Nefertary I. Forster",
6
6
  "license": "UNLICENSED",
package/suzume.cjs CHANGED
@@ -11,10 +11,12 @@ if (isNaN(major) || major < 20) {
11
11
  process.exit(1);
12
12
  }
13
13
  var path = require("path");
14
- var entry = path.join(__dirname, "cli.mjs");
15
- // Dynamic import is supported since Node 9.6, so this line parses on any
16
- // runtime new enough to reach it. Errors during bundle load are surfaced
17
- // with full stack so users can report meaningful issues.
14
+ var pathToFileURL = require("url").pathToFileURL;
15
+ // Node 24 on Windows rejects bare absolute paths to dynamic import()
16
+ // (ERR_UNSUPPORTED_ESM_URL_SCHEME the drive letter "c:" is parsed as
17
+ // a URL scheme). Convert to a file:// URL so the ESM loader accepts it
18
+ // on every platform.
19
+ var entry = pathToFileURL(path.join(__dirname, "cli.mjs")).href;
18
20
  import(entry).catch(function (err) {
19
21
  process.stderr.write(String(err && err.stack || err) + "\n");
20
22
  process.exit(1);