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.
- package/cli.mjs +1376 -1376
- package/package.json +1 -1
- package/suzume.cjs +6 -4
package/package.json
CHANGED
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
|
|
15
|
-
//
|
|
16
|
-
//
|
|
17
|
-
//
|
|
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);
|