@fileverse-dev/formulajs 4.4.11-mod-20 → 4.4.11-mod-21
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
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @fileverse-dev/formulajs v4.4.11-mod-
|
|
1
|
+
/* @fileverse-dev/formulajs v4.4.11-mod-21 */
|
|
2
2
|
function _regeneratorRuntime() {
|
|
3
3
|
"use strict";
|
|
4
4
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() {
|
|
@@ -7476,9 +7476,6 @@ function _typeof(o) {
|
|
|
7476
7476
|
}
|
|
7477
7477
|
function SUM() {
|
|
7478
7478
|
var result = 0;
|
|
7479
|
-
console.log("LLLLO", argsToArray(arguments), {
|
|
7480
|
-
arguments: arguments
|
|
7481
|
-
});
|
|
7482
7479
|
arrayEach(argsToArray(arguments), (function(value) {
|
|
7483
7480
|
if (result instanceof Error) {
|
|
7484
7481
|
return false;
|
|
@@ -7942,11 +7939,8 @@ function _typeof(o) {
|
|
|
7942
7939
|
if (start_date instanceof Error) {
|
|
7943
7940
|
return start_date;
|
|
7944
7941
|
}
|
|
7945
|
-
|
|
7946
|
-
|
|
7947
|
-
y: formatDate(startOfDay(start_date))
|
|
7948
|
-
});
|
|
7949
|
-
return formatDate(startOfDay(end_date)) - formatDate(startOfDay(start_date));
|
|
7942
|
+
var diffMs = startOfDay(end_date).getTime() - startOfDay(start_date).getTime();
|
|
7943
|
+
return diffMs / (1e3 * 60 * 60 * 24);
|
|
7950
7944
|
}
|
|
7951
7945
|
function DAYS360(start_date, end_date, method) {
|
|
7952
7946
|
method = parseBool(method || "false");
|
|
@@ -10809,7 +10803,7 @@ function _typeof(o) {
|
|
|
10809
10803
|
while (1) switch (_context2.prev = _context2.next) {
|
|
10810
10804
|
case 0:
|
|
10811
10805
|
API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Etherscan);
|
|
10812
|
-
url = "https://api.etherscan.io/api?module=account&action=txlist&address=".concat(address, "&startblock=0&endblock=99999999&page=").concat(page, "&offset=").concat(offset, "&sort=asc&apikey=").concat(API_KEY);
|
|
10806
|
+
url = "https://api.etherscan.io/v2/api?chainid=1&module=account&action=txlist&address=".concat(address, "&startblock=0&endblock=99999999&page=").concat(page || 1, "&offset=").concat(offset || 10, "&sort=asc&apikey=").concat(API_KEY);
|
|
10813
10807
|
_context2.prev = 2;
|
|
10814
10808
|
_context2.next = 5;
|
|
10815
10809
|
return fetch(url);
|