@poe-platform/safe-js 0.1.249 → 0.1.250
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-2I5DAEWD.js → chunk-GFCWDIHP.js} +2 -2
- package/dist/safe-js/chunks/{chunk-IKHGVNT5.js → chunk-WHDYVYXQ.js} +12 -2
- package/dist/safe-js/chunks/chunk-WHDYVYXQ.js.map +7 -0
- 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-IKHGVNT5.js.map +0 -7
- /package/dist/safe-js/chunks/{chunk-2I5DAEWD.js.map → chunk-GFCWDIHP.js.map} +0 -0
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
validateMigrationSemantics,
|
|
28
28
|
validateSnapshotData,
|
|
29
29
|
validateSnapshotMigration
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-WHDYVYXQ.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-GFCWDIHP.js.map
|
|
@@ -7863,6 +7863,10 @@ function registerIntrinsicFunction(budget, closure) {
|
|
|
7863
7863
|
registerBuiltinIdentities(budget, { [closure.name]: closure });
|
|
7864
7864
|
trackIntrinsicState(budget, closure, closure, [closure]);
|
|
7865
7865
|
}
|
|
7866
|
+
function registerIntrinsicObject(budget, value) {
|
|
7867
|
+
const methods = Object.values(Object.getOwnPropertyDescriptors(value)).map((descriptor) => descriptor.value).filter(isGuestClosure);
|
|
7868
|
+
trackIntrinsicState(budget, value, value, [value, ...methods]);
|
|
7869
|
+
}
|
|
7866
7870
|
function trackIntrinsicState(budget, root, owner, targets) {
|
|
7867
7871
|
let roots = intrinsicPrototypeRoots.get(budget);
|
|
7868
7872
|
if (roots === void 0) intrinsicPrototypeRoots.set(budget, roots = /* @__PURE__ */ new Set());
|
|
@@ -21839,8 +21843,14 @@ function createConsoleJsonGlobals(options) {
|
|
|
21839
21843
|
}
|
|
21840
21844
|
)
|
|
21841
21845
|
};
|
|
21846
|
+
const jsonMethods = Object.entries(globals.JSON);
|
|
21847
|
+
for (const [name] of jsonMethods) {
|
|
21848
|
+
Object.defineProperty(globals.JSON, name, { enumerable: false });
|
|
21849
|
+
}
|
|
21850
|
+
Object.defineProperty(globals.JSON, Symbol.toStringTag, { value: "JSON", configurable: true });
|
|
21842
21851
|
registerBuiltinIdentities(options.budget, { JSON: globals.JSON });
|
|
21843
|
-
for (const method of
|
|
21852
|
+
for (const [, method] of jsonMethods) registerIntrinsicFunction(options.budget, method);
|
|
21853
|
+
registerIntrinsicObject(options.budget, globals.JSON);
|
|
21844
21854
|
return globals;
|
|
21845
21855
|
}
|
|
21846
21856
|
async function stringifyJson(value, replacer, indent, budget, context) {
|
|
@@ -39565,4 +39575,4 @@ export {
|
|
|
39565
39575
|
FileSnapshotBackend,
|
|
39566
39576
|
run
|
|
39567
39577
|
};
|
|
39568
|
-
//# sourceMappingURL=chunk-
|
|
39578
|
+
//# sourceMappingURL=chunk-WHDYVYXQ.js.map
|