@poe-platform/safe-js 0.1.96 → 0.1.98
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-7WYL7YGQ.js → chunk-INBDLJSN.js} +2 -2
- package/dist/safe-js/chunks/{chunk-4TLNAG7I.js → chunk-XC53RECY.js} +5 -2
- package/dist/safe-js/chunks/{chunk-4TLNAG7I.js.map → chunk-XC53RECY.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-7WYL7YGQ.js.map → chunk-INBDLJSN.js.map} +0 -0
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
validateMigrationSemantics,
|
|
28
28
|
validateSnapshotData,
|
|
29
29
|
validateSnapshotMigration
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-XC53RECY.js";
|
|
31
31
|
|
|
32
32
|
// packages/safe-js/src/migrate.ts
|
|
33
33
|
import { createHash } from "node:crypto";
|
|
@@ -8245,4 +8245,4 @@ export {
|
|
|
8245
8245
|
parseMcpConfig,
|
|
8246
8246
|
makeMcpModule
|
|
8247
8247
|
};
|
|
8248
|
-
//# sourceMappingURL=chunk-
|
|
8248
|
+
//# sourceMappingURL=chunk-INBDLJSN.js.map
|
|
@@ -24389,13 +24389,16 @@ function getFunctionMember(target, property, options) {
|
|
|
24389
24389
|
return createSandboxClosure({
|
|
24390
24390
|
sandbox: true,
|
|
24391
24391
|
name: `Function#${property}`,
|
|
24392
|
-
call: (args, context) => callFunctionMethod(
|
|
24392
|
+
call: (args, context) => callFunctionMethod(context?.thisValue, property, args, options, context?.stack ?? [])
|
|
24393
24393
|
});
|
|
24394
24394
|
}
|
|
24395
24395
|
function isFunctionMethodName(property) {
|
|
24396
24396
|
return typeof property === "string" && functionMethodNames.has(property);
|
|
24397
24397
|
}
|
|
24398
24398
|
function callFunctionMethod(target, methodName, args, options, stack) {
|
|
24399
|
+
if (!isSandboxClosure(target)) {
|
|
24400
|
+
throw new TypeError(`Function#${methodName} requires a callable receiver.`);
|
|
24401
|
+
}
|
|
24399
24402
|
const thisValue = args[0];
|
|
24400
24403
|
if (methodName === "bind") {
|
|
24401
24404
|
const boundArgs = args.slice(1);
|
|
@@ -32941,4 +32944,4 @@ export {
|
|
|
32941
32944
|
FileSnapshotBackend,
|
|
32942
32945
|
run
|
|
32943
32946
|
};
|
|
32944
|
-
//# sourceMappingURL=chunk-
|
|
32947
|
+
//# sourceMappingURL=chunk-XC53RECY.js.map
|