@poe-platform/safe-js 0.1.736 → 0.1.738

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.
Files changed (42) hide show
  1. package/dist/safe-js/chunks/{chunk-UVJ27MVC.js → chunk-35JWEKXL.js} +2 -2
  2. package/dist/safe-js/chunks/{chunk-356QH3RB.js → chunk-4TXOBR4J.js} +2 -2
  3. package/dist/safe-js/chunks/{chunk-7AHNAUR5.js → chunk-7DLY2WYQ.js} +2 -2
  4. package/dist/safe-js/chunks/{chunk-SBFOCNNW.js → chunk-ELJ4PYL2.js} +5 -4
  5. package/dist/safe-js/chunks/{chunk-SBFOCNNW.js.map → chunk-ELJ4PYL2.js.map} +2 -2
  6. package/dist/safe-js/chunks/{chunk-FUUG7UIZ.js → chunk-FKV4UG26.js} +3 -3
  7. package/dist/safe-js/chunks/{chunk-WDEOWDLS.js → chunk-FOPBX4EE.js} +17 -3
  8. package/dist/safe-js/chunks/chunk-FOPBX4EE.js.map +7 -0
  9. package/dist/safe-js/chunks/{chunk-33AKDRQ4.js → chunk-HR4F3RRX.js} +2 -2
  10. package/dist/safe-js/chunks/{chunk-LELXBLG2.js → chunk-JRUMDV3W.js} +5 -5
  11. package/dist/safe-js/chunks/{chunk-IKRAX7Z5.js → chunk-OEFI64BI.js} +2 -2
  12. package/dist/safe-js/chunks/{chunk-ZNAW4ZDX.js → chunk-QUDIENBB.js} +2 -2
  13. package/dist/safe-js/chunks/{cli-runtime-FMSBDP7G.js → cli-runtime-GZL4KBFM.js} +8 -8
  14. package/dist/safe-js/chunks/{dump-2IM3WE2J.js → dump-5HPQH2TV.js} +3 -3
  15. package/dist/safe-js/chunks/{harness-ZLV6ZBEU.js → harness-3Z4ABNRY.js} +3 -3
  16. package/dist/safe-js/chunks/{mcp-42AFDWT3.js → mcp-PADFJXDB.js} +3 -3
  17. package/dist/safe-js/chunks/{migration-file-AYLLA72K.js → migration-file-WIJFLWAW.js} +4 -4
  18. package/dist/safe-js/chunks/{restore-SGQO4E4M.js → restore-275PJW3U.js} +4 -4
  19. package/dist/safe-js/chunks/{run-Q5Z4TRQO.js → run-N3TS7H43.js} +6 -6
  20. package/dist/safe-js/chunks/{runtime-modules-3P6FZJ55.js → runtime-modules-75NU2HLD.js} +3 -3
  21. package/dist/safe-js/cli.js +2 -2
  22. package/dist/safe-js/core.js +5 -5
  23. package/dist/safe-js/index.js +10 -10
  24. package/dist/safe-js/modules/fs.js +2 -2
  25. package/package.json +2 -2
  26. package/dist/safe-js/chunks/chunk-WDEOWDLS.js.map +0 -7
  27. /package/dist/safe-js/chunks/{chunk-UVJ27MVC.js.map → chunk-35JWEKXL.js.map} +0 -0
  28. /package/dist/safe-js/chunks/{chunk-356QH3RB.js.map → chunk-4TXOBR4J.js.map} +0 -0
  29. /package/dist/safe-js/chunks/{chunk-7AHNAUR5.js.map → chunk-7DLY2WYQ.js.map} +0 -0
  30. /package/dist/safe-js/chunks/{chunk-FUUG7UIZ.js.map → chunk-FKV4UG26.js.map} +0 -0
  31. /package/dist/safe-js/chunks/{chunk-33AKDRQ4.js.map → chunk-HR4F3RRX.js.map} +0 -0
  32. /package/dist/safe-js/chunks/{chunk-LELXBLG2.js.map → chunk-JRUMDV3W.js.map} +0 -0
  33. /package/dist/safe-js/chunks/{chunk-IKRAX7Z5.js.map → chunk-OEFI64BI.js.map} +0 -0
  34. /package/dist/safe-js/chunks/{chunk-ZNAW4ZDX.js.map → chunk-QUDIENBB.js.map} +0 -0
  35. /package/dist/safe-js/chunks/{cli-runtime-FMSBDP7G.js.map → cli-runtime-GZL4KBFM.js.map} +0 -0
  36. /package/dist/safe-js/chunks/{dump-2IM3WE2J.js.map → dump-5HPQH2TV.js.map} +0 -0
  37. /package/dist/safe-js/chunks/{harness-ZLV6ZBEU.js.map → harness-3Z4ABNRY.js.map} +0 -0
  38. /package/dist/safe-js/chunks/{mcp-42AFDWT3.js.map → mcp-PADFJXDB.js.map} +0 -0
  39. /package/dist/safe-js/chunks/{migration-file-AYLLA72K.js.map → migration-file-WIJFLWAW.js.map} +0 -0
  40. /package/dist/safe-js/chunks/{restore-SGQO4E4M.js.map → restore-275PJW3U.js.map} +0 -0
  41. /package/dist/safe-js/chunks/{run-Q5Z4TRQO.js.map → run-N3TS7H43.js.map} +0 -0
  42. /package/dist/safe-js/chunks/{runtime-modules-3P6FZJ55.js.map → runtime-modules-75NU2HLD.js.map} +0 -0
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  declareHostOperation,
8
8
  runResources
