poe-code 11.0.30 → 11.0.32
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 +22 -9
- package/dist/index.js.map +3 -3
- package/dist/metafile.json +1 -1
- package/package.json +1 -1
- package/packages/safejs/dist/chunks/{chunk-44GTB3XV.js → chunk-6EXLQKE5.js} +2 -2
- package/packages/safejs/dist/chunks/{chunk-XPDK2VVP.js → chunk-YE6I5W6O.js} +22 -9
- package/packages/safejs/dist/chunks/{chunk-XPDK2VVP.js.map → chunk-YE6I5W6O.js.map} +3 -3
- 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 +2 -0
- package/packages/safejs/dist/interp/host-call.js +19 -5
- /package/packages/safejs/dist/chunks/{chunk-44GTB3XV.js.map → chunk-6EXLQKE5.js.map} +0 -0
package/package.json
CHANGED
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
validateMigrationSemantics,
|
|
28
28
|
validateSnapshotData,
|
|
29
29
|
validateSnapshotMigration
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-YE6I5W6O.js";
|
|
31
31
|
|
|
32
32
|
// packages/safejs/src/migrate.ts
|
|
33
33
|
import { createHash } from "node:crypto";
|
|
@@ -8055,4 +8055,4 @@ export {
|
|
|
8055
8055
|
parseMcpConfig,
|
|
8056
8056
|
makeMcpModule
|
|
8057
8057
|
};
|
|
8058
|
-
//# sourceMappingURL=chunk-
|
|
8058
|
+
//# sourceMappingURL=chunk-6EXLQKE5.js.map
|
|
@@ -21108,27 +21108,38 @@ function stableStringify(value) {
|
|
|
21108
21108
|
return JSON.stringify(normalize(value, seen));
|
|
21109
21109
|
}
|
|
21110
21110
|
function normalize(value, seen) {
|
|
21111
|
-
if (value ===
|
|
21111
|
+
if (typeof value === "function") return void 0;
|
|
21112
|
+
if (typeof value === "bigint") throw new TypeError("Do not know how to serialize a BigInt");
|
|
21113
|
+
if (value === void 0) return Object.assign(/* @__PURE__ */ Object.create(null), { $type: "undefined" });
|
|
21112
21114
|
if (typeof value === "number" && !Number.isFinite(value))
|
|
21113
|
-
return { $type: "number", value: String(value) };
|
|
21115
|
+
return Object.assign(/* @__PURE__ */ Object.create(null), { $type: "number", value: String(value) });
|
|
21114
21116
|
if (value === null || typeof value !== "object") return value;
|
|
21115
21117
|
if (seen.has(value)) throw new TypeError("Host call arguments cannot contain cycles.");
|
|
21116
21118
|
seen.add(value);
|
|
21117
21119
|
try {
|
|
21118
21120
|
if (Array.isArray(value)) {
|
|
21119
|
-
const
|
|
21121
|
+
const normalized2 = new Array(value.length);
|
|
21122
|
+
Object.setPrototypeOf(normalized2, null);
|
|
21120
21123
|
for (const [key, descriptor] of Object.entries(Object.getOwnPropertyDescriptors(value))) {
|
|
21121
21124
|
if (!isArrayIndexKey(key)) continue;
|
|
21122
21125
|
if (!("value" in descriptor)) {
|
|
21123
21126
|
throw new TypeError("Host call arguments cannot contain accessor properties.");
|
|
21124
21127
|
}
|
|
21125
|
-
defineOwnDataProperty(
|
|
21128
|
+
defineOwnDataProperty(normalized2, key, normalize(descriptor.value, seen));
|
|
21126
21129
|
}
|
|
21127
|
-
return
|
|
21130
|
+
return normalized2;
|
|
21128
21131
|
}
|
|
21129
|
-
|
|
21130
|
-
|
|
21131
|
-
)
|
|
21132
|
+
const normalized = /* @__PURE__ */ Object.create(null);
|
|
21133
|
+
const descriptors = Object.getOwnPropertyDescriptors(value);
|
|
21134
|
+
for (const key of Object.keys(descriptors).sort()) {
|
|
21135
|
+
const descriptor = descriptors[key];
|
|
21136
|
+
if (!descriptor.enumerable) continue;
|
|
21137
|
+
if (!("value" in descriptor)) {
|
|
21138
|
+
throw new TypeError("Host call arguments cannot contain accessor properties.");
|
|
21139
|
+
}
|
|
21140
|
+
defineOwnDataProperty(normalized, key, normalize(descriptor.value, seen));
|
|
21141
|
+
}
|
|
21142
|
+
return normalized;
|
|
21132
21143
|
} finally {
|
|
21133
21144
|
seen.delete(value);
|
|
21134
21145
|
}
|
|
@@ -22513,6 +22524,8 @@ function wrapSandboxClosureForHost(closure, stackFrames, budget, callbacks) {
|
|
|
22513
22524
|
);
|
|
22514
22525
|
return pending;
|
|
22515
22526
|
};
|
|
22527
|
+
if (closure.length !== void 0)
|
|
22528
|
+
Object.defineProperty(wrapped, "length", { value: closure.length });
|
|
22516
22529
|
callbacks?.seen.set(closure, wrapped);
|
|
22517
22530
|
callbacks?.entries.set(id, invoke);
|
|
22518
22531
|
callbacks?.hostFunctions.set(id, wrapped);
|
|
@@ -29241,4 +29254,4 @@ export {
|
|
|
29241
29254
|
FileSnapshotBackend,
|
|
29242
29255
|
run
|
|
29243
29256
|
};
|
|
29244
|
-
//# sourceMappingURL=chunk-
|
|
29257
|
+
//# sourceMappingURL=chunk-YE6I5W6O.js.map
|