@fileverse-dev/formulajs 4.4.11-mod-68-patch-2 → 4.4.11-mod-68-patch-4

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
@@ -13255,7 +13255,7 @@ const fromTimeStampToBlock = async (timestamp, chain, apiKey) => {
13255
13255
  if (!timestamp || !chain || !apiKey) return
13256
13256
  const chainId = CHAIN_ID_MAP[chain];
13257
13257
  const url = `https://api.etherscan.io/v2/api?module=block&action=getblocknobytime&timestamp=${timestamp}&closest=before&apikey=${apiKey}&chainId=${chainId}`;
13258
- const { URL: finalUrl, HEADERS } = getUrlAndHeaders(url);
13258
+ const { URL: finalUrl, HEADERS } = getUrlAndHeaders({ url, serviceName: 'Etherscan', headers: {} });
13259
13259
  const res = await fetch(finalUrl, {
13260
13260
  method: 'GET',
13261
13261
  headers: HEADERS,
@@ -18279,6 +18279,7 @@ async function EOA() {
18279
18279
 
18280
18280
 
18281
18281
  for (const chain of CHAINS) {
18282
+ console.log('chain', chain);
18282
18283
  const chainId = CHAIN_ID_MAP[chain];
18283
18284
  if (!chainId) throw new ValidationError(`Invalid chain: ${chain}`)
18284
18285
 
@@ -18298,6 +18299,7 @@ async function EOA() {
18298
18299
  // txns
18299
18300
  const sb = await fromTimestampToBlock.fromTimeStampToBlock(toTimestamp(startTime), chain, apiKey);
18300
18301
  const eb = await fromTimestampToBlock.fromTimeStampToBlock(toTimestamp(endTime), chain, apiKey);
18302
+ console.log('sb', sb, 'eb', eb);
18301
18303
  if (!sb) throw new ValidationError(`Invalid startTime: ${startTime}`)
18302
18304
  if (!eb) throw new ValidationError(`Invalid endTime: ${endTime}`)
18303
18305
  for (const addr of ADDRS) {
package/lib/esm/index.mjs CHANGED
@@ -13253,7 +13253,7 @@ const fromTimeStampToBlock = async (timestamp, chain, apiKey) => {
13253
13253
  if (!timestamp || !chain || !apiKey) return
13254
13254
  const chainId = CHAIN_ID_MAP[chain];
13255
13255
  const url = `https://api.etherscan.io/v2/api?module=block&action=getblocknobytime&timestamp=${timestamp}&closest=before&apikey=${apiKey}&chainId=${chainId}`;
13256
- const { URL: finalUrl, HEADERS } = getUrlAndHeaders(url);
13256
+ const { URL: finalUrl, HEADERS } = getUrlAndHeaders({ url, serviceName: 'Etherscan', headers: {} });
13257
13257
  const res = await fetch(finalUrl, {
13258
13258
  method: 'GET',
13259
13259
  headers: HEADERS,
@@ -18277,6 +18277,7 @@ async function EOA() {
18277
18277
 
18278
18278
 
18279
18279
  for (const chain of CHAINS) {
18280
+ console.log('chain', chain);
18280
18281
  const chainId = CHAIN_ID_MAP[chain];
18281
18282
  if (!chainId) throw new ValidationError(`Invalid chain: ${chain}`)
18282
18283
 
@@ -18296,6 +18297,7 @@ async function EOA() {
18296
18297
  // txns
18297
18298
  const sb = await fromTimestampToBlock.fromTimeStampToBlock(toTimestamp(startTime), chain, apiKey);
18298
18299
  const eb = await fromTimestampToBlock.fromTimeStampToBlock(toTimestamp(endTime), chain, apiKey);
18300
+ console.log('sb', sb, 'eb', eb);
18299
18301
  if (!sb) throw new ValidationError(`Invalid startTime: ${startTime}`)
18300
18302
  if (!eb) throw new ValidationError(`Invalid endTime: ${endTime}`)
18301
18303
  for (const addr of ADDRS) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/formulajs",
3
- "version": "4.4.11-mod-68-patch-2",
3
+ "version": "4.4.11-mod-68-patch-4",
4
4
  "description": "JavaScript implementation of most Microsoft Excel formula functions",
5
5
  "author": "Formulajs",
6
6
  "publishConfig": {