@poe-platform/safe-js 0.1.398 → 0.1.399

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.
@@ -23165,7 +23165,7 @@ function indexHeapContainers(snapshot) {
23165
23165
  if (key === "version" || key === "sourceHash" || key === "heap") {
23166
23166
  continue;
23167
23167
  }
23168
- collectContainerStats(value, stats, ancestors, guestValues);
23168
+ collectContainerStats(value, stats, ancestors, guestValues, inMemoryRunSnapshots.has(snapshot));
23169
23169
  }
23170
23170
  const heapIds = /* @__PURE__ */ new Map();
23171
23171
  let nextId = 1;
@@ -23177,7 +23177,7 @@ function indexHeapContainers(snapshot) {
23177
23177
  }
23178
23178
  return { heapIds, guestValues };
23179
23179
  }
23180
- function collectContainerStats(value, stats, ancestors, guestValues, depth = 0) {
23180
+ function collectContainerStats(value, stats, ancestors, guestValues, trustedRunReplay, depth = 0) {
23181
23181
  if (value === null || typeof value !== "object") {
23182
23182
  return;
23183
23183
  }
@@ -23213,20 +23213,20 @@ function collectContainerStats(value, stats, ancestors, guestValues, depth = 0)
23213
23213
  }) } : isSandboxArrayBuffer(value) ? { kind: "arraybuffer", state: captureArrayBufferState(value, (entry) => {
23214
23214
  guestEntries.push(entry);
23215
23215
  return null;
23216
- }) } : captureGuestHeapNode(value, (entry) => {
23216
+ }) } : trustedRunReplay && isSandboxPromise(value) && unrepresentedPromiseContinuations.has(value) ? void 0 : captureGuestHeapNode(value, (entry) => {
23217
23217
  guestEntries.push(entry);
23218
23218
  return null;
23219
23219
  });
23220
23220
  if (guest !== void 0) {
23221
23221
  if (!isSandboxArrayBuffer(value) && !isSandboxDataView(value) && !isNumericTypedArray(value)) guestValues.add(value);
23222
23222
  for (const entry of guestEntries) {
23223
- collectContainerStats(entry, stats, ancestors, guestValues, depth + 1);
23223
+ collectContainerStats(entry, stats, ancestors, guestValues, trustedRunReplay, depth + 1);
23224
23224
  if (entry !== null && typeof entry === "object") stats.get(entry).forceHeap = true;
23225
23225
  }
23226
23226
  ancestors.delete(value);
23227
23227
  return;
23228
23228
  }
23229
- for (const entry of guestEntries) collectContainerStats(entry, stats, ancestors, guestValues, depth + 1);
23229
+ for (const entry of guestEntries) collectContainerStats(entry, stats, ancestors, guestValues, trustedRunReplay, depth + 1);
23230
23230
  if (!Array.isArray(value) && !isPlainObject(value) && !isNumericTypedArray(value) && !isSandboxDate(value)) {
23231
23231
  ancestors.delete(value);
23232
23232
  return;
@@ -23236,12 +23236,12 @@ function collectContainerStats(value, stats, ancestors, guestValues, depth = 0)
23236
23236
  return "value" in descriptor ? [descriptor.value] : [];
23237
23237
  }) : isSandboxDate(value) ? dateDataProperties(value).flatMap(([key, descriptor]) => typeof key === "string" ? [descriptor.value] : []) : isSandboxBox(value) ? boxedDataProperties(value).map(([, descriptor]) => descriptor.value) : isSandboxArguments(value) ? getSandboxArgumentEntries(value).map(([, entry]) => entry) : getEnumerableDataValues(value);
23238
23238
  for (const entry of entries) {
23239
- collectContainerStats(entry, stats, ancestors, guestValues, depth + 1);
23239
+ collectContainerStats(entry, stats, ancestors, guestValues, trustedRunReplay, depth + 1);
23240
23240
  }
23241
23241
  for (const key of ownSerializableSymbolKeys(value)) {
23242
23242
  const descriptor = Object.getOwnPropertyDescriptor(value, key);
23243
23243
  if ("value" in descriptor)
23244
- collectContainerStats(descriptor.value, stats, ancestors, guestValues, depth + 1);
23244
+ collectContainerStats(descriptor.value, stats, ancestors, guestValues, trustedRunReplay, depth + 1);
23245
23245
  }
23246
23246
  ancestors.delete(value);
23247
23247
  }
@@ -45215,4 +45215,4 @@ export {
45215
45215
  FileSnapshotBackend,
45216
45216
  run
45217
45217
  };
45218
- //# sourceMappingURL=chunk-G2HUKBY7.js.map
45218
+ //# sourceMappingURL=chunk-L4AQGNFP.js.map