@poe-platform/safe-js 0.1.367 → 0.1.368
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-2UQ2QDUV.js → chunk-MIIX63EV.js} +8 -8
- package/dist/safe-js/chunks/{chunk-2UQ2QDUV.js.map → chunk-MIIX63EV.js.map} +2 -2
- package/dist/safe-js/chunks/{chunk-U6OK5SV5.js → chunk-YZVG2IAP.js} +2 -2
- 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-U6OK5SV5.js.map → chunk-YZVG2IAP.js.map} +0 -0
|
@@ -28668,7 +28668,7 @@ function copyToSandbox(value, state, path = "<root>", cloneSandboxCollections =
|
|
|
28668
28668
|
}
|
|
28669
28669
|
return copy;
|
|
28670
28670
|
}
|
|
28671
|
-
if (typeof value === "object" && value !== null && hasGuestObjectState(value) && !(state.structuredClone && (isSandboxDate(value) || isSandboxArrayBuffer(value) || isSandboxDataView(value) || isNumericTypedArray(value)))) {
|
|
28671
|
+
if (typeof value === "object" && value !== null && hasGuestObjectState(value) && !(state.structuredClone && (isPlainObject4(value) || isPlainArray(value) || isSandboxDate(value) || isSandboxArrayBuffer(value) || isSandboxDataView(value) || isNumericTypedArray(value)))) {
|
|
28672
28672
|
throw new TypeError("Guest prototype links and custom descriptors cannot be copied as data.");
|
|
28673
28673
|
}
|
|
28674
28674
|
const primitive = nativeBoxedValue(value);
|
|
@@ -28852,7 +28852,7 @@ function copyToSandbox(value, state, path = "<root>", cloneSandboxCollections =
|
|
|
28852
28852
|
}
|
|
28853
28853
|
const copy = new Array(value.length);
|
|
28854
28854
|
state.seen.set(value, copy);
|
|
28855
|
-
for (const entry of getEnumerableArrayEntries(value, path)) {
|
|
28855
|
+
for (const entry of getEnumerableArrayEntries(value, path, !state.structuredClone)) {
|
|
28856
28856
|
defineOwnDataProperty(
|
|
28857
28857
|
copy,
|
|
28858
28858
|
entry.key,
|
|
@@ -28891,7 +28891,7 @@ function copyToSandbox(value, state, path = "<root>", cloneSandboxCollections =
|
|
|
28891
28891
|
state.seen.set(value, copy);
|
|
28892
28892
|
const errorType = sandboxErrorTypes.get(value);
|
|
28893
28893
|
if (errorType !== void 0) sandboxErrorTypes.set(copy, errorType);
|
|
28894
|
-
for (const entry of getEnumerableObjectEntries(value, path)) {
|
|
28894
|
+
for (const entry of getEnumerableObjectEntries(value, path, !state.structuredClone)) {
|
|
28895
28895
|
defineOwnDataProperty(
|
|
28896
28896
|
copy,
|
|
28897
28897
|
entry.key,
|
|
@@ -29317,11 +29317,11 @@ function defineOwnDataProperty(target, key, value) {
|
|
|
29317
29317
|
value
|
|
29318
29318
|
});
|
|
29319
29319
|
}
|
|
29320
|
-
function getEnumerableObjectEntries(value, path) {
|
|
29320
|
+
function getEnumerableObjectEntries(value, path, includeSymbols = true) {
|
|
29321
29321
|
const descriptors2 = Object.getOwnPropertyDescriptors(value);
|
|
29322
29322
|
const entries = [];
|
|
29323
29323
|
for (const key of Reflect.ownKeys(descriptors2)) {
|
|
29324
|
-
if (typeof key === "symbol" && internalSymbols.has(key)) continue;
|
|
29324
|
+
if (typeof key === "symbol" && (!includeSymbols || internalSymbols.has(key))) continue;
|
|
29325
29325
|
const descriptor = Object.getOwnPropertyDescriptor(descriptors2, key).value;
|
|
29326
29326
|
if (!descriptor.enumerable) {
|
|
29327
29327
|
continue;
|
|
@@ -29336,11 +29336,11 @@ function getEnumerableObjectEntries(value, path) {
|
|
|
29336
29336
|
}
|
|
29337
29337
|
return entries;
|
|
29338
29338
|
}
|
|
29339
|
-
function getEnumerableArrayEntries(value, path) {
|
|
29339
|
+
function getEnumerableArrayEntries(value, path, includeSymbols = true) {
|
|
29340
29340
|
const descriptors2 = Object.getOwnPropertyDescriptors(value);
|
|
29341
29341
|
const entries = [];
|
|
29342
29342
|
for (const key of Reflect.ownKeys(descriptors2)) {
|
|
29343
|
-
if (typeof key === "symbol" && internalSymbols.has(key)) continue;
|
|
29343
|
+
if (typeof key === "symbol" && (!includeSymbols || internalSymbols.has(key))) continue;
|
|
29344
29344
|
const descriptor = Object.getOwnPropertyDescriptor(descriptors2, key).value;
|
|
29345
29345
|
if (key === "length" || !descriptor.enumerable) {
|
|
29346
29346
|
continue;
|
|
@@ -43503,4 +43503,4 @@ export {
|
|
|
43503
43503
|
FileSnapshotBackend,
|
|
43504
43504
|
run
|
|
43505
43505
|
};
|
|
43506
|
-
//# sourceMappingURL=chunk-
|
|
43506
|
+
//# sourceMappingURL=chunk-MIIX63EV.js.map
|