@fileverse-dev/formulajs 4.4.20-mod-4 → 4.4.20-mod-6
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/lib/browser/formula.js +8 -20
- package/lib/browser/formula.min.js +2 -2
- package/lib/browser/formula.min.js.map +1 -1
- package/lib/cjs/index.cjs +1 -14
- package/lib/esm/index.mjs +1 -14
- package/package.json +1 -1
package/lib/browser/formula.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @fileverse-dev/formulajs v4.4.20-mod-
|
|
1
|
+
/* @fileverse-dev/formulajs v4.4.20-mod-6 */
|
|
2
2
|
var _excluded = [ "confirmations", "dataDecoded" ];
|
|
3
3
|
|
|
4
4
|
function _objectWithoutProperties(e, t) {
|
|
@@ -5020,7 +5020,7 @@ function _typeof(o) {
|
|
|
5020
5020
|
var res = performLookup(search_key, lookup_array, result_array, missing_value, match_mode, search_mode, isCol);
|
|
5021
5021
|
res = isCol ? Array.isArray(res) ? res.map((function(item) {
|
|
5022
5022
|
return [ item.toString() ];
|
|
5023
|
-
})) : res : res;
|
|
5023
|
+
})) : res : [ res ];
|
|
5024
5024
|
return res;
|
|
5025
5025
|
}
|
|
5026
5026
|
function normalizeLookupRange(lookup_range) {
|
|
@@ -5064,7 +5064,6 @@ function _typeof(o) {
|
|
|
5064
5064
|
isCol: isCol
|
|
5065
5065
|
});
|
|
5066
5066
|
var foundIndex = -1;
|
|
5067
|
-
var isSingleResultRow = result_array.length === 1;
|
|
5068
5067
|
switch (match_mode) {
|
|
5069
5068
|
case 0:
|
|
5070
5069
|
foundIndex = findExactMatch(search_key, lookup_array, search_mode);
|
|
@@ -5085,24 +5084,13 @@ function _typeof(o) {
|
|
|
5085
5084
|
if (foundIndex === -1) {
|
|
5086
5085
|
return missing_value;
|
|
5087
5086
|
}
|
|
5088
|
-
if (
|
|
5089
|
-
var
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
}));
|
|
5094
|
-
} else {
|
|
5095
|
-
return resultRow;
|
|
5096
|
-
}
|
|
5087
|
+
if (isCol) {
|
|
5088
|
+
var columnValues = result_array.map((function(row) {
|
|
5089
|
+
return row[foundIndex];
|
|
5090
|
+
}));
|
|
5091
|
+
return columnValues;
|
|
5097
5092
|
} else {
|
|
5098
|
-
|
|
5099
|
-
var columnValues = result_array.map((function(row) {
|
|
5100
|
-
return row[foundIndex];
|
|
5101
|
-
}));
|
|
5102
|
-
return columnValues;
|
|
5103
|
-
} else {
|
|
5104
|
-
return result_array[foundIndex];
|
|
5105
|
-
}
|
|
5093
|
+
return result_array[foundIndex];
|
|
5106
5094
|
}
|
|
5107
5095
|
}
|
|
5108
5096
|
function findExactMatch(search_key, lookup_array, search_mode) {
|