poe-code 11.0.29 → 11.0.31
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 +28 -7
- package/dist/index.js.map +3 -3
- package/dist/metafile.json +1 -1
- package/package.json +1 -1
- package/packages/safejs/dist/chunks/{chunk-DB2DNWCX.js → chunk-5IU6NPGM.js} +2 -2
- package/packages/safejs/dist/chunks/{chunk-HC3QSP5N.js → chunk-NPXVDTLX.js} +28 -7
- package/packages/safejs/dist/chunks/{chunk-HC3QSP5N.js.map → chunk-NPXVDTLX.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-call.js +32 -8
- /package/packages/safejs/dist/chunks/{chunk-DB2DNWCX.js.map → chunk-5IU6NPGM.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-NPXVDTLX.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-5IU6NPGM.js.map
|
|
@@ -21108,17 +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
|
-
if (Array.isArray(value))
|
|
21119
|
-
|
|
21120
|
-
Object.
|
|
21121
|
-
|
|
21120
|
+
if (Array.isArray(value)) {
|
|
21121
|
+
const normalized2 = new Array(value.length);
|
|
21122
|
+
Object.setPrototypeOf(normalized2, null);
|
|
21123
|
+
for (const [key, descriptor] of Object.entries(Object.getOwnPropertyDescriptors(value))) {
|
|
21124
|
+
if (!isArrayIndexKey(key)) continue;
|
|
21125
|
+
if (!("value" in descriptor)) {
|
|
21126
|
+
throw new TypeError("Host call arguments cannot contain accessor properties.");
|
|
21127
|
+
}
|
|
21128
|
+
defineOwnDataProperty(normalized2, key, normalize(descriptor.value, seen));
|
|
21129
|
+
}
|
|
21130
|
+
return normalized2;
|
|
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;
|
|
21122
21143
|
} finally {
|
|
21123
21144
|
seen.delete(value);
|
|
21124
21145
|
}
|
|
@@ -29231,4 +29252,4 @@ export {
|
|
|
29231
29252
|
FileSnapshotBackend,
|
|
29232
29253
|
run
|
|
29233
29254
|
};
|
|
29234
|
-
//# sourceMappingURL=chunk-
|
|
29255
|
+
//# sourceMappingURL=chunk-NPXVDTLX.js.map
|