@poe-platform/safe-js 0.1.346 → 0.1.347
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-45INMY3D.js → chunk-B2YSIUFJ.js} +2 -2
- package/dist/safe-js/chunks/{chunk-X2P45BAH.js → chunk-FBNMJ5UK.js} +13 -11
- package/dist/safe-js/chunks/{chunk-X2P45BAH.js.map → chunk-FBNMJ5UK.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-45INMY3D.js.map → chunk-B2YSIUFJ.js.map} +0 -0
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
validateMigrationSemantics,
|
|
28
28
|
validateSnapshotData,
|
|
29
29
|
validateSnapshotMigration
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-FBNMJ5UK.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-B2YSIUFJ.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", "toReversed", "at", "includes", "indexOf", "lastIndexOf", "forEach", "every", "some", "find", "findIndex", "findLast", "findLastIndex", "sort", "reduce", "reduceRight", "map", "filter", "toLocaleString"])
|
|
14886
|
+
for (const key of ["set", "slice", "subarray", "fill", "copyWithin", "reverse", "toReversed", "at", "includes", "indexOf", "lastIndexOf", "forEach", "every", "some", "find", "findIndex", "findLast", "findLastIndex", "sort", "toSorted", "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,20 +14965,20 @@ 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", "toReversed", "at", "includes", "indexOf", "lastIndexOf", "forEach", "every", "some", "find", "findIndex", "findLast", "findLastIndex", "sort", "reduce", "reduceRight", "map", "filter", "toLocaleString"].includes(key)) return void 0;
|
|
14968
|
+
if (!["set", "slice", "subarray", "fill", "copyWithin", "reverse", "toReversed", "at", "includes", "indexOf", "lastIndexOf", "forEach", "every", "some", "find", "findIndex", "findLast", "findLastIndex", "sort", "toSorted", "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 === "toReversed" || key === "toLocaleString" ? 0 : key === "sort" || 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,
|
|
14974
|
+
length: key === "reverse" || key === "toReversed" || key === "toLocaleString" ? 0 : key === "sort" || key === "toSorted" || 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
|
-
if (key === "sort" && args[0] !== void 0 && !isSandboxClosure(args[0]))
|
|
14976
|
+
if ((key === "sort" || key === "toSorted") && args[0] !== void 0 && !isSandboxClosure(args[0]))
|
|
14977
14977
|
throw new TypeError("TypedArray sort comparator must be callable.");
|
|
14978
14978
|
const receiver = context?.thisValue;
|
|
14979
14979
|
if (!isFloat32Array(receiver))
|
|
14980
14980
|
throw new TypeError(`Float32Array#${key} requires a Float32Array receiver.`);
|
|
14981
|
-
const storage2 = float32Storage(receiver, key === "sort" || key === "reduce" || key === "reduceRight" || key === "map" || key === "filter" || key === "slice" || key === "fill" || key === "copyWithin" || key === "reverse" || key === "toReversed" || key === "at" || key === "includes" || key === "indexOf" || key === "lastIndexOf" || key === "forEach" || key === "every" || key === "some" || key === "find" || key === "findIndex" || key === "findLast" || key === "findLastIndex" || key === "toLocaleString");
|
|
14981
|
+
const storage2 = float32Storage(receiver, key === "sort" || key === "toSorted" || key === "reduce" || key === "reduceRight" || key === "map" || key === "filter" || key === "slice" || key === "fill" || key === "copyWithin" || key === "reverse" || key === "toReversed" || key === "at" || key === "includes" || key === "indexOf" || key === "lastIndexOf" || key === "forEach" || key === "every" || key === "some" || key === "find" || key === "findIndex" || key === "findLast" || key === "findLastIndex" || key === "toLocaleString");
|
|
14982
14982
|
if (key === "toReversed") {
|
|
14983
14983
|
let result;
|
|
14984
14984
|
const release = retainValues(budget, () => [receiver, result, ...args]);
|
|
@@ -15023,9 +15023,9 @@ function getFloat32Member(value, property, budget, defaultConstructor) {
|
|
|
15023
15023
|
}),
|
|
15024
15024
|
invokeClosure: context?.invokeClosure ?? ((callee, values, thisValue, construct) => invokeBuiltinClosure(callee, values, budget, context, thisValue, construct))
|
|
15025
15025
|
};
|
|
15026
|
-
if (key === "sort") {
|
|
15026
|
+
if (key === "sort" || key === "toSorted") {
|
|
15027
15027
|
const comparator = args[0];
|
|
15028
|
-
if (storage2.length < 2) return receiver;
|
|
15028
|
+
if (key === "sort" && storage2.length < 2) return receiver;
|
|
15029
15029
|
return (async () => {
|
|
15030
15030
|
let items;
|
|
15031
15031
|
let scratch;
|
|
@@ -15036,13 +15036,14 @@ function getFloat32Member(value, property, budget, defaultConstructor) {
|
|
|
15036
15036
|
checkFloat32Allocation(storage2.length, budget);
|
|
15037
15037
|
items = new Float32Array(storage2.length);
|
|
15038
15038
|
checkData(items, 0, true);
|
|
15039
|
-
checkFloat32Allocation(storage2.length, budget);
|
|
15040
|
-
scratch = new Float32Array(storage2.length);
|
|
15041
|
-
checkData(scratch, 0, true);
|
|
15042
15039
|
for (let index = 0; index < storage2.length; index++) {
|
|
15043
15040
|
budget.visitNode();
|
|
15044
15041
|
items[index] = receiver[index];
|
|
15045
15042
|
}
|
|
15043
|
+
if (storage2.length < 2) return items;
|
|
15044
|
+
checkFloat32Allocation(storage2.length, budget);
|
|
15045
|
+
scratch = new Float32Array(storage2.length);
|
|
15046
|
+
checkData(scratch, 0, true);
|
|
15046
15047
|
for (let width = 1; width < storage2.length; width *= 2) {
|
|
15047
15048
|
for (let start = 0; start < storage2.length; start += width * 2) {
|
|
15048
15049
|
const middle = Math.min(start + width, storage2.length);
|
|
@@ -15073,6 +15074,7 @@ function getFloat32Member(value, property, budget, defaultConstructor) {
|
|
|
15073
15074
|
items = scratch;
|
|
15074
15075
|
scratch = previous;
|
|
15075
15076
|
}
|
|
15077
|
+
if (key === "toSorted") return items;
|
|
15076
15078
|
for (let index = 0; index < storage2.length; index++) {
|
|
15077
15079
|
budget.visitNode();
|
|
15078
15080
|
receiver[index] = items[index];
|
|
@@ -42632,4 +42634,4 @@ export {
|
|
|
42632
42634
|
FileSnapshotBackend,
|
|
42633
42635
|
run
|
|
42634
42636
|
};
|
|
42635
|
-
//# sourceMappingURL=chunk-
|
|
42637
|
+
//# sourceMappingURL=chunk-FBNMJ5UK.js.map
|