@poe-platform/safe-js 0.1.342 → 0.1.344
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-NAUX4YNE.js → chunk-2PROU4RQ.js} +2 -2
- package/dist/safe-js/chunks/{chunk-OFW7PC42.js → chunk-TDLJESOA.js} +26 -5
- package/dist/safe-js/chunks/{chunk-OFW7PC42.js.map → chunk-TDLJESOA.js.map} +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-NAUX4YNE.js.map → chunk-2PROU4RQ.js.map} +0 -0
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
validateMigrationSemantics,
|
|
28
28
|
validateSnapshotData,
|
|
29
29
|
validateSnapshotMigration
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-TDLJESOA.js";
|
|
31
31
|
|
|
32
32
|
// packages/safe-js/src/migrate.ts
|
|
33
33
|
import { createHash } from "node:crypto";
|
|
@@ -8249,4 +8249,4 @@ export {
|
|
|
8249
8249
|
parseMcpConfig,
|
|
8250
8250
|
makeMcpModule
|
|
8251
8251
|
};
|
|
8252
|
-
//# sourceMappingURL=chunk-
|
|
8252
|
+
//# sourceMappingURL=chunk-2PROU4RQ.js.map
|
|
@@ -14883,7 +14883,7 @@ function createFloat32ArrayPrototypes(budget, constructor) {
|
|
|
14883
14883
|
getters.push(getter);
|
|
14884
14884
|
Object.defineProperty(shared, key, { get: accessorAdapter(getter, "get"), configurable: true });
|
|
14885
14885
|
}
|
|
14886
|
-
for (const key of ["set", "slice", "subarray", "fill", "copyWithin", "reverse", "at", "includes", "indexOf", "lastIndexOf", "forEach", "every", "some", "find", "findIndex", "findLast", "findLastIndex", "map", "filter", "toLocaleString"])
|
|
14886
|
+
for (const key of ["set", "slice", "subarray", "fill", "copyWithin", "reverse", "at", "includes", "indexOf", "lastIndexOf", "forEach", "every", "some", "find", "findIndex", "findLast", "findLastIndex", "reduce", "reduceRight", "map", "filter", "toLocaleString"])
|
|
14887
14887
|
Object.defineProperty(shared, key, { value: getFloat32Member(new Float32Array(0), key, budget, constructor), writable: true, configurable: true });
|
|
14888
14888
|
const arrayPrototype = resolveIntrinsicIdentity(budget, '["Array","prototype"]');
|
|
14889
14889
|
Object.defineProperty(shared, "toString", { value: getSandboxDataProperty(arrayPrototype, "toString", budget), writable: true, configurable: true });
|
|
@@ -14965,18 +14965,18 @@ function getFloat32Member(value, property, budget, defaultConstructor) {
|
|
|
14965
14965
|
if (key === "byteLength") return storage.length * 4;
|
|
14966
14966
|
if (key === "byteOffset") return storage.byteOffset;
|
|
14967
14967
|
if (key === "BYTES_PER_ELEMENT") return 4;
|
|
14968
|
-
if (!["set", "slice", "subarray", "fill", "copyWithin", "reverse", "at", "includes", "indexOf", "lastIndexOf", "forEach", "every", "some", "find", "findIndex", "findLast", "findLastIndex", "map", "filter", "toLocaleString"].includes(key)) return void 0;
|
|
14968
|
+
if (!["set", "slice", "subarray", "fill", "copyWithin", "reverse", "at", "includes", "indexOf", "lastIndexOf", "forEach", "every", "some", "find", "findIndex", "findLast", "findLastIndex", "reduce", "reduceRight", "map", "filter", "toLocaleString"].includes(key)) return void 0;
|
|
14969
14969
|
const numberPrototype = key === "toLocaleString" ? getBoxedPrototype(0, budget) : void 0;
|
|
14970
14970
|
return createSandboxClosure({
|
|
14971
14971
|
guest: true,
|
|
14972
14972
|
sandbox: true,
|
|
14973
14973
|
name: key,
|
|
14974
|
-
length: key === "reverse" || key === "toLocaleString" ? 0 : key === "map" || key === "filter" || key === "set" || key === "fill" || key === "at" || key === "includes" || key === "indexOf" || key === "lastIndexOf" || key === "forEach" || key === "every" || key === "some" || key === "find" || key === "findIndex" || key === "findLast" || key === "findLastIndex" ? 1 : 2,
|
|
14974
|
+
length: key === "reverse" || key === "toLocaleString" ? 0 : key === "reduce" || key === "reduceRight" || key === "map" || key === "filter" || key === "set" || key === "fill" || key === "at" || key === "includes" || key === "indexOf" || key === "lastIndexOf" || key === "forEach" || key === "every" || key === "some" || key === "find" || key === "findIndex" || key === "findLast" || key === "findLastIndex" ? 1 : 2,
|
|
14975
14975
|
call: (args, context) => {
|
|
14976
14976
|
const receiver = context?.thisValue;
|
|
14977
14977
|
if (!isFloat32Array(receiver))
|
|
14978
14978
|
throw new TypeError(`Float32Array#${key} requires a Float32Array receiver.`);
|
|
14979
|
-
const storage2 = float32Storage(receiver, key === "map" || key === "filter" || key === "slice" || key === "fill" || key === "copyWithin" || key === "reverse" || key === "at" || key === "includes" || key === "indexOf" || key === "lastIndexOf" || key === "forEach" || key === "every" || key === "some" || key === "find" || key === "findIndex" || key === "findLast" || key === "findLastIndex" || key === "toLocaleString");
|
|
14979
|
+
const storage2 = float32Storage(receiver, key === "reduce" || key === "reduceRight" || key === "map" || key === "filter" || key === "slice" || key === "fill" || key === "copyWithin" || key === "reverse" || key === "at" || key === "includes" || key === "indexOf" || key === "lastIndexOf" || key === "forEach" || key === "every" || key === "some" || key === "find" || key === "findIndex" || key === "findLast" || key === "findLastIndex" || key === "toLocaleString");
|
|
14980
14980
|
if (key === "reverse") {
|
|
14981
14981
|
const release = retainValues(budget, () => [receiver, ...args]);
|
|
14982
14982
|
try {
|
|
@@ -15029,6 +15029,27 @@ function getFloat32Member(value, property, budget, defaultConstructor) {
|
|
|
15029
15029
|
}
|
|
15030
15030
|
})();
|
|
15031
15031
|
}
|
|
15032
|
+
if (key === "reduce" || key === "reduceRight") {
|
|
15033
|
+
const callback2 = args[0];
|
|
15034
|
+
if (!isSandboxClosure(callback2)) throw new TypeError(`Float32Array#${key} callback must be callable.`);
|
|
15035
|
+
const hasInitialValue = args.length > 1;
|
|
15036
|
+
if (!hasInitialValue && storage2.length === 0) throw new TypeError("Reduce of empty typed array with no initial value.");
|
|
15037
|
+
const backwards = key === "reduceRight";
|
|
15038
|
+
const first = backwards ? storage2.length - 1 : 0;
|
|
15039
|
+
let accumulator = hasInitialValue ? args[1] : receiver[first];
|
|
15040
|
+
return (async () => {
|
|
15041
|
+
const release = retainValues(budget, () => [receiver, accumulator, ...args]);
|
|
15042
|
+
try {
|
|
15043
|
+
for (let index = hasInitialValue ? first : first + (backwards ? -1 : 1); backwards ? index >= 0 : index < storage2.length; index += backwards ? -1 : 1) {
|
|
15044
|
+
budget.visitNode();
|
|
15045
|
+
accumulator = await invokeBuiltinClosure(callback2, [accumulator, receiver[index], index, receiver], budget, bridge, void 0);
|
|
15046
|
+
}
|
|
15047
|
+
return accumulator;
|
|
15048
|
+
} finally {
|
|
15049
|
+
release();
|
|
15050
|
+
}
|
|
15051
|
+
})();
|
|
15052
|
+
}
|
|
15032
15053
|
if (key === "forEach" || key === "every" || key === "some" || key === "find" || key === "findIndex" || key === "findLast" || key === "findLastIndex") {
|
|
15033
15054
|
const callback2 = args[0];
|
|
15034
15055
|
if (!isSandboxClosure(callback2)) throw new TypeError(`Float32Array#${key} callback must be callable.`);
|
|
@@ -42533,4 +42554,4 @@ export {
|
|
|
42533
42554
|
FileSnapshotBackend,
|
|
42534
42555
|
run
|
|
42535
42556
|
};
|
|
42536
|
-
//# sourceMappingURL=chunk-
|
|
42557
|
+
//# sourceMappingURL=chunk-TDLJESOA.js.map
|