@poe-platform/safe-js 0.1.352 → 0.1.353
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-J2YBAXLB.js → chunk-BWBBXXBE.js} +2 -2
- package/dist/safe-js/chunks/{chunk-ZCAXO5OU.js → chunk-LZ2NZ2PE.js} +4 -4
- package/dist/safe-js/chunks/{chunk-ZCAXO5OU.js.map → chunk-LZ2NZ2PE.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-J2YBAXLB.js.map → chunk-BWBBXXBE.js.map} +0 -0
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
validateMigrationSemantics,
|
|
28
28
|
validateSnapshotData,
|
|
29
29
|
validateSnapshotMigration
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-LZ2NZ2PE.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-BWBBXXBE.js.map
|
|
@@ -25612,13 +25612,13 @@ function createArrayBufferGlobal(budget) {
|
|
|
25612
25612
|
}
|
|
25613
25613
|
})
|
|
25614
25614
|
});
|
|
25615
|
-
Object.defineProperty(prototype,
|
|
25615
|
+
for (const key of ["transfer", "transferToFixedLength"]) Object.defineProperty(prototype, key, {
|
|
25616
25616
|
writable: true,
|
|
25617
25617
|
configurable: true,
|
|
25618
25618
|
value: createSandboxClosure({
|
|
25619
25619
|
guest: true,
|
|
25620
25620
|
sandbox: true,
|
|
25621
|
-
name:
|
|
25621
|
+
name: key,
|
|
25622
25622
|
length: 0,
|
|
25623
25623
|
call: async (args, context) => {
|
|
25624
25624
|
const receiver = context?.thisValue;
|
|
@@ -25631,7 +25631,7 @@ function createArrayBufferGlobal(budget) {
|
|
|
25631
25631
|
const length = Number.isNaN(number) ? 0 : Math.trunc(number);
|
|
25632
25632
|
if (!Number.isSafeInteger(length) || length < 0) throw new RangeError("Invalid ArrayBuffer transfer length.");
|
|
25633
25633
|
if (arrayBufferDetached(receiver)) throw new TypeError("Cannot transfer a detached ArrayBuffer.");
|
|
25634
|
-
const options = arrayBufferOptions(receiver);
|
|
25634
|
+
const options = key === "transfer" ? arrayBufferOptions(receiver) : void 0;
|
|
25635
25635
|
if (options !== void 0 && length > options.maxByteLength) throw new RangeError("Transfer length exceeds ArrayBuffer capacity.");
|
|
25636
25636
|
budget.allocateArrayLength(options?.maxByteLength ?? length);
|
|
25637
25637
|
checkData(receiver, 0, true);
|
|
@@ -42736,4 +42736,4 @@ export {
|
|
|
42736
42736
|
FileSnapshotBackend,
|
|
42737
42737
|
run
|
|
42738
42738
|
};
|
|
42739
|
-
//# sourceMappingURL=chunk-
|
|
42739
|
+
//# sourceMappingURL=chunk-LZ2NZ2PE.js.map
|