@poe-platform/safe-js 0.1.329 → 0.1.331
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-RRKX4TE7.js → chunk-ATHOU266.js} +2 -2
- package/dist/safe-js/chunks/{chunk-KGRMVGOD.js → chunk-BYCBPBQJ.js} +12 -9
- package/dist/safe-js/chunks/{chunk-KGRMVGOD.js.map → chunk-BYCBPBQJ.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-RRKX4TE7.js.map → chunk-ATHOU266.js.map} +0 -0
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
validateMigrationSemantics,
|
|
28
28
|
validateSnapshotData,
|
|
29
29
|
validateSnapshotMigration
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-BYCBPBQJ.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-ATHOU266.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"])
|
|
14886
|
+
for (const key of ["set", "slice", "subarray", "fill", "copyWithin", "reverse", "at", "includes", "indexOf"])
|
|
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,17 +14965,17 @@ 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"].includes(key)) return void 0;
|
|
14968
|
+
if (!["set", "slice", "subarray", "fill", "copyWithin", "reverse", "at", "includes", "indexOf"].includes(key)) return void 0;
|
|
14969
14969
|
return createSandboxClosure({
|
|
14970
14970
|
guest: true,
|
|
14971
14971
|
sandbox: true,
|
|
14972
14972
|
name: key,
|
|
14973
|
-
length: key === "reverse" ? 0 : key === "set" || key === "fill" || key === "at" || key === "includes" ? 1 : 2,
|
|
14973
|
+
length: key === "reverse" ? 0 : key === "set" || key === "fill" || key === "at" || key === "includes" || key === "indexOf" ? 1 : 2,
|
|
14974
14974
|
call: (args, context) => {
|
|
14975
14975
|
const receiver = context?.thisValue;
|
|
14976
14976
|
if (!isFloat32Array(receiver))
|
|
14977
14977
|
throw new TypeError(`Float32Array#${key} requires a Float32Array receiver.`);
|
|
14978
|
-
const storage2 = float32Storage(receiver, key === "slice" || key === "fill" || key === "copyWithin" || key === "reverse" || key === "at" || key === "includes");
|
|
14978
|
+
const storage2 = float32Storage(receiver, key === "slice" || key === "fill" || key === "copyWithin" || key === "reverse" || key === "at" || key === "includes" || key === "indexOf");
|
|
14979
14979
|
if (key === "reverse") {
|
|
14980
14980
|
const release = retainValues(budget, () => [receiver, ...args]);
|
|
14981
14981
|
try {
|
|
@@ -15004,18 +15004,21 @@ function getFloat32Member(value, property, budget, defaultConstructor) {
|
|
|
15004
15004
|
}),
|
|
15005
15005
|
invokeClosure: context?.invokeClosure ?? ((callee, values, thisValue, construct) => invokeBuiltinClosure(callee, values, budget, context, thisValue, construct))
|
|
15006
15006
|
};
|
|
15007
|
-
if (key === "includes") {
|
|
15008
|
-
|
|
15007
|
+
if (key === "includes" || key === "indexOf") {
|
|
15008
|
+
const notFound = key === "includes" ? false : -1;
|
|
15009
|
+
if (storage2.length === 0) return notFound;
|
|
15009
15010
|
return (async () => {
|
|
15010
15011
|
const release = retainValues(budget, () => [receiver, ...args]);
|
|
15011
15012
|
try {
|
|
15012
15013
|
const start = relativeIndex(await sandboxNumber(args[1], budget, bridge), storage2.length);
|
|
15013
15014
|
for (let index = start; index < storage2.length; index++) {
|
|
15014
15015
|
budget.visitNode();
|
|
15016
|
+
if (key === "indexOf" && !(index in receiver)) continue;
|
|
15015
15017
|
const element = receiver[index];
|
|
15016
|
-
if (element === args[0] || Number.isNaN(element) && Number.isNaN(args[0]))
|
|
15018
|
+
if (element === args[0] || key === "includes" && Number.isNaN(element) && Number.isNaN(args[0]))
|
|
15019
|
+
return key === "includes" ? true : index + 0;
|
|
15017
15020
|
}
|
|
15018
|
-
return
|
|
15021
|
+
return notFound;
|
|
15019
15022
|
} finally {
|
|
15020
15023
|
release();
|
|
15021
15024
|
}
|
|
@@ -42444,4 +42447,4 @@ export {
|
|
|
42444
42447
|
FileSnapshotBackend,
|
|
42445
42448
|
run
|
|
42446
42449
|
};
|
|
42447
|
-
//# sourceMappingURL=chunk-
|
|
42450
|
+
//# sourceMappingURL=chunk-BYCBPBQJ.js.map
|