clarity-pattern-parser 10.2.2 → 10.2.3

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.
@@ -2818,7 +2818,7 @@
2818
2818
  return pattern.type === "sequence" &&
2819
2819
  pattern.children[0].type === "reference" &&
2820
2820
  pattern.children[0].name === this.name &&
2821
- pattern.children.length > 2;
2821
+ pattern.children.length > 1;
2822
2822
  }
2823
2823
  _extractRecursiveTail(pattern) {
2824
2824
  if (pattern.type === "right-associated") {
package/dist/index.esm.js CHANGED
@@ -2812,7 +2812,7 @@ class ExpressionPattern {
2812
2812
  return pattern.type === "sequence" &&
2813
2813
  pattern.children[0].type === "reference" &&
2814
2814
  pattern.children[0].name === this.name &&
2815
- pattern.children.length > 2;
2815
+ pattern.children.length > 1;
2816
2816
  }
2817
2817
  _extractRecursiveTail(pattern) {
2818
2818
  if (pattern.type === "right-associated") {
package/dist/index.js CHANGED
@@ -2816,7 +2816,7 @@ class ExpressionPattern {
2816
2816
  return pattern.type === "sequence" &&
2817
2817
  pattern.children[0].type === "reference" &&
2818
2818
  pattern.children[0].name === this.name &&
2819
- pattern.children.length > 2;
2819
+ pattern.children.length > 1;
2820
2820
  }
2821
2821
  _extractRecursiveTail(pattern) {
2822
2822
  if (pattern.type === "right-associated") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clarity-pattern-parser",
3
- "version": "10.2.2",
3
+ "version": "10.2.3",
4
4
  "description": "Parsing Library for Typescript and Javascript.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.esm.js",
@@ -178,7 +178,7 @@ export class ExpressionPattern implements Pattern {
178
178
  return pattern.type === "sequence" &&
179
179
  pattern.children[0].type === "reference" &&
180
180
  pattern.children[0].name === this.name &&
181
- pattern.children.length > 2;
181
+ pattern.children.length > 1;
182
182
  }
183
183
 
184
184
  private _extractRecursiveTail(pattern: Pattern) {