clarity-pattern-parser 11.3.1 → 11.3.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.
@@ -912,7 +912,7 @@
912
912
  for (let pattern of this._recursiveAncestors) {
913
913
  if (pattern.startedOnIndex === this.startedOnIndex) {
914
914
  depth++;
915
- if (depth > 1) {
915
+ if (depth > 0) {
916
916
  return true;
917
917
  }
918
918
  }
package/dist/index.d.ts CHANGED
@@ -26,4 +26,5 @@ import { RightAssociated } from "./patterns/RightAssociated";
26
26
  import { Selector } from "./query/selector";
27
27
  import { Query } from "./query/query";
28
28
  import { generateErrorMessage } from "./patterns/generate_error_message";
29
- export { Node, Grammar, AutoComplete, AutoCompleteOptions, Suggestion, SuggestionOption, Sequence, Cursor, CursorHistory, Match, Context, Expression, Literal, Not, Options, Optional, ParseError, ParseResult, Pattern, Reference, RightAssociated, Regex, Repeat, Query, Selector, grammar, patterns, compact, remove, generateErrorMessage };
29
+ import { HistoryRecord } from "./patterns/HistoryRecord";
30
+ export { Node, Grammar, AutoComplete, AutoCompleteOptions, Suggestion, SuggestionOption, Sequence, Cursor, CursorHistory, Match, Context, Expression, Literal, Not, Options, Optional, ParseError, ParseResult, Pattern, Reference, RightAssociated, Regex, Repeat, Query, Selector, grammar, patterns, compact, remove, generateErrorMessage, HistoryRecord };
package/dist/index.esm.js CHANGED
@@ -906,7 +906,7 @@ class Reference {
906
906
  for (let pattern of this._recursiveAncestors) {
907
907
  if (pattern.startedOnIndex === this.startedOnIndex) {
908
908
  depth++;
909
- if (depth > 1) {
909
+ if (depth > 0) {
910
910
  return true;
911
911
  }
912
912
  }
package/dist/index.js CHANGED
@@ -910,7 +910,7 @@ class Reference {
910
910
  for (let pattern of this._recursiveAncestors) {
911
911
  if (pattern.startedOnIndex === this.startedOnIndex) {
912
912
  depth++;
913
- if (depth > 1) {
913
+ if (depth > 0) {
914
914
  return true;
915
915
  }
916
916
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clarity-pattern-parser",
3
- "version": "11.3.1",
3
+ "version": "11.3.3",
4
4
  "description": "Parsing Library for Typescript and Javascript.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.esm.js",
package/src/index.ts CHANGED
@@ -26,6 +26,7 @@ import { RightAssociated } from "./patterns/RightAssociated";
26
26
  import { Selector } from "./query/selector";
27
27
  import { Query } from "./query/query";
28
28
  import { generateErrorMessage } from "./patterns/generate_error_message";
29
+ import { HistoryRecord } from "./patterns/HistoryRecord";
29
30
 
30
31
  export {
31
32
  Node,
@@ -57,5 +58,6 @@ export {
57
58
  patterns,
58
59
  compact,
59
60
  remove,
60
- generateErrorMessage
61
+ generateErrorMessage,
62
+ HistoryRecord
61
63
  };
@@ -108,7 +108,7 @@ export class Reference implements Pattern {
108
108
  if (pattern.startedOnIndex === this.startedOnIndex) {
109
109
  depth++;
110
110
 
111
- if (depth > 1) {
111
+ if (depth > 0) {
112
112
  return true;
113
113
  }
114
114
  }