@fileverse-dev/formulajs 4.4.11-mod-75 → 4.4.11-mod-76
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
|
@@ -13298,7 +13298,7 @@ function getUrlAndHeaders({ url, serviceName, headers = {} }) {
|
|
|
13298
13298
|
}
|
|
13299
13299
|
|
|
13300
13300
|
const fromTimeStampToBlock = async (timestamp, chain, apiKey) => {
|
|
13301
|
-
if (!timestamp || !chain
|
|
13301
|
+
if (!timestamp || !chain) return
|
|
13302
13302
|
const chainId = CHAIN_ID_MAP[chain];
|
|
13303
13303
|
const url = `https://api.etherscan.io/v2/api?module=block&action=getblocknobytime×tamp=${timestamp}&closest=before&apikey=${apiKey}&chainId=${chainId}`;
|
|
13304
13304
|
const { URL: finalUrl, HEADERS } = getUrlAndHeaders({ url, serviceName: 'Etherscan', headers: {} });
|
package/lib/esm/index.mjs
CHANGED
|
@@ -13296,7 +13296,7 @@ function getUrlAndHeaders({ url, serviceName, headers = {} }) {
|
|
|
13296
13296
|
}
|
|
13297
13297
|
|
|
13298
13298
|
const fromTimeStampToBlock = async (timestamp, chain, apiKey) => {
|
|
13299
|
-
if (!timestamp || !chain
|
|
13299
|
+
if (!timestamp || !chain) return
|
|
13300
13300
|
const chainId = CHAIN_ID_MAP[chain];
|
|
13301
13301
|
const url = `https://api.etherscan.io/v2/api?module=block&action=getblocknobytime×tamp=${timestamp}&closest=before&apikey=${apiKey}&chainId=${chainId}`;
|
|
13302
13302
|
const { URL: finalUrl, HEADERS } = getUrlAndHeaders({ url, serviceName: 'Etherscan', headers: {} });
|