@poe-platform/safe-js 0.1.356 → 0.1.358

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-GMJXANAZ.js";
30
+ } from "./chunk-SFVXIJWY.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-KH3MEEMO.js.map
8252
+ //# sourceMappingURL=chunk-MAUUDZQS.js.map
@@ -8211,6 +8211,7 @@ function releaseObjectPrototype(budget) {
8211
8211
  }
8212
8212
  function getSandboxPrototype(value, budget) {
8213
8213
  if (prototypes.has(value)) return prototypes.get(value) ?? null;
8214
+ if (budget === void 0) return null;
8214
8215
  if (isSandboxArrayBuffer(value)) return budget === void 0 ? null : arrayBufferPrototypes.get(budget) ?? null;
8215
8216
  if (isNumericTypedArray(value)) return budget === void 0 ? null : typedArrayPrototypes.get(budget)?.get(typedArrayStorage(value).Native) ?? null;
8216
8217
  const errorType = sandboxErrorTypes.get(value);
@@ -27909,7 +27910,7 @@ function reconcileCompiledValues(budget, values, compilation, parent, escaping =
27909
27910
  const included = /* @__PURE__ */ new Set();
27910
27911
  const usage = measureSandboxData([...values, ...budget.retainedValues()], { compileTickets: included });
27911
27912
  const kept = /* @__PURE__ */ new Set();
27912
- if (parent !== void 0) measureSandboxData(escaping, { compileTickets: kept });
27913
+ if (parent !== void 0 && included.size > 0) measureSandboxData(escaping, { compileTickets: kept });
27913
27914
  const transferred = /* @__PURE__ */ new Set();
27914
27915
  for (const ticket of included) {
27915
27916
  if (!kept.has(ticket)) {
@@ -42794,4 +42795,4 @@ export {
42794
42795
  FileSnapshotBackend,
42795
42796
  run
42796
42797
  };
42797
- //# sourceMappingURL=chunk-GMJXANAZ.js.map
42798
+ //# sourceMappingURL=chunk-SFVXIJWY.js.map