amis-formula 6.2.1 → 6.3.0

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/esm/doc.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-formula v6.2.1
2
+ * amis-formula v6.3.0
3
3
  * Copyright 2021-2024 fex
4
4
  */
5
5
 
package/esm/error.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-formula v6.2.1
2
+ * amis-formula v6.3.0
3
3
  * Copyright 2021-2024 fex
4
4
  */
5
5
 
package/esm/evalutor.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-formula v6.2.1
2
+ * amis-formula v6.3.0
3
3
  * Copyright 2021-2024 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-formula v6.2.1
2
+ * amis-formula v6.3.0
3
3
  * Copyright 2021-2024 fex
4
4
  */
5
5
 
package/esm/filter.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-formula v6.2.1
2
+ * amis-formula v6.3.0
3
3
  * Copyright 2021-2024 fex
4
4
  */
5
5
 
package/esm/function.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-formula v6.2.1
2
+ * amis-formula v6.3.0
3
3
  * Copyright 2021-2024 fex
4
4
  */
5
5
 
package/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-formula v6.2.1
2
+ * amis-formula v6.3.0
3
3
  * Copyright 2021-2024 fex
4
4
  */
5
5
 
package/esm/lexer.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-formula v6.2.1
2
+ * amis-formula v6.3.0
3
3
  * Copyright 2021-2024 fex
4
4
  */
5
5
 
package/esm/parser.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-formula v6.2.1
2
+ * amis-formula v6.3.0
3
3
  * Copyright 2021-2024 fex
4
4
  */
5
5
 
@@ -55,7 +55,7 @@ function parse(input, options) {
55
55
  : token.value === operator));
56
56
  }
57
57
  function fatal() {
58
- throw TypeError("Unexpected token ".concat(token.value, " in ").concat(token.start.line, ":").concat(token.start.column));
58
+ throw TypeError("Unexpected token ".concat(token.value || token.type, " in ").concat(token.start.line, ":").concat(token.start.column));
59
59
  }
60
60
  function assert(result) {
61
61
  if (!result) {
package/lib/doc.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-formula v6.2.1
2
+ * amis-formula v6.3.0
3
3
  * Copyright 2021-2024 fex
4
4
  */
5
5
 
package/lib/error.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-formula v6.2.1
2
+ * amis-formula v6.3.0
3
3
  * Copyright 2021-2024 fex
4
4
  */
5
5
 
package/lib/evalutor.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-formula v6.2.1
2
+ * amis-formula v6.3.0
3
3
  * Copyright 2021-2024 fex
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-formula v6.2.1
2
+ * amis-formula v6.3.0
3
3
  * Copyright 2021-2024 fex
4
4
  */
5
5
 
package/lib/filter.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-formula v6.2.1
2
+ * amis-formula v6.3.0
3
3
  * Copyright 2021-2024 fex
4
4
  */
5
5
 
package/lib/function.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-formula v6.2.1
2
+ * amis-formula v6.3.0
3
3
  * Copyright 2021-2024 fex
4
4
  */
5
5
 
package/lib/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-formula v6.2.1
2
+ * amis-formula v6.3.0
3
3
  * Copyright 2021-2024 fex
4
4
  */
5
5
 
package/lib/lexer.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-formula v6.2.1
2
+ * amis-formula v6.3.0
3
3
  * Copyright 2021-2024 fex
4
4
  */
5
5
 
package/lib/parser.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * amis-formula v6.2.1
2
+ * amis-formula v6.3.0
3
3
  * Copyright 2021-2024 fex
4
4
  */
5
5
 
@@ -59,7 +59,7 @@ function parse(input, options) {
59
59
  : token.value === operator));
60
60
  }
61
61
  function fatal() {
62
- throw TypeError("Unexpected token ".concat(token.value, " in ").concat(token.start.line, ":").concat(token.start.column));
62
+ throw TypeError("Unexpected token ".concat(token.value || token.type, " in ").concat(token.start.line, ":").concat(token.start.column));
63
63
  }
64
64
  function assert(result) {
65
65
  if (!result) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amis-formula",
3
- "version": "6.2.1",
3
+ "version": "6.3.0",
4
4
  "description": "负责 amis 里面的表达式实现,内置公式,编辑器等",
5
5
  "main": "lib/index.js",
6
6
  "module": "esm/index.js",