@poe-platform/safe-js 0.1.407 → 0.1.408

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.
@@ -30443,10 +30443,20 @@ function measureSandboxData(values, options = {}) {
30443
30443
  }
30444
30444
  return;
30445
30445
  }
30446
- for (let index = 0; index < value.length; index += 1) {
30447
- const descriptor = Object.getOwnPropertyDescriptor(value, index);
30448
- if (descriptor !== void 0 && "value" in descriptor) visit(descriptor.value, depth + 1);
30446
+ const elements = [];
30447
+ if (nodeTypes.isProxy(value)) {
30448
+ for (let index = 0; index < value.length; index += 1) {
30449
+ const descriptor = Object.getOwnPropertyDescriptor(value, index);
30450
+ if (descriptor !== void 0 && "value" in descriptor) elements.push(descriptor.value);
30451
+ }
30452
+ } else {
30453
+ for (const key of Object.getOwnPropertyNames(value)) {
30454
+ if (!isArrayIndexKey2(key)) continue;
30455
+ const descriptor = Object.getOwnPropertyDescriptor(value, key);
30456
+ if (descriptor !== void 0 && "value" in descriptor) elements.push(descriptor.value);
30457
+ }
30449
30458
  }
30459
+ for (const element of elements) visit(element, depth + 1);
30450
30460
  return;
30451
30461
  }
30452
30462
  if (isSandboxMap(value) || isSandboxSet(value)) {
@@ -45558,4 +45568,4 @@ export {
45558
45568
  FileSnapshotBackend,
45559
45569
  run
45560
45570
  };
45561
- //# sourceMappingURL=chunk-WGMXY4HP.js.map
45571
+ //# sourceMappingURL=chunk-6GFX7QAK.js.map