poe-code 12.0.9 → 12.0.10
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 +7 -0
- package/dist/index.js +11 -1
- package/dist/index.js.map +2 -2
- package/dist/metafile.json +1 -1
- package/package.json +1 -1
- package/packages/safe-js/dist/chunks/{chunk-4D75HUZZ.js → chunk-5TMXWUAL.js} +11 -1
- package/packages/safe-js/dist/chunks/{chunk-4D75HUZZ.js.map → chunk-5TMXWUAL.js.map} +2 -2
- package/packages/safe-js/dist/chunks/{chunk-ETVJF5BE.js → chunk-HEFYUEBF.js} +2 -2
- package/packages/safe-js/dist/cli.js +2 -2
- package/packages/safe-js/dist/core.js +1 -1
- package/packages/safe-js/dist/index.js +2 -2
- package/packages/safe-js/dist/interp/exceptions.js +3 -0
- package/packages/safe-js/dist/interp/host-bridge.js +3 -0
- package/packages/safe-js/dist/interp/host-call.d.ts +2 -0
- package/packages/safe-js/dist/interp/host-call.js +7 -0
- /package/packages/safe-js/dist/chunks/{chunk-ETVJF5BE.js.map → chunk-HEFYUEBF.js.map} +0 -0
package/package.json
CHANGED
|
@@ -18291,6 +18291,9 @@ function isCapturedException(value) {
|
|
|
18291
18291
|
return typeof value === "object" && value !== null && capturedExceptionBrand in value;
|
|
18292
18292
|
}
|
|
18293
18293
|
function coerceThrownValue(reason, budget, stackFrames, span, sandbox = false) {
|
|
18294
|
+
if (reason instanceof HostCallResumabilityError) {
|
|
18295
|
+
throw reason;
|
|
18296
|
+
}
|
|
18294
18297
|
if (isSubsetErrorValue(reason)) {
|
|
18295
18298
|
attachErrorSpan(reason, readErrorSpan(reason) ?? span);
|
|
18296
18299
|
return reason;
|
|
@@ -20779,9 +20782,13 @@ function own(value, key) {
|
|
|
20779
20782
|
|
|
20780
20783
|
// packages/safe-js/src/interp/host-call.ts
|
|
20781
20784
|
var HostCallResumabilityError = class extends Error {
|
|
20785
|
+
#nativeInstance = true;
|
|
20782
20786
|
action;
|
|
20783
20787
|
callId;
|
|
20784
20788
|
lifecycle;
|
|
20789
|
+
static [Symbol.hasInstance](value) {
|
|
20790
|
+
return typeof value === "object" && value !== null && #nativeInstance in value && Function.prototype[Symbol.hasInstance].call(this, value);
|
|
20791
|
+
}
|
|
20785
20792
|
constructor(record2, action, message) {
|
|
20786
20793
|
super(message);
|
|
20787
20794
|
this.name = "HostCallResumabilityError";
|
|
@@ -22516,6 +22523,9 @@ function executeHostCall(record2, restored, invoke, stackFrames, options, span,
|
|
|
22516
22523
|
try {
|
|
22517
22524
|
result = invoke();
|
|
22518
22525
|
} catch (error) {
|
|
22526
|
+
if (error instanceof HostCallResumabilityError) {
|
|
22527
|
+
throw error;
|
|
22528
|
+
}
|
|
22519
22529
|
const reason = createHostErrorValue(error, stackFrames, options.budget, span);
|
|
22520
22530
|
hostCalls.settle(record2, { status: "rejected", reason });
|
|
22521
22531
|
throw error;
|
|
@@ -29751,4 +29761,4 @@ export {
|
|
|
29751
29761
|
FileSnapshotBackend,
|
|
29752
29762
|
run
|
|
29753
29763
|
};
|
|
29754
|
-
//# sourceMappingURL=chunk-
|
|
29764
|
+
//# sourceMappingURL=chunk-5TMXWUAL.js.map
|