@poe-platform/safe-js 0.1.345 → 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-ROGZ5V7B.js → chunk-B2YSIUFJ.js} +2 -2
- package/dist/safe-js/chunks/{chunk-GW25G3LN.js → chunk-FBNMJ5UK.js} +29 -11
- package/dist/safe-js/chunks/{chunk-GW25G3LN.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-ROGZ5V7B.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", "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,36 @@ 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", "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 === "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 === "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
|
+
if (key === "toReversed") {
|
|
14983
|
+
let result;
|
|
14984
|
+
const release = retainValues(budget, () => [receiver, result, ...args]);
|
|
14985
|
+
try {
|
|
14986
|
+
checkFloat32Allocation(storage2.length, budget);
|
|
14987
|
+
result = new Float32Array(storage2.length);
|
|
14988
|
+
createDataCheckpoint(budget, context)(result, 0, true);
|
|
14989
|
+
for (let index = 0; index < storage2.length; index++) {
|
|
14990
|
+
budget.visitNode();
|
|
14991
|
+
result[index] = receiver[storage2.length - index - 1];
|
|
14992
|
+
}
|
|
14993
|
+
return result;
|
|
14994
|
+
} finally {
|
|
14995
|
+
release();
|
|
14996
|
+
}
|
|
14997
|
+
}
|
|
14982
14998
|
if (key === "reverse") {
|
|
14983
14999
|
const release = retainValues(budget, () => [receiver, ...args]);
|
|
14984
15000
|
try {
|
|
@@ -15007,9 +15023,9 @@ function getFloat32Member(value, property, budget, defaultConstructor) {
|
|
|
15007
15023
|
}),
|
|
15008
15024
|
invokeClosure: context?.invokeClosure ?? ((callee, values, thisValue, construct) => invokeBuiltinClosure(callee, values, budget, context, thisValue, construct))
|
|
15009
15025
|
};
|
|
15010
|
-
if (key === "sort") {
|
|
15026
|
+
if (key === "sort" || key === "toSorted") {
|
|
15011
15027
|
const comparator = args[0];
|
|
15012
|
-
if (storage2.length < 2) return receiver;
|
|
15028
|
+
if (key === "sort" && storage2.length < 2) return receiver;
|
|
15013
15029
|
return (async () => {
|
|
15014
15030
|
let items;
|
|
15015
15031
|
let scratch;
|
|
@@ -15020,13 +15036,14 @@ function getFloat32Member(value, property, budget, defaultConstructor) {
|
|
|
15020
15036
|
checkFloat32Allocation(storage2.length, budget);
|
|
15021
15037
|
items = new Float32Array(storage2.length);
|
|
15022
15038
|
checkData(items, 0, true);
|
|
15023
|
-
checkFloat32Allocation(storage2.length, budget);
|
|
15024
|
-
scratch = new Float32Array(storage2.length);
|
|
15025
|
-
checkData(scratch, 0, true);
|
|
15026
15039
|
for (let index = 0; index < storage2.length; index++) {
|
|
15027
15040
|
budget.visitNode();
|
|
15028
15041
|
items[index] = receiver[index];
|
|
15029
15042
|
}
|
|
15043
|
+
if (storage2.length < 2) return items;
|
|
15044
|
+
checkFloat32Allocation(storage2.length, budget);
|
|
15045
|
+
scratch = new Float32Array(storage2.length);
|
|
15046
|
+
checkData(scratch, 0, true);
|
|
15030
15047
|
for (let width = 1; width < storage2.length; width *= 2) {
|
|
15031
15048
|
for (let start = 0; start < storage2.length; start += width * 2) {
|
|
15032
15049
|
const middle = Math.min(start + width, storage2.length);
|
|
@@ -15057,6 +15074,7 @@ function getFloat32Member(value, property, budget, defaultConstructor) {
|
|
|
15057
15074
|
items = scratch;
|
|
15058
15075
|
scratch = previous;
|
|
15059
15076
|
}
|
|
15077
|
+
if (key === "toSorted") return items;
|
|
15060
15078
|
for (let index = 0; index < storage2.length; index++) {
|
|
15061
15079
|
budget.visitNode();
|
|
15062
15080
|
receiver[index] = items[index];
|
|
@@ -42616,4 +42634,4 @@ export {
|
|
|
42616
42634
|
FileSnapshotBackend,
|
|
42617
42635
|
run
|
|
42618
42636
|
};
|
|
42619
|
-
//# sourceMappingURL=chunk-
|
|
42637
|
+
//# sourceMappingURL=chunk-FBNMJ5UK.js.map
|