@poe-platform/safe-js 0.1.366 → 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-BKYW2WCU.js → chunk-MIIX63EV.js} +9 -8
- package/dist/safe-js/chunks/{chunk-BKYW2WCU.js.map → chunk-MIIX63EV.js.map} +2 -2
- package/dist/safe-js/chunks/{chunk-EJU2K27W.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-EJU2K27W.js.map → chunk-YZVG2IAP.js.map} +0 -0
|
@@ -25660,6 +25660,7 @@ function cloneStructuredValue(value, transfers, budget, context) {
|
|
|
25660
25660
|
}
|
|
25661
25661
|
}
|
|
25662
25662
|
function assertStructuredCloneable(value, seen) {
|
|
25663
|
+
if (typeof value === "symbol") throw new DOMException("Cannot clone a symbol value.", "DataCloneError");
|
|
25663
25664
|
if (isSandboxClosure(value) || isSandboxPromise(value) || isSandboxCollectionIterator(value) || isSandboxRegExpIterator(value))
|
|
25664
25665
|
throw new DOMException("Cannot clone closures, promises, or collection iterators.", "DataCloneError");
|
|
25665
25666
|
if (typeof value !== "object" || value === null || seen.has(value)) return;
|
|
@@ -28667,7 +28668,7 @@ function copyToSandbox(value, state, path = "<root>", cloneSandboxCollections =
|
|
|
28667
28668
|
}
|
|
28668
28669
|
return copy;
|
|
28669
28670
|
}
|
|
28670
|
-
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)))) {
|
|
28671
28672
|
throw new TypeError("Guest prototype links and custom descriptors cannot be copied as data.");
|
|
28672
28673
|
}
|
|
28673
28674
|
const primitive = nativeBoxedValue(value);
|
|
@@ -28851,7 +28852,7 @@ function copyToSandbox(value, state, path = "<root>", cloneSandboxCollections =
|
|
|
28851
28852
|
}
|
|
28852
28853
|
const copy = new Array(value.length);
|
|
28853
28854
|
state.seen.set(value, copy);
|
|
28854
|
-
for (const entry of getEnumerableArrayEntries(value, path)) {
|
|
28855
|
+
for (const entry of getEnumerableArrayEntries(value, path, !state.structuredClone)) {
|
|
28855
28856
|
defineOwnDataProperty(
|
|
28856
28857
|
copy,
|
|
28857
28858
|
entry.key,
|
|
@@ -28890,7 +28891,7 @@ function copyToSandbox(value, state, path = "<root>", cloneSandboxCollections =
|
|
|
28890
28891
|
state.seen.set(value, copy);
|
|
28891
28892
|
const errorType = sandboxErrorTypes.get(value);
|
|
28892
28893
|
if (errorType !== void 0) sandboxErrorTypes.set(copy, errorType);
|
|
28893
|
-
for (const entry of getEnumerableObjectEntries(value, path)) {
|
|
28894
|
+
for (const entry of getEnumerableObjectEntries(value, path, !state.structuredClone)) {
|
|
28894
28895
|
defineOwnDataProperty(
|
|
28895
28896
|
copy,
|
|
28896
28897
|
entry.key,
|
|
@@ -29316,11 +29317,11 @@ function defineOwnDataProperty(target, key, value) {
|
|
|
29316
29317
|
value
|
|
29317
29318
|
});
|
|
29318
29319
|
}
|
|
29319
|
-
function getEnumerableObjectEntries(value, path) {
|
|
29320
|
+
function getEnumerableObjectEntries(value, path, includeSymbols = true) {
|
|
29320
29321
|
const descriptors2 = Object.getOwnPropertyDescriptors(value);
|
|
29321
29322
|
const entries = [];
|
|
29322
29323
|
for (const key of Reflect.ownKeys(descriptors2)) {
|
|
29323
|
-
if (typeof key === "symbol" && internalSymbols.has(key)) continue;
|
|
29324
|
+
if (typeof key === "symbol" && (!includeSymbols || internalSymbols.has(key))) continue;
|
|
29324
29325
|
const descriptor = Object.getOwnPropertyDescriptor(descriptors2, key).value;
|
|
29325
29326
|
if (!descriptor.enumerable) {
|
|
29326
29327
|
continue;
|
|
@@ -29335,11 +29336,11 @@ function getEnumerableObjectEntries(value, path) {
|
|
|
29335
29336
|
}
|
|
29336
29337
|
return entries;
|
|
29337
29338
|
}
|
|
29338
|
-
function getEnumerableArrayEntries(value, path) {
|
|
29339
|
+
function getEnumerableArrayEntries(value, path, includeSymbols = true) {
|
|
29339
29340
|
const descriptors2 = Object.getOwnPropertyDescriptors(value);
|
|
29340
29341
|
const entries = [];
|
|
29341
29342
|
for (const key of Reflect.ownKeys(descriptors2)) {
|
|
29342
|
-
if (typeof key === "symbol" && internalSymbols.has(key)) continue;
|
|
29343
|
+
if (typeof key === "symbol" && (!includeSymbols || internalSymbols.has(key))) continue;
|
|
29343
29344
|
const descriptor = Object.getOwnPropertyDescriptor(descriptors2, key).value;
|
|
29344
29345
|
if (key === "length" || !descriptor.enumerable) {
|
|
29345
29346
|
continue;
|
|
@@ -43502,4 +43503,4 @@ export {
|
|
|
43502
43503
|
FileSnapshotBackend,
|
|
43503
43504
|
run
|
|
43504
43505
|
};
|
|
43505
|
-
//# sourceMappingURL=chunk-
|
|
43506
|
+
//# sourceMappingURL=chunk-MIIX63EV.js.map
|