@poe-platform/safe-js 0.1.260 → 0.1.262
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-CPIBGRWA.js → chunk-LTZBKTUZ.js} +5 -5
- package/dist/safe-js/chunks/chunk-LTZBKTUZ.js.map +7 -0
- package/dist/safe-js/chunks/{chunk-CS6QY2D2.js → chunk-O5Y6Q2W5.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-CPIBGRWA.js.map +0 -7
- /package/dist/safe-js/chunks/{chunk-CS6QY2D2.js.map → chunk-O5Y6Q2W5.js.map} +0 -0
|
@@ -8004,9 +8004,9 @@ function setSandboxPrototype(value, prototype, budget) {
|
|
|
8004
8004
|
if (budget !== void 0 && intrinsicPrototypes.get(budget) === value && prototype !== null) {
|
|
8005
8005
|
throw new TypeError("Object.prototype has an immutable null prototype.");
|
|
8006
8006
|
}
|
|
8007
|
-
if (!Array.isArray(value) && !isSandboxRegex(value) && !isSandboxMap(value) && !isSandboxSet(value) && !isPrototypeRecord(value) || prototype !== null && !Array.isArray(prototype) && !isPrototypeRecord(prototype)) {
|
|
8007
|
+
if (!Array.isArray(value) && !isSandboxRegex(value) && !isSandboxMap(value) && !isSandboxSet(value) && !isPrototypeRecord(value) || prototype !== null && !Array.isArray(prototype) && !isSandboxRegex(prototype) && !isSandboxMap(prototype) && !isSandboxSet(prototype) && !isPrototypeRecord(prototype)) {
|
|
8008
8008
|
throw new TypeError(
|
|
8009
|
-
"Prototype links require
|
|
8009
|
+
"Prototype links require supported sandbox objects."
|
|
8010
8010
|
);
|
|
8011
8011
|
}
|
|
8012
8012
|
if (getSandboxPrototype(value, budget) === prototype) {
|
|
@@ -17450,7 +17450,7 @@ function forInKeys(object, budget) {
|
|
|
17450
17450
|
for (let current = object; current !== null; current = getSandboxPrototype(current, budget)) {
|
|
17451
17451
|
if (depth > 0) budget.visitNode();
|
|
17452
17452
|
assertSandboxDataDepth(depth++);
|
|
17453
|
-
const properties = isGuestClosure(current) ? materializeFunctionProperties(current) : isSandboxClosure(current) ? current.properties ?? {} : current;
|
|
17453
|
+
const properties = isGuestClosure(current) ? materializeFunctionProperties(current) : isSandboxClosure(current) ? current.properties ?? {} : isSandboxRegex(current) ? getRegexProperties(current) : isSandboxMap(current) || isSandboxSet(current) ? getCollectionProperties(current) : current;
|
|
17454
17454
|
for (const key of Object.getOwnPropertyNames(properties)) {
|
|
17455
17455
|
if (seen.has(key)) continue;
|
|
17456
17456
|
seen.add(key);
|
|
@@ -17466,7 +17466,7 @@ function hasForInProperty(object, key, budget) {
|
|
|
17466
17466
|
for (let current = object; current !== null; current = getSandboxPrototype(current, budget)) {
|
|
17467
17467
|
if (depth > 0) budget.visitNode();
|
|
17468
17468
|
assertSandboxDataDepth(depth++);
|
|
17469
|
-
const properties = isGuestClosure(current) ? materializeFunctionProperties(current) : isSandboxClosure(current) ? current.properties ?? {} : current;
|
|
17469
|
+
const properties = isGuestClosure(current) ? materializeFunctionProperties(current) : isSandboxClosure(current) ? current.properties ?? {} : isSandboxRegex(current) ? getRegexProperties(current) : isSandboxMap(current) || isSandboxSet(current) ? getCollectionProperties(current) : current;
|
|
17470
17470
|
if (Object.hasOwn(properties, key)) return true;
|
|
17471
17471
|
}
|
|
17472
17472
|
return false;
|
|
@@ -40036,4 +40036,4 @@ export {
|
|
|
40036
40036
|
FileSnapshotBackend,
|
|
40037
40037
|
run
|
|
40038
40038
|
};
|
|
40039
|
-
//# sourceMappingURL=chunk-
|
|
40039
|
+
//# sourceMappingURL=chunk-LTZBKTUZ.js.map
|