clarity-pattern-parser 10.1.3 → 10.1.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clarity-pattern-parser",
3
- "version": "10.1.3",
3
+ "version": "10.1.4",
4
4
  "description": "Parsing Library for Typescript and Javascript.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.esm.js",
@@ -75,7 +75,7 @@ export class Context implements Pattern {
75
75
  }
76
76
 
77
77
  clone(name = this._name): Pattern {
78
- const clone = new Context(name, this._pattern, this._children.slice(0, -1));
78
+ const clone = new Context(name, this._pattern, Object.values(this._patterns));
79
79
  return clone;
80
80
  }
81
81