@poe-platform/safe-js 0.1.209 → 0.1.210

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.
@@ -27,7 +27,7 @@ import {
27
27
  validateMigrationSemantics,
28
28
  validateSnapshotData,
29
29
  validateSnapshotMigration
30
- } from "./chunk-NP6FU3M7.js";
30
+ } from "./chunk-UZYQWFMY.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-26O7OBXJ.js.map
8252
+ //# sourceMappingURL=chunk-DHGWYRCM.js.map
@@ -34960,10 +34960,10 @@ async function stringifyJson(value, replacer, indent, budget, context) {
34960
34960
  seen.add(key);
34961
34961
  }
34962
34962
  }
34963
- if (indent !== void 0 && typeof indent !== "number" && typeof indent !== "string") {
34964
- throw new TypeError(
34965
- "JSON.stringify(value, replacer, indent) requires indent to be a string, number, or undefined."
34966
- );
34963
+ if (isSandboxBox(indent)) {
34964
+ const primitive = boxedValue(indent);
34965
+ if (typeof primitive === "number") indent = await sandboxNumber(indent, budget, context);
34966
+ else if (typeof primitive === "string") indent = await sandboxString(indent, budget, context);
34967
34967
  }
34968
34968
  const holder = {};
34969
34969
  defineDataProperty2(holder, "", value);
@@ -37929,4 +37929,4 @@ export {
37929
37929
  FileSnapshotBackend,
37930
37930
  run
37931
37931
  };
37932
- //# sourceMappingURL=chunk-NP6FU3M7.js.map
37932
+ //# sourceMappingURL=chunk-UZYQWFMY.js.map