@fileverse-dev/formulajs 4.4.30 → 4.4.31

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
@@ -18003,19 +18003,13 @@ async function handleScanRequest({
18003
18003
  chainId,
18004
18004
  network
18005
18005
  }) {
18006
- const API_INFO_MAP = {
18007
- BASE: { url: 'https://api.basescan.org/api', apiKeyName: SERVICES_API_KEY.Basescan },
18008
- ETHERSCAN: { url: 'https://api.etherscan.io/v2/api', apiKeyName: SERVICES_API_KEY.Etherscan },
18009
- GNOSIS: { url: 'https://api.gnosisscan.io/api', apiKeyName: SERVICES_API_KEY.Gnosisscan }
18010
- };
18011
18006
 
18012
18007
  if (type !== 'gas') {
18013
18008
  address = await fromEnsNameToAddress$1.validateAndGetAddress(address);
18014
18009
  }
18015
18010
 
18016
- const apiInfo = API_INFO_MAP[functionName];
18011
+ const apiInfo = { url: 'https://api.etherscan.io/v2/api', apiKeyName: SERVICES_API_KEY.Etherscan };
18017
18012
  const baseUrl = apiInfo?.url;
18018
- if (!baseUrl) throw new ValidationError(`Api not found for: ${functionName}`)
18019
18013
 
18020
18014
 
18021
18015
  const ACTION_MAP = {
@@ -18030,7 +18024,6 @@ async function handleScanRequest({
18030
18024
 
18031
18025
  const module = action === 'gasoracle' ? 'gastracker' : 'account';
18032
18026
  let url = `${baseUrl}?chainid=${chainId}&module=${module}&action=${action}&apikey=${apiKey}`;
18033
-
18034
18027
  if (['all-txns', 'token-txns', 'nft-txns'].includes(type)) {
18035
18028
  url += `&address=${address}&startblock=0&endblock=99999999&sort=asc`;
18036
18029
 
@@ -312,7 +312,7 @@ If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-f
312
312
  // src/crypto/defillama/metadata.js
313
313
  var DEFILLAMA_metadata = {
314
314
  API_KEY: SERVICES_API_KEY.Defillama,
315
- LOGO: "https://defillama.com/favicon-32x32.png",
315
+ LOGO: "https://defillama.com/favicon.ico",
316
316
  BRAND_COLOR: "#f8f5fc",
317
317
  BRAND_SECONDARY_COLOR: "#855dcd",
318
318
  n: "DEFILLAMA",
package/lib/esm/index.mjs CHANGED
@@ -18001,19 +18001,13 @@ async function handleScanRequest({
18001
18001
  chainId,
18002
18002
  network
18003
18003
  }) {
18004
- const API_INFO_MAP = {
18005
- BASE: { url: 'https://api.basescan.org/api', apiKeyName: SERVICES_API_KEY.Basescan },
18006
- ETHERSCAN: { url: 'https://api.etherscan.io/v2/api', apiKeyName: SERVICES_API_KEY.Etherscan },
18007
- GNOSIS: { url: 'https://api.gnosisscan.io/api', apiKeyName: SERVICES_API_KEY.Gnosisscan }
18008
- };
18009
18004
 
18010
18005
  if (type !== 'gas') {
18011
18006
  address = await fromEnsNameToAddress$1.validateAndGetAddress(address);
18012
18007
  }
18013
18008
 
18014
- const apiInfo = API_INFO_MAP[functionName];
18009
+ const apiInfo = { url: 'https://api.etherscan.io/v2/api', apiKeyName: SERVICES_API_KEY.Etherscan };
18015
18010
  const baseUrl = apiInfo?.url;
18016
- if (!baseUrl) throw new ValidationError(`Api not found for: ${functionName}`)
18017
18011
 
18018
18012
 
18019
18013
  const ACTION_MAP = {
@@ -18028,7 +18022,6 @@ async function handleScanRequest({
18028
18022
 
18029
18023
  const module = action === 'gasoracle' ? 'gastracker' : 'account';
18030
18024
  let url = `${baseUrl}?chainid=${chainId}&module=${module}&action=${action}&apikey=${apiKey}`;
18031
-
18032
18025
  if (['all-txns', 'token-txns', 'nft-txns'].includes(type)) {
18033
18026
  url += `&address=${address}&startblock=0&endblock=99999999&sort=asc`;
18034
18027
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/formulajs",
3
- "version": "4.4.30",
3
+ "version": "4.4.31",
4
4
  "description": "JavaScript implementation of most Microsoft Excel formula functions",
5
5
  "author": "Formulajs",
6
6
  "publishConfig": {