clarity-pattern-parser 9.1.0 → 9.2.0

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/dist/index.js CHANGED
@@ -1484,6 +1484,12 @@ class Repeat {
1484
1484
  get children() {
1485
1485
  return this._children;
1486
1486
  }
1487
+ get min() {
1488
+ return this.children[0].min;
1489
+ }
1490
+ get max() {
1491
+ return this.children[0].max || Infinity;
1492
+ }
1487
1493
  constructor(name, pattern, options = {}) {
1488
1494
  this._id = `repeat-${idIndex$3++}`;
1489
1495
  this._pattern = pattern;