@poe-platform/safe-js 0.1.105 → 0.1.106

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.
@@ -30819,12 +30819,11 @@ async function arrayFromSandboxValues(args, budget, context) {
30819
30819
  if (Array.isArray(result)) budget.allocateArrayLength(index + 1);
30820
30820
  if (mapFn !== void 0) currentValue = await invokeBuiltinClosure(mapFn, [currentValue, index], budget, context, thisValue);
30821
30821
  const key = String(index);
30822
- const growth = key.length + 1 + (Array.isArray(result) ? Math.max(0, index + 1 - result.length) : 0) + (typeof currentValue === "string" ? currentValue.length : 0);
30823
- const graphChanged = typeof currentValue === "object" && currentValue !== null || isSandboxClosure(result);
30822
+ const growth = key.length + 1 + (Array.isArray(result) ? Math.max(0, index + 1 - result.length) : 0) + (budget.limits.dataSize === void 0 ? 0 : measureSandboxData([currentValue]));
30824
30823
  budget.visitNode();
30825
30824
  defineOwnDataProperty(objectProperties(result, true), key, currentValue);
30826
30825
  currentValue = void 0;
30827
- checkData(result, growth, graphChanged);
30826
+ checkData(result, growth, isSandboxClosure(result));
30828
30827
  } catch (error) {
30829
30828
  await closeOnThrow(error);
30830
30829
  }
@@ -33024,4 +33023,4 @@ export {
33024
33023
  FileSnapshotBackend,
33025
33024
  run
33026
33025
  };
33027
- //# sourceMappingURL=chunk-G5X7KIU3.js.map
33026
+ //# sourceMappingURL=chunk-FV3SMFMZ.js.map