@fileverse-dev/formulajs 4.4.12-mod-9 → 4.4.13-patch-1

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
@@ -17447,7 +17447,9 @@ function getUrlAndHeaders({ url, serviceName, headers = {} }) {
17447
17447
  HEADERS: {
17448
17448
  'target-url': cleanedUrl,
17449
17449
  method: 'GET',
17450
- 'Content-Type': 'application/json'
17450
+ 'Content-Type': 'application/json',
17451
+ "Cache-Control": "no-store",
17452
+ Pragma: "no-cache",
17451
17453
  }
17452
17454
  };
17453
17455
  }
@@ -17455,6 +17457,8 @@ function getUrlAndHeaders({ url, serviceName, headers = {} }) {
17455
17457
  return {
17456
17458
  URL: url,
17457
17459
  HEADERS: {
17460
+ "Cache-Control": "no-store",
17461
+ Pragma: "no-cache",
17458
17462
  ...headers,
17459
17463
  }
17460
17464
  };
@@ -18565,17 +18569,18 @@ function flattenObject(obj, parentKey = '', res = {}) {
18565
18569
  }
18566
18570
 
18567
18571
  const SUPPORTED_TOKEN_NAMES = {
18568
- "eth": 1, // Ethereum Mainnet
18569
- "base": 8453, // Base
18570
- "polygon": 137, // Polygon
18571
- "arbitrum": 42161, // Arbitrum One
18572
- "optimism": 10, // Optimism
18573
- "gnosis": 100, // Gnosis Chain (xDai)
18574
- "bsc": 56, // Binance Smart Chain
18575
- "avalanche": 43114, // Avalanche C-Chain
18576
- "fantom": 250, // Fantom Opera
18577
- "scroll": 534352, // Scroll
18578
- "linea": 59144 // Linea
18572
+ "eth": 1,
18573
+ "base": 8453,
18574
+ "polygon": 137,
18575
+ "arbitrum": 42161,
18576
+ "optimism": 10,
18577
+ "gnosis": 100,
18578
+ "bsc": 56,
18579
+ "avalanche": 43114,
18580
+ "fantom": 250,
18581
+ "scroll": 534352,
18582
+ "linea": 59144,
18583
+ "ethereum": 1
18579
18584
  };
18580
18585
 
18581
18586
 
@@ -18738,21 +18743,6 @@ async function DUNESIM() {
18738
18743
  }
18739
18744
  }
18740
18745
 
18741
-
18742
- (async () => {
18743
- // Example: activity
18744
- // const res1 = await DUNESIM('activity', '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045', "eth", 5);
18745
- // console.log('Activity result:', res1, res1.length);
18746
-
18747
- // Example: price (token-info)
18748
- // const res2 = await DUNESIM('price', 'eth', '1,6,24', "", 5);
18749
- // console.log('Price result:', res2);
18750
-
18751
- // // Example: token holders
18752
- // const res3 = await DUNESIM('token-holders', '0x63706e401c06ac8513145b7687A14804d17f814b', "base", 1);
18753
- // console.log('Holders result:', res3, res3.length);
18754
- })();
18755
-
18756
18746
  // export {GNOSISPAY} from './gnosispay/gnosispay.js'
18757
18747
 
18758
18748
 
package/lib/esm/index.mjs CHANGED
@@ -17445,7 +17445,9 @@ function getUrlAndHeaders({ url, serviceName, headers = {} }) {
17445
17445
  HEADERS: {
17446
17446
  'target-url': cleanedUrl,
17447
17447
  method: 'GET',
17448
- 'Content-Type': 'application/json'
17448
+ 'Content-Type': 'application/json',
17449
+ "Cache-Control": "no-store",
17450
+ Pragma: "no-cache",
17449
17451
  }
17450
17452
  };
17451
17453
  }
@@ -17453,6 +17455,8 @@ function getUrlAndHeaders({ url, serviceName, headers = {} }) {
17453
17455
  return {
17454
17456
  URL: url,
17455
17457
  HEADERS: {
17458
+ "Cache-Control": "no-store",
17459
+ Pragma: "no-cache",
17456
17460
  ...headers,
17457
17461
  }
17458
17462
  };
@@ -18563,17 +18567,18 @@ function flattenObject(obj, parentKey = '', res = {}) {
18563
18567
  }
18564
18568
 
18565
18569
  const SUPPORTED_TOKEN_NAMES = {
18566
- "eth": 1, // Ethereum Mainnet
18567
- "base": 8453, // Base
18568
- "polygon": 137, // Polygon
18569
- "arbitrum": 42161, // Arbitrum One
18570
- "optimism": 10, // Optimism
18571
- "gnosis": 100, // Gnosis Chain (xDai)
18572
- "bsc": 56, // Binance Smart Chain
18573
- "avalanche": 43114, // Avalanche C-Chain
18574
- "fantom": 250, // Fantom Opera
18575
- "scroll": 534352, // Scroll
18576
- "linea": 59144 // Linea
18570
+ "eth": 1,
18571
+ "base": 8453,
18572
+ "polygon": 137,
18573
+ "arbitrum": 42161,
18574
+ "optimism": 10,
18575
+ "gnosis": 100,
18576
+ "bsc": 56,
18577
+ "avalanche": 43114,
18578
+ "fantom": 250,
18579
+ "scroll": 534352,
18580
+ "linea": 59144,
18581
+ "ethereum": 1
18577
18582
  };
18578
18583
 
18579
18584
 
@@ -18736,21 +18741,6 @@ async function DUNESIM() {
18736
18741
  }
18737
18742
  }
18738
18743
 
18739
-
18740
- (async () => {
18741
- // Example: activity
18742
- // const res1 = await DUNESIM('activity', '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045', "eth", 5);
18743
- // console.log('Activity result:', res1, res1.length);
18744
-
18745
- // Example: price (token-info)
18746
- // const res2 = await DUNESIM('price', 'eth', '1,6,24', "", 5);
18747
- // console.log('Price result:', res2);
18748
-
18749
- // // Example: token holders
18750
- // const res3 = await DUNESIM('token-holders', '0x63706e401c06ac8513145b7687A14804d17f814b', "base", 1);
18751
- // console.log('Holders result:', res3, res3.length);
18752
- })();
18753
-
18754
18744
  // export {GNOSISPAY} from './gnosispay/gnosispay.js'
18755
18745
 
18756
18746
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/formulajs",
3
- "version": "4.4.12-mod-9",
3
+ "version": "4.4.13-patch-1",
4
4
  "description": "JavaScript implementation of most Microsoft Excel formula functions",
5
5
  "author": "Formulajs",
6
6
  "publishConfig": {