mol_dump_lib 0.0.293 → 0.0.295

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
  }
@@ -6316,6 +6316,8 @@ var $;
6316
6316
  }
6317
6317
  simple() {
6318
6318
  const value = this.value();
6319
+ if (typeof value === 'number')
6320
+ return value.toLocaleString('en').replaceAll(',', '_');
6319
6321
  return value ? String(value) : JSON.stringify(value) ?? 'undefined';
6320
6322
  }
6321
6323
  expand_title() {
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
  }
@@ -6307,6 +6307,8 @@ var $;
6307
6307
  }
6308
6308
  simple() {
6309
6309
  const value = this.value();
6310
+ if (typeof value === 'number')
6311
+ return value.toLocaleString('en').replaceAll(',', '_');
6310
6312
  return value ? String(value) : JSON.stringify(value) ?? 'undefined';
6311
6313
  }
6312
6314
  expand_title() {