poe-code 11.0.28 → 11.0.30
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 +27 -12
- package/dist/index.js.map +3 -3
- package/dist/metafile.json +1 -1
- package/package.json +1 -1
- package/packages/safejs/dist/chunks/{chunk-3OFXSTL2.js → chunk-44GTB3XV.js} +2 -2
- package/packages/safejs/dist/chunks/{chunk-FAAW5HF7.js → chunk-XPDK2VVP.js} +27 -12
- package/packages/safejs/dist/chunks/{chunk-FAAW5HF7.js.map → chunk-XPDK2VVP.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 +7 -6
- package/packages/safejs/dist/interp/host-call.js +13 -3
- package/packages/safejs/dist/interp/values.d.ts +2 -0
- package/packages/safejs/dist/interp/values.js +2 -2
- /package/packages/safejs/dist/chunks/{chunk-3OFXSTL2.js.map → chunk-44GTB3XV.js.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -137938,7 +137938,17 @@ function normalize2(value, seen) {
|
|
|
137938
137938
|
if (seen.has(value)) throw new TypeError("Host call arguments cannot contain cycles.");
|
|
137939
137939
|
seen.add(value);
|
|
137940
137940
|
try {
|
|
137941
|
-
if (Array.isArray(value))
|
|
137941
|
+
if (Array.isArray(value)) {
|
|
137942
|
+
const normalized = new Array(value.length);
|
|
137943
|
+
for (const [key3, descriptor] of Object.entries(Object.getOwnPropertyDescriptors(value))) {
|
|
137944
|
+
if (!isArrayIndexKey(key3)) continue;
|
|
137945
|
+
if (!("value" in descriptor)) {
|
|
137946
|
+
throw new TypeError("Host call arguments cannot contain accessor properties.");
|
|
137947
|
+
}
|
|
137948
|
+
defineOwnDataProperty(normalized, key3, normalize2(descriptor.value, seen));
|
|
137949
|
+
}
|
|
137950
|
+
return normalized;
|
|
137951
|
+
}
|
|
137942
137952
|
return Object.fromEntries(
|
|
137943
137953
|
Object.keys(value).sort().map((key3) => [key3, normalize2(value[key3], seen)])
|
|
137944
137954
|
);
|
|
@@ -142098,18 +142108,23 @@ function copyHostValueToSandbox(value, stackFrames, options, state, path191) {
|
|
|
142098
142108
|
const copy = new Array(value.length);
|
|
142099
142109
|
state.seen.set(value, copy);
|
|
142100
142110
|
budget.allocateArrayLength(value.length);
|
|
142101
|
-
for (
|
|
142102
|
-
const
|
|
142103
|
-
if (
|
|
142111
|
+
for (const [key3, descriptor] of Object.entries(Object.getOwnPropertyDescriptors(value))) {
|
|
142112
|
+
const indexed = isArrayIndexKey(key3);
|
|
142113
|
+
if (key3 === "length" || !descriptor.enumerable && !indexed) continue;
|
|
142114
|
+
const entryPath = indexed ? `${path191}[${key3}]` : joinPath2(path191, key3);
|
|
142104
142115
|
if (!("value" in descriptor)) {
|
|
142105
|
-
throw new TypeError(`Unsupported sandbox value at ${
|
|
142116
|
+
throw new TypeError(`Unsupported sandbox value at ${entryPath}: accessor property`);
|
|
142106
142117
|
}
|
|
142107
|
-
|
|
142108
|
-
|
|
142109
|
-
|
|
142110
|
-
|
|
142111
|
-
|
|
142112
|
-
|
|
142118
|
+
defineOwnDataProperty(
|
|
142119
|
+
copy,
|
|
142120
|
+
indexed ? key3 : budget.allocateString(key3),
|
|
142121
|
+
copyHostValueToSandbox(
|
|
142122
|
+
descriptor.value,
|
|
142123
|
+
stackFrames,
|
|
142124
|
+
{ ...options, capabilityPath: [...options.capabilityPath ?? [], key3] },
|
|
142125
|
+
state,
|
|
142126
|
+
entryPath
|
|
142127
|
+
)
|
|
142113
142128
|
);
|
|
142114
142129
|
}
|
|
142115
142130
|
return copy;
|
|
@@ -155808,7 +155823,7 @@ var init_package2 = __esm({
|
|
|
155808
155823
|
"package.json"() {
|
|
155809
155824
|
package_default2 = {
|
|
155810
155825
|
name: "poe-code",
|
|
155811
|
-
version: "11.0.
|
|
155826
|
+
version: "11.0.30",
|
|
155812
155827
|
description: "CLI tool to configure Poe API for developer workflows.",
|
|
155813
155828
|
license: "MIT",
|
|
155814
155829
|
type: "module",
|