@fileverse-dev/formulajs 4.4.49 → 4.4.50

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.
@@ -1,4 +1,4 @@
1
- /* @fileverse-dev/formulajs v4.4.49 */
1
+ /* @fileverse-dev/formulajs v4.4.50 */
2
2
  var _excluded = [ "confirmations", "dataDecoded" ];
3
3
 
4
4
  function _objectWithoutProperties(e, t) {
@@ -4892,7 +4892,7 @@ function _typeof(o) {
4892
4892
  return new Error("lookup_range_and_result_range");
4893
4893
  }
4894
4894
  });
4895
- missing_value = missing_value !== undefined ? missing_value : new Error("not_found");
4895
+ missing_value = missing_value !== undefined ? missing_value : new Error("Did not find value ".concat(search_key, " in XLOOKUP evaluation."));
4896
4896
  match_mode = match_mode !== undefined ? match_mode : 0;
4897
4897
  search_mode = search_mode !== undefined ? search_mode : 1;
4898
4898
  isCol = isCol !== undefined ? isCol : false;
@@ -4906,10 +4906,12 @@ function _typeof(o) {
4906
4906
  return new Error("binary_search_and_wildcard");
4907
4907
  }
4908
4908
  var res = performLookup(search_key, lookup_array, result_array, missing_value, match_mode, search_mode, isCol);
4909
- res = isCol ? Array.isArray(res) ? res.map(function(item) {
4909
+ if (res instanceof Error) {
4910
+ return res;
4911
+ }
4912
+ return isCol ? Array.isArray(res) ? res.map(function(item) {
4910
4913
  return [ item.toString() ];
4911
4914
  }) : res : [ res ];
4912
- return res;
4913
4915
  }
4914
4916
  function normalizeLookupRange(lookup_range) {
4915
4917
  if (!Array.isArray(lookup_range)) {