@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/cjs/index.cjs
CHANGED
|
@@ -6920,8 +6920,6 @@ function SUBTOTAL(function_num, ref1) {
|
|
|
6920
6920
|
function SUM() {
|
|
6921
6921
|
let result = 0;
|
|
6922
6922
|
|
|
6923
|
-
console.log("LLLLO", argsToArray(arguments), {arguments});
|
|
6924
|
-
|
|
6925
6923
|
arrayEach(argsToArray(arguments), (value) => {
|
|
6926
6924
|
if (result instanceof Error) {
|
|
6927
6925
|
return false
|
|
@@ -7800,9 +7798,9 @@ function DAYS(end_date, start_date) {
|
|
|
7800
7798
|
if (start_date instanceof Error) {
|
|
7801
7799
|
return start_date
|
|
7802
7800
|
}
|
|
7803
|
-
console.log({x: formatDate(startOfDay(end_date)), y: formatDate(startOfDay(start_date)) });
|
|
7804
7801
|
|
|
7805
|
-
|
|
7802
|
+
const diffMs = startOfDay(end_date).getTime() - startOfDay(start_date).getTime();
|
|
7803
|
+
return diffMs / (1000 * 60 * 60 * 24);
|
|
7806
7804
|
}
|
|
7807
7805
|
|
|
7808
7806
|
/**
|
|
@@ -13033,7 +13031,7 @@ if(!timestamp || !chain || !apiKey) return
|
|
|
13033
13031
|
|
|
13034
13032
|
async function ETHERSCAN(address, page, offset) {
|
|
13035
13033
|
const API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Etherscan);
|
|
13036
|
-
const url = `https://api.etherscan.io/api?module=account&action=txlist&address=${address}&startblock=0&endblock=99999999&page=${page}&offset=${offset}&sort=asc&apikey=${API_KEY}`;
|
|
13034
|
+
const url = `https://api.etherscan.io/v2/api?chainid=1&module=account&action=txlist&address=${address}&startblock=0&endblock=99999999&page=${page || 1}&offset=${offset || 10}&sort=asc&apikey=${API_KEY}`;
|
|
13037
13035
|
|
|
13038
13036
|
try {
|
|
13039
13037
|
const response = await fetch(url);
|
package/lib/esm/index.mjs
CHANGED
|
@@ -6918,8 +6918,6 @@ function SUBTOTAL(function_num, ref1) {
|
|
|
6918
6918
|
function SUM() {
|
|
6919
6919
|
let result = 0;
|
|
6920
6920
|
|
|
6921
|
-
console.log("LLLLO", argsToArray(arguments), {arguments});
|
|
6922
|
-
|
|
6923
6921
|
arrayEach(argsToArray(arguments), (value) => {
|
|
6924
6922
|
if (result instanceof Error) {
|
|
6925
6923
|
return false
|
|
@@ -7798,9 +7796,9 @@ function DAYS(end_date, start_date) {
|
|
|
7798
7796
|
if (start_date instanceof Error) {
|
|
7799
7797
|
return start_date
|
|
7800
7798
|
}
|
|
7801
|
-
console.log({x: formatDate(startOfDay(end_date)), y: formatDate(startOfDay(start_date)) });
|
|
7802
7799
|
|
|
7803
|
-
|
|
7800
|
+
const diffMs = startOfDay(end_date).getTime() - startOfDay(start_date).getTime();
|
|
7801
|
+
return diffMs / (1000 * 60 * 60 * 24);
|
|
7804
7802
|
}
|
|
7805
7803
|
|
|
7806
7804
|
/**
|
|
@@ -13031,7 +13029,7 @@ if(!timestamp || !chain || !apiKey) return
|
|
|
13031
13029
|
|
|
13032
13030
|
async function ETHERSCAN(address, page, offset) {
|
|
13033
13031
|
const API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Etherscan);
|
|
13034
|
-
const url = `https://api.etherscan.io/api?module=account&action=txlist&address=${address}&startblock=0&endblock=99999999&page=${page}&offset=${offset}&sort=asc&apikey=${API_KEY}`;
|
|
13032
|
+
const url = `https://api.etherscan.io/v2/api?chainid=1&module=account&action=txlist&address=${address}&startblock=0&endblock=99999999&page=${page || 1}&offset=${offset || 10}&sort=asc&apikey=${API_KEY}`;
|
|
13035
13033
|
|
|
13036
13034
|
try {
|
|
13037
13035
|
const response = await fetch(url);
|