mol_dump_lib 0.0.293 → 0.0.294

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.
package/node.mjs CHANGED
@@ -4320,11 +4320,11 @@ var $;
4320
4320
  }
4321
4321
  let top2 = top;
4322
4322
  let bottom2 = bottom;
4323
- if (anchoring && (top < limit_top) && (bottom < limit_bottom)) {
4323
+ if (anchoring && (top < limit_top) && (bottom < limit_bottom) && (max < kids.length)) {
4324
4324
  min2 = max;
4325
4325
  top2 = bottom;
4326
4326
  }
4327
- if ((bottom > limit_bottom) && (top > limit_top)) {
4327
+ if ((bottom > limit_bottom) && (top > limit_top) && (min > 0)) {
4328
4328
  max2 = min;
4329
4329
  bottom2 = top;
4330
4330
  }
package/node.test.js CHANGED
@@ -4311,11 +4311,11 @@ var $;
4311
4311
  }
4312
4312
  let top2 = top;
4313
4313
  let bottom2 = bottom;
4314
- if (anchoring && (top < limit_top) && (bottom < limit_bottom)) {
4314
+ if (anchoring && (top < limit_top) && (bottom < limit_bottom) && (max < kids.length)) {
4315
4315
  min2 = max;
4316
4316
  top2 = bottom;
4317
4317
  }
4318
- if ((bottom > limit_bottom) && (top > limit_top)) {
4318
+ if ((bottom > limit_bottom) && (top > limit_top) && (min > 0)) {
4319
4319
  max2 = min;
4320
4320
  bottom2 = top;
4321
4321
  }