@poe-platform/safe-js 0.1.357 → 0.1.359

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-FKOORMNH.js";
30
+ } from "./chunk-Q4GWH6GV.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-GSUPVJU4.js.map
8252
+ //# sourceMappingURL=chunk-HPP5CU3X.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);
@@ -27880,11 +27881,15 @@ function measureSandboxData(values, options = {}) {
27880
27881
  return;
27881
27882
  }
27882
27883
  if (isSandboxArguments(value)) {
27883
- const entries = getSandboxArgumentEntries(value);
27884
- usage += entries.length;
27885
- for (const [key, entry] of entries) {
27886
- usage += key.length;
27887
- visit(entry, depth + 1);
27884
+ const entries = [];
27885
+ for (const key of Object.getOwnPropertyNames(value)) {
27886
+ const descriptor = Object.getOwnPropertyDescriptor(value, key);
27887
+ const retained = "value" in descriptor ? [descriptor.value] : retainedAccessorClosures(descriptor);
27888
+ if (retained.length > 0) entries.push([key, retained]);
27889
+ }
27890
+ for (const [key, retained] of entries) {
27891
+ usage += 1 + key.length;
27892
+ for (const entry of retained) visit(entry, depth + 1);
27888
27893
  }
27889
27894
  return;
27890
27895
  }
@@ -42794,4 +42799,4 @@ export {
42794
42799
  FileSnapshotBackend,
42795
42800
  run
42796
42801
  };
42797
- //# sourceMappingURL=chunk-FKOORMNH.js.map
42802
+ //# sourceMappingURL=chunk-Q4GWH6GV.js.map