@fileverse-dev/formulajs 4.4.49 → 4.4.51
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 +6 -28
- package/lib/browser/formula.min.js +2 -2
- package/lib/browser/formula.min.js.map +1 -1
- package/lib/cjs/index.cjs +17 -38
- package/lib/esm/index.mjs +18 -33
- package/package.json +1 -1
- package/types/cjs/index.d.cts +4 -7
- package/types/esm/index.d.mts +3 -6
package/lib/browser/formula.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @fileverse-dev/formulajs v4.4.
|
|
1
|
+
/* @fileverse-dev/formulajs v4.4.51 */
|
|
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("
|
|
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
|
-
|
|
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)) {
|
|
@@ -29030,24 +29032,6 @@ function _typeof(o) {
|
|
|
29030
29032
|
}));
|
|
29031
29033
|
return _FLVURL.apply(this, arguments);
|
|
29032
29034
|
}
|
|
29033
|
-
function POLYMARKET() {
|
|
29034
|
-
return "Coming Soon";
|
|
29035
|
-
}
|
|
29036
|
-
function PRIVACYPOOL() {
|
|
29037
|
-
return "Coming Soon";
|
|
29038
|
-
}
|
|
29039
|
-
function ROTKI() {
|
|
29040
|
-
return "Coming Soon";
|
|
29041
|
-
}
|
|
29042
|
-
function MEERKAT() {
|
|
29043
|
-
return "Coming Soon";
|
|
29044
|
-
}
|
|
29045
|
-
function ARTEMIS() {
|
|
29046
|
-
return "Coming Soon";
|
|
29047
|
-
}
|
|
29048
|
-
function MYANIMELIST() {
|
|
29049
|
-
return "Coming Soon";
|
|
29050
|
-
}
|
|
29051
29035
|
var utils = {
|
|
29052
29036
|
errors: errors,
|
|
29053
29037
|
symbols: symbols,
|
|
@@ -29063,7 +29047,6 @@ function _typeof(o) {
|
|
|
29063
29047
|
exports.AGGREGATE = AGGREGATE;
|
|
29064
29048
|
exports.AND = AND;
|
|
29065
29049
|
exports.ARABIC = ARABIC;
|
|
29066
|
-
exports.ARTEMIS = ARTEMIS;
|
|
29067
29050
|
exports.ASIN = ASIN;
|
|
29068
29051
|
exports.ASINH = ASINH;
|
|
29069
29052
|
exports.ATAN = ATAN;
|
|
@@ -29296,7 +29279,6 @@ function _typeof(o) {
|
|
|
29296
29279
|
exports.MAXA = MAXA;
|
|
29297
29280
|
exports.MAXIFS = MAXIFS;
|
|
29298
29281
|
exports.MEDIAN = MEDIAN;
|
|
29299
|
-
exports.MEERKAT = MEERKAT;
|
|
29300
29282
|
exports.MID = MID;
|
|
29301
29283
|
exports.MIN = MIN;
|
|
29302
29284
|
exports.MINA = MINA;
|
|
@@ -29314,7 +29296,6 @@ function _typeof(o) {
|
|
|
29314
29296
|
exports.MULTINOMIAL = MULTINOMIAL;
|
|
29315
29297
|
exports.MULTIPLY = MULTIPLY$1;
|
|
29316
29298
|
exports.MUNIT = MUNIT;
|
|
29317
|
-
exports.MYANIMELIST = MYANIMELIST;
|
|
29318
29299
|
exports.N = N;
|
|
29319
29300
|
exports.NA = NA;
|
|
29320
29301
|
exports.NEGBINOM = NEGBINOM;
|
|
@@ -29354,12 +29335,10 @@ function _typeof(o) {
|
|
|
29354
29335
|
exports.PNL = PNL;
|
|
29355
29336
|
exports.POISSON = POISSON;
|
|
29356
29337
|
exports.POISSONDIST = POISSONDIST;
|
|
29357
|
-
exports.POLYMARKET = POLYMARKET;
|
|
29358
29338
|
exports.POWER = POWER;
|
|
29359
29339
|
exports.PPMT = PPMT;
|
|
29360
29340
|
exports.PRICE = PRICE;
|
|
29361
29341
|
exports.PRICEDISC = PRICEDISC;
|
|
29362
|
-
exports.PRIVACYPOOL = PRIVACYPOOL;
|
|
29363
29342
|
exports.PROB = PROB;
|
|
29364
29343
|
exports.PRODUCT = PRODUCT;
|
|
29365
29344
|
exports.PROPER = PROPER;
|
|
@@ -29379,7 +29358,6 @@ function _typeof(o) {
|
|
|
29379
29358
|
exports.REPT = REPT;
|
|
29380
29359
|
exports.RIGHT = RIGHT;
|
|
29381
29360
|
exports.ROMAN = ROMAN;
|
|
29382
|
-
exports.ROTKI = ROTKI;
|
|
29383
29361
|
exports.ROUND = ROUND;
|
|
29384
29362
|
exports.ROUNDDOWN = ROUNDDOWN;
|
|
29385
29363
|
exports.ROUNDUP = ROUNDUP;
|