@fileverse-dev/formulajs 4.4.11-mod-43 → 4.4.11-mod-45

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
@@ -13397,8 +13397,7 @@ async function GNOSIS() {
13397
13397
  });
13398
13398
  }
13399
13399
 
13400
- async function NEYNAR(
13401
- ) {
13400
+ async function NEYNAR() {
13402
13401
  const [
13403
13402
  username
13404
13403
  ] = argsToArray(arguments);
@@ -13530,9 +13529,9 @@ async function COINGECKO(category, param1, param2) {
13530
13529
 
13531
13530
  switch (lowerCategory) {
13532
13531
  case 'price': {
13533
- const vsCurrencies = param1;
13534
- const token = param2;
13535
- if (!token || !vsCurrencies) {
13532
+ const token = param1;
13533
+ const vsCurrencies = param2;
13534
+ if (!token) {
13536
13535
  return `${SERVICE_API_KEY.Coingecko}${ERROR_MESSAGES_FLAG.INVALID_PARAM}`;
13537
13536
  }
13538
13537
  url = `https://api.coingecko.com/api/v3/simple/price?vs_currencies=${vsCurrencies ? vsCurrencies : 'usd' }&symbols=${token}`;
@@ -13613,11 +13612,14 @@ async function COINGECKO(category, param1, param2) {
13613
13612
  return [output];
13614
13613
  }
13615
13614
 
13616
- const data = json;
13615
+ let data = json;
13617
13616
 
13618
13617
  if (lowerCategory === 'derivatives') {
13618
+ if (json.length > 200) {
13619
+ data = json.slice(0, 200);
13620
+ }
13619
13621
  if (json && json.tickers && json.tickers.tickers) {
13620
- data = json.tickers.tickers;
13622
+ data = json.tickers.tickers.slice(0, 200);
13621
13623
  }
13622
13624
  }
13623
13625
 
@@ -13637,9 +13639,6 @@ async function COINGECKO(category, param1, param2) {
13637
13639
  }
13638
13640
  }
13639
13641
 
13640
-
13641
-
13642
-
13643
13642
  async function EOA(
13644
13643
  ) {
13645
13644
  const API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Etherscan);
@@ -96,43 +96,15 @@ var FUNCTION_LOCALE = [
96
96
  BRAND_SECONDARY_COLOR: "#28204A",
97
97
  n: "NEYNAR",
98
98
  t: 20,
99
- d: "Fetches followers for a given Farcaster FID using Neynar's API.",
99
+ d: "Fetches followers for a given Farcaster username using Neynar's API.",
100
100
  a: "Retrieves followers of a Farcaster user, with support for sorting, pagination, and optional viewer context.",
101
101
  p: [
102
102
  {
103
- name: "fid",
103
+ name: "username",
104
104
  detail: "The Farcaster FID of the user whose followers should be fetched.",
105
- example: `123`,
105
+ example: `miroyato`,
106
106
  require: "m",
107
107
  type: "number"
108
- },
109
- {
110
- name: "viewerFid",
111
- detail: "FID of the viewer, to include contextual info like mutual follows (optional).",
112
- example: `456`,
113
- require: "o",
114
- type: "number"
115
- },
116
- {
117
- name: "sortType",
118
- detail: "Sorting type: either 'desc_chron' (default) or 'algorithmic'.",
119
- example: `"desc_chron"`,
120
- require: "o",
121
- type: "string"
122
- },
123
- {
124
- name: "limit",
125
- detail: "Number of followers to return (max 100).",
126
- example: `20`,
127
- require: "o",
128
- type: "number"
129
- },
130
- {
131
- name: "cursor",
132
- detail: "Cursor string for paginating the result set.",
133
- example: `"eyJvZmZzZXQiOjIwLCJsYXN0SWQiOjEyMzQ1Nn0="`,
134
- require: "o",
135
- type: "string"
136
108
  }
137
109
  ]
138
110
  },
@@ -448,13 +420,13 @@ var FUNCTION_LOCALE = [
448
420
  name: "param1",
449
421
  detail: `If "price" then - eg. "BTC", "ETH", OR any token on coingecko
450
422
 
451
- If "market": one of ["all", "base", "meme", "aiagents", "bitcoin", "ethereum", "hyperliquid", "pump", "solana"].
423
+ If "market": one of "all", "base", "meme", "aiagents", "bitcoin", "ethereum", "hyperliquid", "pump", "solana".
452
424
 
453
- If "stablecoins": one of ["all", "yield-bearing-stablecoins", "crypto-backed-stablecoin"].
425
+ If "stablecoins": one of "all", "yield-bearing-stablecoins", "crypto-backed-stablecoin".
454
426
 
455
427
  If "derivatives": exchange name (e.g., "binance_futures").`,
456
428
  example: `"yield-bearing-stablecoins"`,
457
- require: "o"
429
+ require: "m"
458
430
  },
459
431
  {
460
432
  name: "param2",
package/lib/esm/index.mjs CHANGED
@@ -13395,8 +13395,7 @@ async function GNOSIS() {
13395
13395
  });
13396
13396
  }
13397
13397
 
13398
- async function NEYNAR(
13399
- ) {
13398
+ async function NEYNAR() {
13400
13399
  const [
13401
13400
  username
13402
13401
  ] = argsToArray(arguments);
@@ -13528,9 +13527,9 @@ async function COINGECKO(category, param1, param2) {
13528
13527
 
13529
13528
  switch (lowerCategory) {
13530
13529
  case 'price': {
13531
- const vsCurrencies = param1;
13532
- const token = param2;
13533
- if (!token || !vsCurrencies) {
13530
+ const token = param1;
13531
+ const vsCurrencies = param2;
13532
+ if (!token) {
13534
13533
  return `${SERVICE_API_KEY.Coingecko}${ERROR_MESSAGES_FLAG.INVALID_PARAM}`;
13535
13534
  }
13536
13535
  url = `https://api.coingecko.com/api/v3/simple/price?vs_currencies=${vsCurrencies ? vsCurrencies : 'usd' }&symbols=${token}`;
@@ -13611,11 +13610,14 @@ async function COINGECKO(category, param1, param2) {
13611
13610
  return [output];
13612
13611
  }
13613
13612
 
13614
- const data = json;
13613
+ let data = json;
13615
13614
 
13616
13615
  if (lowerCategory === 'derivatives') {
13616
+ if (json.length > 200) {
13617
+ data = json.slice(0, 200);
13618
+ }
13617
13619
  if (json && json.tickers && json.tickers.tickers) {
13618
- data = json.tickers.tickers;
13620
+ data = json.tickers.tickers.slice(0, 200);
13619
13621
  }
13620
13622
  }
13621
13623
 
@@ -13635,9 +13637,6 @@ async function COINGECKO(category, param1, param2) {
13635
13637
  }
13636
13638
  }
13637
13639
 
13638
-
13639
-
13640
-
13641
13640
  async function EOA(
13642
13641
  ) {
13643
13642
  const API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Etherscan);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/formulajs",
3
- "version": "4.4.11-mod-43",
3
+ "version": "4.4.11-mod-45",
4
4
  "description": "JavaScript implementation of most Microsoft Excel formula functions",
5
5
  "author": "Formulajs",
6
6
  "publishConfig": {