poe-code 11.0.25 → 11.0.26
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/index.js +7 -1
- package/dist/index.js.map +2 -2
- package/dist/metafile.json +1 -1
- package/package.json +1 -1
- package/packages/safejs/dist/chunks/{chunk-DXJLYASS.js → chunk-4TA6S7L6.js} +7 -1
- package/packages/safejs/dist/chunks/{chunk-DXJLYASS.js.map → chunk-4TA6S7L6.js.map} +2 -2
- package/packages/safejs/dist/chunks/{chunk-BGO2B5YI.js → chunk-YVBVZ7MR.js} +2 -2
- package/packages/safejs/dist/cli.js +2 -2
- package/packages/safejs/dist/core.js +1 -1
- package/packages/safejs/dist/index.js +2 -2
- package/packages/safejs/dist/interp/host-bridge.js +4 -0
- package/packages/safejs/dist/interp/values.js +4 -0
- /package/packages/safejs/dist/chunks/{chunk-BGO2B5YI.js.map → chunk-YVBVZ7MR.js.map} +0 -0
package/package.json
CHANGED
|
@@ -19953,11 +19953,14 @@ function copyToSandbox(value, state, path = "<root>", cloneSandboxCollections =
|
|
|
19953
19953
|
return copy;
|
|
19954
19954
|
}
|
|
19955
19955
|
if (isHostPromise(value)) {
|
|
19956
|
+
const existing = state.seen.get(value);
|
|
19957
|
+
if (existing !== void 0) return existing;
|
|
19956
19958
|
const promise = Promise.resolve(value).then(
|
|
19957
19959
|
(resolved) => copyToSandbox(resolved, { seen: /* @__PURE__ */ new WeakMap() }),
|
|
19958
19960
|
(reason) => Promise.reject(copyToSandbox(reason, { seen: /* @__PURE__ */ new WeakMap() }))
|
|
19959
19961
|
);
|
|
19960
19962
|
const sandboxPromise = createSandboxPromise(promise);
|
|
19963
|
+
state.seen.set(value, sandboxPromise);
|
|
19961
19964
|
const span = getBoundOtelSpan(value);
|
|
19962
19965
|
if (span !== void 0) {
|
|
19963
19966
|
bindOtelSpan(promise, span);
|
|
@@ -22587,6 +22590,8 @@ function copyHostValueToSandbox(value, stackFrames, options, state, path) {
|
|
|
22587
22590
|
);
|
|
22588
22591
|
}
|
|
22589
22592
|
if (!options.errorData && isPromiseLike3(value)) {
|
|
22593
|
+
const existing = state.seen.get(value);
|
|
22594
|
+
if (existing !== void 0) return existing;
|
|
22590
22595
|
const promise = wrapHostPromiseWithSignal(Promise.resolve(value), options.signal).then(
|
|
22591
22596
|
(resolved) => {
|
|
22592
22597
|
try {
|
|
@@ -22614,6 +22619,7 @@ function copyHostValueToSandbox(value, stackFrames, options, state, path) {
|
|
|
22614
22619
|
}
|
|
22615
22620
|
);
|
|
22616
22621
|
const sandboxPromise = createSandboxPromise(promise);
|
|
22622
|
+
state.seen.set(value, sandboxPromise);
|
|
22617
22623
|
const span = getBoundOtelSpan(value);
|
|
22618
22624
|
if (span !== void 0) {
|
|
22619
22625
|
bindOtelSpan(promise, span);
|
|
@@ -29193,4 +29199,4 @@ export {
|
|
|
29193
29199
|
FileSnapshotBackend,
|
|
29194
29200
|
run
|
|
29195
29201
|
};
|
|
29196
|
-
//# sourceMappingURL=chunk-
|
|
29202
|
+
//# sourceMappingURL=chunk-4TA6S7L6.js.map
|