zet-x 1.0.5 → 1.0.6
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/dist/register.js +11 -2
- package/dist/register.js.map +1 -1
- package/package.json +1 -1
package/dist/register.js
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import module from "node:module";
|
|
2
|
+
import { resolve } from "./loader.js";
|
|
3
|
+
// Node 26 runtime-deprecates module.register() (DEP0205). Use the synchronous
|
|
4
|
+
// in-thread hooks where they exist (Node >=22.15 / >=23.5) and fall back to the
|
|
5
|
+
// asynchronous off-thread loader on older versions.
|
|
6
|
+
if (typeof module.registerHooks === "function") {
|
|
7
|
+
module.registerHooks({ resolve });
|
|
8
|
+
}
|
|
9
|
+
else {
|
|
10
|
+
module.register("./loader.js", import.meta.url);
|
|
11
|
+
}
|
|
3
12
|
//# sourceMappingURL=register.js.map
|
package/dist/register.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register.js","sourceRoot":"","sources":["../src/register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"register.js","sourceRoot":"","sources":["../src/register.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,8EAA8E;AAC9E,gFAAgF;AAChF,oDAAoD;AACpD,IAAI,OAAO,MAAM,CAAC,aAAa,KAAK,UAAU,EAAE,CAAC;IAC/C,MAAM,CAAC,aAAa,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;AACpC,CAAC;KAAM,CAAC;IACN,MAAM,CAAC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,CAAC"}
|