@leankylin-sheet/formula-parser 4.0.40 → 4.0.42
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/error.d.ts +8 -8
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/error.d.ts
CHANGED
|
@@ -9,12 +9,12 @@ export const ERROR_NUM: "NUM";
|
|
|
9
9
|
export const ERROR_REF: "REF";
|
|
10
10
|
export const ERROR_VALUE: "VALUE";
|
|
11
11
|
export const errors_formula_map: {
|
|
12
|
-
ERROR:
|
|
13
|
-
"DIV/0":
|
|
14
|
-
NAME:
|
|
15
|
-
"N/A":
|
|
16
|
-
NULL:
|
|
17
|
-
NUM:
|
|
18
|
-
REF:
|
|
19
|
-
VALUE:
|
|
12
|
+
ERROR: Error;
|
|
13
|
+
"DIV/0": Error;
|
|
14
|
+
NAME: Error;
|
|
15
|
+
"N/A": Error;
|
|
16
|
+
NULL: Error;
|
|
17
|
+
NUM: Error;
|
|
18
|
+
REF: Error;
|
|
19
|
+
VALUE: Error;
|
|
20
20
|
};
|
package/dist/index.esm.js
CHANGED
|
@@ -2237,7 +2237,7 @@ var Parser$1 = /*#__PURE__*/function (_Emitter) {
|
|
|
2237
2237
|
var startCell = {};
|
|
2238
2238
|
var endCell = {};
|
|
2239
2239
|
startCell.sheetName = startSheetName;
|
|
2240
|
-
if (startRow.index <= endRow.index) {
|
|
2240
|
+
if (startRow.index <= endRow.index || endRow.index === -1) {
|
|
2241
2241
|
startCell.row = startRow;
|
|
2242
2242
|
endCell.row = endRow;
|
|
2243
2243
|
} else {
|
package/dist/index.js
CHANGED
|
@@ -2265,7 +2265,7 @@ var Parser$1 = /*#__PURE__*/function (_Emitter) {
|
|
|
2265
2265
|
var startCell = {};
|
|
2266
2266
|
var endCell = {};
|
|
2267
2267
|
startCell.sheetName = startSheetName;
|
|
2268
|
-
if (startRow.index <= endRow.index) {
|
|
2268
|
+
if (startRow.index <= endRow.index || endRow.index === -1) {
|
|
2269
2269
|
startCell.row = startRow;
|
|
2270
2270
|
endCell.row = endRow;
|
|
2271
2271
|
} else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leankylin-sheet/formula-parser",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.42",
|
|
4
4
|
"description": "Formula parser",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"rimraf": "^3.0.2"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@formulajs/formulajs": "^
|
|
39
|
+
"@formulajs/formulajs": "^4.5.6",
|
|
40
40
|
"tiny-emitter": "^2.1.0"
|
|
41
41
|
},
|
|
42
42
|
"jest": {
|