9
- } from "./chunk-SBFOCNNW.js";
9
+ } from "./chunk-ELJ4PYL2.js";
10
10
  import {
11
11
  hostErrorData
12
12
  } from "./chunk-VQGYRKM4.js";
@@ -402,4 +402,4 @@ function isPlainObjectRecord(value) {
402
402
  export {
403
403
  makeMcpModule
404
404
  };
405
- //# sourceMappingURL=chunk-UVJ27MVC.js.map
405
+ //# sourceMappingURL=chunk-35JWEKXL.js.map
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  declareBudgetedHostOperation,
9
9
  declareHostOperation
10
- } from "./chunk-SBFOCNNW.js";
10
+ } from "./chunk-ELJ4PYL2.js";
11
11
  import {
12
12
  basename,
13
13
  dirname,
@@ -746,4 +746,4 @@ export {
746
746
  FS_OPTION_SURFACE,
747
747
  makeFsModule
748
748
  };
749
- //# sourceMappingURL=chunk-356QH3RB.js.map
749
+ //# sourceMappingURL=chunk-4TXOBR4J.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isSandboxClosure
3
- } from "./chunk-SBFOCNNW.js";
3
+ } from "./chunk-ELJ4PYL2.js";
4
4
 
5
5
  // packages/safe-js/src/lint/runtime-modules.ts
6
6
  var AsyncFunction = (async () => void 0).constructor;
@@ -34,4 +34,4 @@ function isAsyncRuntimeExport(value) {
34
34
  export {
35
35
  createLintModulesFromRuntimeRegistry
36
36
  };
37
- //# sourceMappingURL=chunk-7AHNAUR5.js.map
37
+ //# sourceMappingURL=chunk-7DLY2WYQ.js.map
@@ -42677,7 +42677,7 @@ function validateGuestHeapNode(raw, heap, maxArrayLength = Infinity) {
42677
42677
  }
42678
42678
  return true;
42679
42679
  }
42680
- function validateGuestHeapGraphs(heap) {
42680
+ function validateGuestHeapGraphs(heap, functionConstructibility = /* @__PURE__ */ new Map()) {
42681
42681
  for (const [kind, edge, message] of [
42682
42682
  ["scope-frame", "parent", "Cyclic guest scope parent graph."],
42683
42683
  ["promise-reaction", "source", "Cyclic promise reaction source graph."]
@@ -42706,10 +42706,10 @@ function validateGuestHeapGraphs(heap) {
42706
42706
  let current = id;
42707
42707
  let flags = finished.get(current);
42708
42708
  while (flags === void 0) {
42709
- if (path.has(current)) throw new TypeError(root.kind === "guest-proxy" ? "Cyclic Proxy target chain." : "Cyclic bound function target.");
42709
+ if (path.has(current)) throw new TypeError(record3(heap[current]).kind === "guest-proxy" ? "Cyclic Proxy target chain." : "Cyclic bound function target.");
42710
42710
  const node = record3(heap[current]);
42711
42711
  if (node.kind !== "guest-proxy" && node.kind !== "bound-function" || node.target === null) {
42712
- flags = targetFlags(node);
42712
+ flags = node.kind === "guest-function" && functionConstructibility.has(current) ? { callable: true, constructible: functionConstructibility.get(current) } : targetFlags(node);
42713
42713
  if (flags === void 0) throw new TypeError("Invalid function target.");
42714
42714
  break;
42715
42715
  }
@@ -49291,6 +49291,7 @@ export {
49291
49291
  serializeSafeJSSnapshot,
49292
49292
  createSeededRandom,
49293
49293
  createBuiltinBindings,
49294
+ validateGuestHeapGraphs,
49294
49295
  validateGuestFunctionAst,
49295
49296
  validateTemplateObjects,
49296
49297
  SnapshotValidationError,
@@ -49366,4 +49367,4 @@ authorization of the copyright holder.
49366
49367
  SPDX-License-Identifier: Unicode-3.0
49367
49368
 
49368
49369
  */
49369
- //# sourceMappingURL=chunk-SBFOCNNW.js.map
49370
+ //# sourceMappingURL=chunk-ELJ4PYL2.js.map