@ai-ecoverse/slicc-kernel 1.142.3 → 1.143.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/README.md +1 -0
- package/dist/kernel-worker.js +17 -14
- package/dist/kernel-worker.js.map +3 -3
- package/dist/node-driver-worker.js.map +2 -2
- package/dist/node-process-worker.js +36 -8
- package/dist/node-process-worker.js.map +3 -3
- package/dist/node.js +17 -14
- package/dist/node.js.map +3 -3
- package/dist/process-worker.js +9 -2
- package/dist/process-worker.js.map +2 -2
- package/dist/types/process/js/js-context.d.ts +7 -0
- package/package.json +1 -1
package/dist/process-worker.js
CHANGED
|
@@ -2783,7 +2783,7 @@ var KERNEL_VERSION, OS_RELEASE;
|
|
|
2783
2783
|
var init_version = __esm({
|
|
2784
2784
|
"src/version.ts"() {
|
|
2785
2785
|
"use strict";
|
|
2786
|
-
KERNEL_VERSION = true ? "1.
|
|
2786
|
+
KERNEL_VERSION = true ? "1.143.1" : "0.0.0-dev";
|
|
2787
2787
|
OS_RELEASE = "6.0.0-slicc";
|
|
2788
2788
|
}
|
|
2789
2789
|
});
|
|
@@ -17973,6 +17973,12 @@ function measured(measure) {
|
|
|
17973
17973
|
}
|
|
17974
17974
|
return out;
|
|
17975
17975
|
}
|
|
17976
|
+
function hostExtras(o) {
|
|
17977
|
+
return {
|
|
17978
|
+
memory: () => measured(o.memory),
|
|
17979
|
+
...o.asyncContext ? { asyncContext: o.asyncContext() } : {}
|
|
17980
|
+
};
|
|
17981
|
+
}
|
|
17976
17982
|
function createContext(o) {
|
|
17977
17983
|
const { kernel } = o;
|
|
17978
17984
|
const infos = /* @__PURE__ */ new Map();
|
|
@@ -18113,7 +18119,7 @@ function createContext(o) {
|
|
|
18113
18119
|
tty: terminal.tty,
|
|
18114
18120
|
exit,
|
|
18115
18121
|
thread: o.thread,
|
|
18116
|
-
|
|
18122
|
+
...hostExtras(o),
|
|
18117
18123
|
onUncaught: (listener) => listen(strays.exception, listener),
|
|
18118
18124
|
onUnhandledRejection: (listener) => listen(strays.rejection, listener)
|
|
18119
18125
|
};
|
|
@@ -18521,6 +18527,7 @@ async function runJs(init, port2, deps, thread) {
|
|
|
18521
18527
|
strays,
|
|
18522
18528
|
thread: threadContext(port2, thread),
|
|
18523
18529
|
memory: deps.memory,
|
|
18530
|
+
asyncContext: deps.asyncContext,
|
|
18524
18531
|
...thread?.owned ? { owned: thread.owned } : {},
|
|
18525
18532
|
held: init.held,
|
|
18526
18533
|
failed: () => failedWith
|