@poe-platform/safe-js 0.1.428 → 0.1.430
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/safe-js/chunks/{chunk-LXXUZNYA.js → chunk-7KGFFD23.js} +2 -2
- package/dist/safe-js/chunks/{chunk-KHHM7HUO.js → chunk-KKRY6QGW.js} +9 -6
- package/dist/safe-js/chunks/{chunk-KHHM7HUO.js.map → chunk-KKRY6QGW.js.map} +3 -3
- package/dist/safe-js/cli.js +2 -2
- package/dist/safe-js/core.js +1 -1
- package/dist/safe-js/index.js +2 -2
- package/package.json +2 -2
- /package/dist/safe-js/chunks/{chunk-LXXUZNYA.js.map → chunk-7KGFFD23.js.map} +0 -0
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
validateMigrationSemantics,
|
|
28
28
|
validateSnapshotData,
|
|
29
29
|
validateSnapshotMigration
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-KKRY6QGW.js";
|
|
31
31
|
|
|
32
32
|
// packages/safe-js/src/migrate.ts
|
|
33
33
|
import { createHash } from "node:crypto";
|
|
@@ -8249,4 +8249,4 @@ export {
|
|
|
8249
8249
|
parseMcpConfig,
|
|
8250
8250
|
makeMcpModule
|
|
8251
8251
|
};
|
|
8252
|
-
//# sourceMappingURL=chunk-
|
|
8252
|
+
//# sourceMappingURL=chunk-7KGFFD23.js.map
|
|
@@ -11743,6 +11743,10 @@ function isPromiseLike2(value) {
|
|
|
11743
11743
|
// packages/safe-js/src/interp/promise-state.ts
|
|
11744
11744
|
var promiseStates = /* @__PURE__ */ new WeakMap();
|
|
11745
11745
|
|
|
11746
|
+
// packages/safe-js/src/snapshot/not-ready.ts
|
|
11747
|
+
var SnapshotNotReadyError = class extends TypeError {
|
|
11748
|
+
};
|
|
11749
|
+
|
|
11746
11750
|
// packages/safe-js/src/interp/closure-origin.ts
|
|
11747
11751
|
var origins = /* @__PURE__ */ new WeakMap();
|
|
11748
11752
|
var generatorOrigins = /* @__PURE__ */ new WeakMap();
|
|
@@ -12099,10 +12103,6 @@ function defineSnapshotBinding(target, name, value) {
|
|
|
12099
12103
|
});
|
|
12100
12104
|
}
|
|
12101
12105
|
|
|
12102
|
-
// packages/safe-js/src/snapshot/not-ready.ts
|
|
12103
|
-
var SnapshotNotReadyError = class extends TypeError {
|
|
12104
|
-
};
|
|
12105
|
-
|
|
12106
12106
|
// packages/safe-js/src/interp/symbol-registry.ts
|
|
12107
12107
|
var symbolRegistryOrigins = /* @__PURE__ */ new WeakMap();
|
|
12108
12108
|
|
|
@@ -18832,7 +18832,7 @@ function requiresPromiseReplay(promise) {
|
|
|
18832
18832
|
if (seen.has(current)) continue;
|
|
18833
18833
|
seen.add(current);
|
|
18834
18834
|
const continuation = promiseContinuations.get(current);
|
|
18835
|
-
if (promiseStates.get(current)?.status === "pending" && (unrepresentedPromiseContinuations.has(current) || continuation === void 0)) return true;
|
|
18835
|
+
if (promiseStates.get(current)?.status === "pending" && (unrepresentedPromiseContinuations.has(current) || continuation === void 0 || continuation.kind === "reaction" && continuation.phase === "running")) return true;
|
|
18836
18836
|
pending.push(...promiseProducers.get(current) ?? [], ...promiseReactionResults.get(current) ?? []);
|
|
18837
18837
|
if (continuation?.kind === "reaction") {
|
|
18838
18838
|
pending.push(continuation.source);
|
|
@@ -19109,6 +19109,9 @@ function collectContainerStats(value, stats, ancestors, guestValues, trustedRunR
|
|
|
19109
19109
|
stat2.expanded = true;
|
|
19110
19110
|
ancestors.add(value);
|
|
19111
19111
|
const guestEntries = [];
|
|
19112
|
+
const driver = trustedRunReplay ? asyncGeneratorDrivers.get(value) : void 0;
|
|
19113
|
+
if (driver !== void 0 && driver.requests.some((request) => requiresPromiseReplay(request.capability.promise)))
|
|
19114
|
+
throw new SnapshotNotReadyError("Cannot snapshot an async generator with a replay-only request.");
|
|
19112
19115
|
const replayPromise = isSandboxPromise(value) ? value : isPromiseResolvingFunction(value) ? promiseResolvingFunctions.get(value)?.promise : void 0;
|
|
19113
19116
|
const replayMetadata = trustedRunReplay && replayPromise !== void 0 && requiresPromiseReplay(replayPromise);
|
|
19114
19117
|
if (isSandboxDataView(value)) guestEntries.push(dataViewBuffer(value));
|
|
@@ -47185,4 +47188,4 @@ export {
|
|
|
47185
47188
|
FileSnapshotBackend,
|
|
47186
47189
|
run
|
|
47187
47190
|
};
|
|
47188
|
-
//# sourceMappingURL=chunk-
|
|
47191
|
+
//# sourceMappingURL=chunk-KKRY6QGW.js.map
|