@rowsncolumns/fast-formula-parser 6.2.33 → 6.2.35

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/index.d.ts CHANGED
@@ -30,6 +30,7 @@ declare module "@rowsncolumns/fast-formula-parser" {
30
30
  function tolerantLex(text: string): LexResult;
31
31
  const tokenVocabulary: Record<string, import("chevrotain").TokenType>;
32
32
  const allTokens: import("chevrotain").TokenType[];
33
+ const UnknownChar: import("chevrotain").TokenType;
33
34
  export type LexResult = {
34
35
  tokens: Token[];
35
36
  errors: TokenError[];
@@ -48,11 +49,13 @@ declare module "@rowsncolumns/fast-formula-parser" {
48
49
  tokenTypeIdx: number;
49
50
  };
50
51
  export type TokenError = {
52
+ offset?: number;
51
53
  line: number;
52
54
  column: number;
55
+ length?: number;
53
56
  message: string;
54
57
  };
55
- export { lex, tolerantLex, tokenVocabulary, allTokens };
58
+ export { lex, tolerantLex, tokenVocabulary, allTokens, UnknownChar };
56
59
 
57
60
  export interface FormulaParserConfig {
58
61
  functionsNeedContext?: Record<string, Function>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rowsncolumns/fast-formula-parser",
3
- "version": "6.2.33",
3
+ "version": "6.2.35",
4
4
  "description": "fast excel formula parser",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -44,7 +44,7 @@
44
44
  "author": "Lester(Dishu) Lyu",
45
45
  "license": "MIT",
46
46
  "dependencies": {
47
- "@rowsncolumns/utils": ">=9.2.37",
47
+ "@rowsncolumns/utils": ">=9.2.39",
48
48
  "bahttext": "^2.3.0",
49
49
  "bessel": "^1.0.2",
50
50
  "chevrotain": "^10.5.0",