clarity-pattern-parser 10.1.9 → 10.1.11

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.9",
3
+ "version": "10.1.11",
4
4
  "description": "Parsing Library for Typescript and Javascript.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.esm.js",
@@ -114,7 +114,7 @@ export class Options implements Pattern {
114
114
  let children = this._children;
115
115
 
116
116
  if (depthCache.getDepth(this._id, this._firstIndex) > 1) {
117
- children = this._children.reverse();
117
+ children = this._children.slice().reverse();
118
118
  } else if (depthCache.getDepth(this._id, this._firstIndex) > 2) {
119
119
  cursor.recordErrorAt(this._firstIndex, this._firstIndex, this);
120
120
  return null;