@poe-platform/safe-js 0.1.358 → 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-SFVXIJWY.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-MAUUDZQS.js.map
8252
+ //# sourceMappingURL=chunk-HPP5CU3X.js.map
@@ -27881,11 +27881,15 @@ function measureSandboxData(values, options = {}) {
27881
27881
  return;
27882
27882
  }
27883
27883
  if (isSandboxArguments(value)) {
27884
- const entries = getSandboxArgumentEntries(value);
27885
- usage += entries.length;
27886
- for (const [key, entry] of entries) {
27887
- usage += key.length;
27888
- 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);
27889
27893
  }
27890
27894
  return;
27891
27895
  }
@@ -42795,4 +42799,4 @@ export {
42795
42799
  FileSnapshotBackend,
42796
42800
  run
42797
42801
  };
42798
- //# sourceMappingURL=chunk-SFVXIJWY.js.map
42802
+ //# sourceMappingURL=chunk-Q4GWH6GV.js.map