clarity-pattern-parser 11.0.28 → 11.0.30
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.browser.js +2 -1
- package/dist/index.browser.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +3 -1
- package/src/patterns/Context.ts +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -25,4 +25,5 @@ import { Expression } from "./patterns/Expression";
|
|
|
25
25
|
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 };
|
package/dist/index.esm.js
CHANGED
|
@@ -2431,7 +2431,7 @@ class Context {
|
|
|
2431
2431
|
return this._pattern.test(text, record);
|
|
2432
2432
|
}
|
|
2433
2433
|
clone(name = this._name) {
|
|
2434
|
-
const clone = new Context(name, this._pattern, Object.values(this._patterns));
|
|
2434
|
+
const clone = new Context(name, this._pattern.clone(name), Object.values(this._patterns));
|
|
2435
2435
|
clone._id = this._id;
|
|
2436
2436
|
return clone;
|
|
2437
2437
|
}
|
|
@@ -4293,5 +4293,5 @@ class Query {
|
|
|
4293
4293
|
}
|
|
4294
4294
|
}
|
|
4295
4295
|
|
|
4296
|
-
export { AutoComplete, Context, Cursor, CursorHistory, Expression, Grammar, Literal, Node, Not, Optional, Options, ParseError, Query, Reference, Regex, Repeat, RightAssociated, Selector, Sequence, compact, grammar, patterns, remove };
|
|
4296
|
+
export { AutoComplete, Context, Cursor, CursorHistory, Expression, Grammar, Literal, Node, Not, Optional, Options, ParseError, Query, Reference, Regex, Repeat, RightAssociated, Selector, Sequence, compact, generateErrorMessage, grammar, patterns, remove };
|
|
4297
4297
|
//# sourceMappingURL=index.esm.js.map
|