@poe-platform/safe-js 0.1.265 → 0.1.267
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-WOTMGYUK.js → chunk-GF6I2VQR.js} +12 -7
- package/dist/safe-js/chunks/{chunk-WOTMGYUK.js.map → chunk-GF6I2VQR.js.map} +2 -2
- package/dist/safe-js/chunks/{chunk-DUEGXM77.js → chunk-MEDRKFEW.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-DUEGXM77.js.map → chunk-MEDRKFEW.js.map} +0 -0
|
@@ -13936,14 +13936,17 @@ function assignSandboxValues(target, sources, budget, context) {
|
|
|
13936
13936
|
target = createSandboxBox(target);
|
|
13937
13937
|
budget.chargeDataUsage(measureSandboxData([target]));
|
|
13938
13938
|
}
|
|
13939
|
-
if (!
|
|
13940
|
-
throw new TypeError("Object.assign(target, ...sources) requires an object or array target.");
|
|
13941
|
-
}
|
|
13939
|
+
if (!isGuestHostObject(target)) objectProperties(target, true);
|
|
13942
13940
|
if (context === void 0) {
|
|
13943
13941
|
for (const source of sources) {
|
|
13944
13942
|
if (source === null || source === void 0) continue;
|
|
13945
|
-
|
|
13943
|
+
const properties = isGuestHostObject(source) ? void 0 : reflectionProperties(source);
|
|
13944
|
+
const keys = properties === void 0 ? ownEnumerableSandboxKeys(source, true) : [...Object.getOwnPropertyNames(properties), ...ownSandboxSymbolKeys(source)];
|
|
13945
|
+
for (const key of keys) {
|
|
13946
|
+
if (!hasOwnSandboxProperty(source, key, true)) continue;
|
|
13947
|
+
const value = properties === void 0 ? getSandboxDataProperty(source, key, budget) : Reflect.get(properties, key, source);
|
|
13946
13948
|
setSandboxProperty(target, key, value, budget);
|
|
13949
|
+
}
|
|
13947
13950
|
}
|
|
13948
13951
|
return target;
|
|
13949
13952
|
}
|
|
@@ -13952,9 +13955,11 @@ function assignSandboxValues(target, sources, budget, context) {
|
|
|
13952
13955
|
try {
|
|
13953
13956
|
for (const source of sources) {
|
|
13954
13957
|
if (source === null || source === void 0) continue;
|
|
13955
|
-
|
|
13958
|
+
const properties = isGuestHostObject(source) ? void 0 : reflectionProperties(source);
|
|
13959
|
+
const keys = properties === void 0 ? ownEnumerableSandboxKeys(source, true) : [...Object.getOwnPropertyNames(properties), ...ownSandboxSymbolKeys(source)];
|
|
13960
|
+
for (const key of keys) {
|
|
13956
13961
|
if (!hasOwnSandboxProperty(source, key, true)) continue;
|
|
13957
|
-
const value = await (context
|
|
13962
|
+
const value = await (context?.getProperty !== void 0 ? context.getProperty(source, key) : isGuestHostObject(source) ? getSandboxDataProperty(source, key, budget) : readPropertyDescriptor(Object.getOwnPropertyDescriptor(properties, key), source, context, true));
|
|
13958
13963
|
await setSandboxProperty(target, key, value, budget, true, context);
|
|
13959
13964
|
}
|
|
13960
13965
|
}
|
|
@@ -40084,4 +40089,4 @@ export {
|
|
|
40084
40089
|
FileSnapshotBackend,
|
|
40085
40090
|
run
|
|
40086
40091
|
};
|
|
40087
|
-
//# sourceMappingURL=chunk-
|
|
40092
|
+
//# sourceMappingURL=chunk-GF6I2VQR.js.map
|