@fileverse-dev/formulajs 4.4.11-mod-38-patch-004 → 4.4.11-mod-41

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/esm/index.mjs CHANGED
@@ -5616,35 +5616,6 @@ function ATANH(number) {
5616
5616
  return result
5617
5617
  }
5618
5618
 
5619
- /**
5620
- * Converts a number into a text representation with the given radix (base).
5621
- *
5622
- * Category: Math and trigonometry
5623
- *
5624
- * @param {*} number The number that you want to convert. Must be an integer greater than or equal to 0 and less than 2^53.
5625
- * @param {*} radix The base radix that you want to convert the number into. Must be an integer greater than or equal to 2 and less than or equal to 36.
5626
- * @param {*} min_length Optional. The minimum length of the returned string. Must be an integer greater than or equal to 0.
5627
- * @returns
5628
- */
5629
- function BASE(number, radix, min_length) {
5630
- number = parseNumber(number);
5631
- radix = parseNumber(radix);
5632
- min_length = parseNumber(min_length);
5633
- const anyError$1 = anyError(number, radix, min_length);
5634
-
5635
- if (anyError$1) {
5636
- return anyError$1
5637
- }
5638
-
5639
- if (radix === 0) {
5640
- return num
5641
- }
5642
-
5643
- const result = number.toString(radix);
5644
-
5645
- return new Array(Math.max(min_length + 1 - result.length, 0)).join('0') + result
5646
- }
5647
-
5648
5619
  /**
5649
5620
  * Rounds a number to the nearest integer or to the nearest multiple of significance.
5650
5621
  *
@@ -13117,7 +13088,8 @@ const SERVICE_API_KEY = {
13117
13088
  Basescan: "BASESCAN_API_KEY",
13118
13089
  Gnosisscan: "GNOSIS_API_KEY",
13119
13090
  Firefly: "FIRE_FLY_API_KEY",
13120
- GnosisPay: 'GNOSIS_API_KEY'
13091
+ GnosisPay: 'GNOSIS_API_KEY',
13092
+ Neynar: 'NEYNAR_API_KEY'
13121
13093
  };
13122
13094
 
13123
13095
  const fromTimeStampToBlock = async (timestamp, chain, apiKey) => {
@@ -13241,7 +13213,7 @@ if (scanKey === SERVICE_API_KEY.Gnosisscan) chainId = 'gnosis';
13241
13213
  }
13242
13214
  }
13243
13215
 
13244
- async function FIREFLY() {
13216
+ async function FIREFLY(platform, contentType, identifier, start = 0, end = 10) {
13245
13217
  const API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Firefly);
13246
13218
  if (!API_KEY) return `${SERVICE_API_KEY.Firefly}${ERROR_MESSAGES_FLAG.MISSING_KEY}`;
13247
13219
 
@@ -13260,9 +13232,6 @@ async function FIREFLY() {
13260
13232
  }
13261
13233
  };
13262
13234
 
13263
-
13264
- const [platform, contentType, identifier, start = 0, end = 10] = argsToArray(arguments);
13265
-
13266
13235
  const platformType = typeMap[platform]?.[contentType];
13267
13236
  if (!platformType) return `${SERVICE_API_KEY.Firefly}${ERROR_MESSAGES_FLAG.INVALID_TYPE}`;
13268
13237
 
@@ -13306,21 +13275,7 @@ async function FIREFLY() {
13306
13275
 
13307
13276
 
13308
13277
 
13309
- function BLOCKSCOUT () {
13310
- console.log("HUMBLE");
13311
- let args = argsToArray(arguments);
13312
-
13313
- return JSON.stringify({
13314
- args,
13315
- name: "_BLOCKSCOUT"
13316
- })
13317
- }
13318
-
13319
-
13320
-
13321
-
13322
-
13323
- async function _BLOCKSCOUT(address, type, chain, startTimestamp, endTimestamp, page, offset) {
13278
+ async function BLOCKSCOUT(address, type, chain, startTimestamp, endTimestamp, page, offset) {
13324
13279
  if (!chain) {
13325
13280
  chain = 'ethereum';
13326
13281
  }
@@ -13329,8 +13284,6 @@ async function _BLOCKSCOUT(address, type, chain, startTimestamp, endTimestamp, p
13329
13284
  return 'TYPE_MISSING'
13330
13285
  }
13331
13286
 
13332
- // let [] = utils.argsToArray(arguments)
13333
-
13334
13287
  if (!startTimestamp) {
13335
13288
  const currentTimestamp = Date.now();
13336
13289
  startTimestamp = currentTimestamp - 30 * 24 * 60 * 60 * 1000;
@@ -13407,23 +13360,8 @@ async function _BLOCKSCOUT(address, type, chain, startTimestamp, endTimestamp, p
13407
13360
  return 'ERROR IN FETCHING'
13408
13361
  }
13409
13362
  }
13410
-
13411
- async function BASESCAN() {
13412
- const [type, chain, address, startDate, endDate, page, limit] = argsToArray(arguments);
13413
- return handleScanRequest({
13414
- scanKey: SERVICE_API_KEY.Basescan,
13415
- baseUrl: 'https://api.basescan.org/api',
13416
- type,
13417
- chain,
13418
- address,
13419
- startDate,
13420
- endDate,
13421
- page,
13422
- offset:limit
13423
- });
13424
- }
13425
- async function GNOSISSCAN() {
13426
- const [type, chain, address, startDate, endDate, page, limit] = argsToArray(arguments);
13363
+ async function GNOSIS(...args) {
13364
+ const [type, chain, address, startDate, endDate, page, limit] = args;
13427
13365
  return handleScanRequest({
13428
13366
  scanKey: SERVICE_API_KEY.Gnosisscan,
13429
13367
  baseUrl: 'https://api.gnosisscan.io/api',
@@ -13432,24 +13370,22 @@ async function GNOSISSCAN() {
13432
13370
  address,
13433
13371
  startDate,
13434
13372
  endDate,
13435
- page,
13373
+ page,
13436
13374
  offset:limit
13437
13375
  });
13438
13376
  }
13439
13377
 
13440
- async function NEYNAR(
13441
-
13378
+ async function NEYNAR(
13379
+ fid,
13380
+ viewerFid,
13381
+ sortType,
13382
+ limit,
13383
+ cursor
13442
13384
  ) {
13443
13385
  const API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Neynar);
13444
13386
  if (!API_KEY) return `${SERVICE_API_KEY.Neynar}${ERROR_MESSAGES_FLAG.MISSING_KEY}`;
13445
13387
 
13446
- const [
13447
- fid,
13448
- viewerFid,
13449
- sortType,
13450
- limit,
13451
- cursor
13452
- ] = argsToArray(arguments);
13388
+
13453
13389
  const url = new URL('https://api.neynar.com/v2/farcaster/followers');
13454
13390
  url.searchParams.set('fid', fid.toString());
13455
13391
  url.searchParams.set('sort_type', sortType);
@@ -13480,22 +13416,18 @@ const [
13480
13416
  return ERROR_MESSAGES_FLAG.DEFAULT;
13481
13417
  }
13482
13418
  }
13483
- async function GNOSISPAY(
13484
-
13485
- ) {
13419
+ async function GNOSISPAY({
13420
+ cardId,
13421
+ startDate,
13422
+ endDate,
13423
+ limit = 20,
13424
+ offset = 0,
13425
+ }) {
13486
13426
  const apiKeyKey = SERVICE_API_KEY.GnosisPay;
13487
13427
  const API_KEY = window.localStorage.getItem(apiKeyKey);
13488
13428
  if (!API_KEY) return `${apiKeyKey}${ERROR_MESSAGES_FLAG.MISSING_KEY}`;
13489
13429
  if (!cardId) return `${apiKeyKey}${ERROR_MESSAGES_FLAG.INVALID_PARAM}`;
13490
13430
 
13491
-
13492
-
13493
- const [ cardId,
13494
- startDate,
13495
- endDate,
13496
- limit = 20,
13497
- offset = 0] = argsToArray(arguments);
13498
-
13499
13431
  const url = new URL(`https://api.gnosispay.com/cards/${cardId}/transactions`);
13500
13432
  url.searchParams.set('limit', limit.toString());
13501
13433
  url.searchParams.set('offset', offset.toString());
@@ -13544,8 +13476,8 @@ async function GNOSISPAY(
13544
13476
 
13545
13477
 
13546
13478
 
13547
- async function ETHERSCAN() {
13548
- const [type, chain, address, startDate, endDate, page, limit] = argsToArray(arguments);
13479
+ async function ETHERSCAN(...args) {
13480
+ const [type, chain, address, startDate, endDate, page, limit] = args;
13549
13481
  return handleScanRequest({
13550
13482
  scanKey: SERVICE_API_KEY.Etherscan,
13551
13483
  baseUrl: 'https://api.etherscan.io/v2/api',
@@ -13554,13 +13486,13 @@ async function ETHERSCAN() {
13554
13486
  address,
13555
13487
  startDate,
13556
13488
  endDate,
13557
- page,
13489
+ page,
13558
13490
  offset:limit
13559
13491
  });
13560
13492
  }
13561
13493
 
13562
13494
 
13563
- async function COINGECKO() {
13495
+ async function COINGECKO(category, param1, param2, page = 1, perPage = 2) {
13564
13496
  const API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Coingecko);
13565
13497
  if (!API_KEY) return `${SERVICE_API_KEY.Coingecko}${ERROR_MESSAGES_FLAG.MISSING_KEY}`;
13566
13498
 
@@ -13570,25 +13502,25 @@ async function COINGECKO() {
13570
13502
  };
13571
13503
 
13572
13504
  let url = '';
13573
- const [category, param1, param2, page = 1, perPage = 2 ] = argsToArray(arguments);
13574
13505
  const lowerCategory = (category || '').toLowerCase();
13575
13506
 
13576
13507
  switch (lowerCategory) {
13577
13508
  case 'price': {
13578
- const token = param1;
13579
- const vsCurrencies = param2;
13509
+ const vsCurrencies = param1;
13510
+ const token = param2;
13580
13511
  if (!token || !vsCurrencies) {
13581
13512
  return `${SERVICE_API_KEY.Coingecko}${ERROR_MESSAGES_FLAG.INVALID_PARAM}`;
13582
13513
  }
13583
- url = `https://api.coingecko.com/api/v3/simple/price?vs_currencies=${vsCurrencies}&ids=${token}`;
13514
+ url = `https://api.coingecko.com/api/v3/simple/price?vs_currencies=${vsCurrencies ? vsCurrencies : 'usd' }&symbols=${token}`;
13584
13515
  break;
13585
13516
  }
13586
13517
 
13587
13518
  case 'market': {
13588
13519
  const ecosystemMap = {
13589
- eth: 'ethereum-ecosystem',
13520
+ all: '',
13521
+ ethereum: 'ethereum-ecosystem',
13590
13522
  base: 'base-ecosystem',
13591
- sol: 'solana-ecosystem',
13523
+ solana: 'solana-ecosystem',
13592
13524
  gnosis: 'gnosis-chain',
13593
13525
  hyperliquid: 'hyperliquid',
13594
13526
  bitcoin: 'bitcoin-ecosystem',
@@ -13620,10 +13552,10 @@ async function COINGECKO() {
13620
13552
 
13621
13553
  case 'derivatives': {
13622
13554
  const exchange = param1;
13623
- if (exchange) {
13624
- url = `https://api.coingecko.com/api/v3/derivatives/exchanges/${exchange}?include_tickers=all`;
13555
+ if (!exchange || exchange === 'all') {
13556
+ url = `https://api.coingecko.com/api/v3/derivatives`;
13625
13557
  } else {
13626
- url = `https://api.coingecko.com/api/v3/derivatives?page=${page}&per_page=${perPage}`;
13558
+ url = `https://api.coingecko.com/api/v3/derivatives/exchanges/${exchange}?include_tickers=all`;
13627
13559
  }
13628
13560
  break;
13629
13561
  }
@@ -13657,7 +13589,15 @@ async function COINGECKO() {
13657
13589
  return [output];
13658
13590
  }
13659
13591
 
13660
- const flatArray = Array.isArray(json) ? json : [json];
13592
+ const data = json;
13593
+
13594
+ if (lowerCategory === 'derivatives') {
13595
+ if (json && json.tickers && json.tickers.tickers) {
13596
+ data = json.tickers.tickers;
13597
+ }
13598
+ }
13599
+
13600
+ const flatArray = Array.isArray(data) ? data : [data];
13661
13601
  return flatArray.map(item => {
13662
13602
  const flat = {};
13663
13603
  for (const [key, value] of Object.entries(item)) {
@@ -13676,11 +13616,7 @@ async function COINGECKO() {
13676
13616
 
13677
13617
 
13678
13618
 
13679
- async function EOA() {
13680
-
13681
-
13682
-
13683
- const [
13619
+ async function EOA(
13684
13620
  addresses,
13685
13621
  category,
13686
13622
  chains,
@@ -13688,29 +13624,11 @@ async function EOA() {
13688
13624
  endTime,
13689
13625
  page = 1,
13690
13626
  offset = 10,
13691
- ] = argsToArray(arguments);
13692
-
13693
- const someError = anyError(addresses, category, chains, startTime, endTime, page, offset);
13694
-
13695
- if (someError) {
13696
- return someError
13697
- }
13698
-
13699
-
13627
+ ) {
13700
13628
  const API_KEY = window.localStorage.getItem(SERVICE_API_KEY.Etherscan);
13701
13629
  if (!API_KEY) return `${SERVICE_API_KEY.Etherscan}${ERROR_MESSAGES_FLAG.MISSING_KEY}`;
13702
13630
 
13703
-
13704
-
13705
- let INPUTS;
13706
-
13707
- if(typeof addresses === 'string'){
13708
- INPUTS = addresses.split(",").map(a => a.trim()).filter(Boolean);
13709
- } else if (typeof addresses === 'object'){
13710
- INPUTS = addresses;
13711
- }
13712
-
13713
-
13631
+ const INPUTS = addresses.split(",").map(a => a.trim()).filter(Boolean);
13714
13632
  const CHAINS = chains.split(",").map(c => c.trim()).filter(Boolean);
13715
13633
  const out = [];
13716
13634
 
@@ -13822,12 +13740,7 @@ async function FLVURL(token, vs_currencies) {
13822
13740
  });
13823
13741
  }
13824
13742
 
13825
- async function SAFE() {
13826
-
13827
-
13828
-
13829
-
13830
- let [address, utility, chain, limit, offset] = argsToArray(arguments);
13743
+ async function SAFE(address, utility, chain, limit, offset) {
13831
13744
 
13832
13745
  if (typeof limit !== 'number' || limit < 0) return 'INVALID_LIMIT';
13833
13746
  if (typeof offset !== 'number' || offset < 0) return 'INVALID_OFFSET';
@@ -13871,4 +13784,4 @@ async function SAFE() {
13871
13784
 
13872
13785
  const utils = { errors, symbols, date };
13873
13786
 
13874
- export { ABS, ACCRINT, ACOS, ACOSH, ACOT, ACOTH, AGGREGATE, AND, ARABIC, ASIN, ASINH, ATAN, ATAN2, ATANH, AVEDEV, AVERAGE, AVERAGEA, AVERAGEIF, AVERAGEIFS, BASE, BASESCAN, BESSELI, BESSELJ, BESSELK, BESSELY, BETA, BETADIST, BETAINV, BIN2DEC, BIN2HEX, BIN2OCT, BINOM, BINOMDIST, BITAND, BITLSHIFT, BITOR, BITRSHIFT, BITXOR, BLOCKSCOUT, CEILING, CEILINGMATH, CEILINGPRECISE, CHAR, CHIDIST, CHIDISTRT, CHIINV, CHIINVRT, CHISQ, CHITEST, CHOOSE, CLEAN, CODE, COINGECKO, COLUMN, COLUMNS, COMBIN, COMBINA, COMPLEX, CONCAT, CONCATENATE, CONFIDENCE, CONVERT, CORREL, COS, COSH, COT, COTH, COUNT, COUNTA, COUNTBLANK, COUNTIF, COUNTIFS, COUPDAYS, COVAR, COVARIANCE, COVARIANCEP, COVARIANCES, CRITBINOM, CSC, CSCH, CUMIPMT, CUMPRINC, DATE, DATEDIF, DATEVALUE, DAVERAGE, DAY, DAYS, DAYS360, DB, DCOUNT, DCOUNTA, DDB, DEC2BIN, DEC2HEX, DEC2OCT, DECIMAL, DEGREES, DELTA, DEVSQ, DGET, DISC, DMAX, DMIN, DOLLAR, DOLLARDE, DOLLARFR, DPRODUCT, DSTDEV, DSTDEVP, DSUM, DVAR, DVARP, EDATE, EFFECT, EOA, EOMONTH, ERF, ERFC, ERFCPRECISE, ERFPRECISE, ERROR, ETHERSCAN, EVEN, EXACT, EXP, EXPON, EXPONDIST, F, FACT, FACTDOUBLE, FALSE, FDIST, FDISTRT, FIND, FINV, FINVRT, FIREFLY, FISHER, FISHERINV, FIXED, FLOOR, FLOORMATH, FLOORPRECISE, FLVURL, FORECAST, FREQUENCY, FTEST, FV, FVSCHEDULE, GAMMA, GAMMADIST, GAMMAINV, GAMMALN, GAMMALNPRECISE, GAUSS, GCD, GEOMEAN, GESTEP, GNOSISPAY, GNOSISSCAN, GROWTH, HARMEAN, HEX2BIN, HEX2DEC, HEX2OCT, HLOOKUP, HOUR, HYPGEOM, HYPGEOMDIST, IF, IFERROR, IFNA, IFS, IMABS, IMAGINARY, IMARGUMENT, IMCONJUGATE, IMCOS, IMCOSH, IMCOT, IMCSC, IMCSCH, IMDIV, IMEXP, IMLN, IMLOG10, IMLOG2, IMPOWER, IMPRODUCT, IMREAL, IMSEC, IMSECH, IMSIN, IMSINH, IMSQRT, IMSUB, IMSUM, IMTAN, INDEX, INT, INTERCEPT, IPMT, IRR, ISBLANK, ISDATE, ISERR, ISERROR, ISEVEN, ISLOGICAL, ISNA, ISNONTEXT, ISNUMBER, ISO, ISODD, ISOWEEKNUM, ISPMT, ISTEXT, KURT, LARGE, LCM, LEFT, LEN, LINEST, LN, LOG, LOG10, LOGEST, LOGINV, LOGNORM, LOGNORMDIST, LOGNORMINV, LOOKUP, LOWER, MATCH, MAX, MAXA, MAXIFS, MEDIAN, MID, MIN, MINA, MINIFS, MINUTE, MIRR, MMULT, MOD, MODE, MODEMULT, MODESNGL, MONTH, MROUND, MULTINOMIAL, MUNIT, N, NA, NEGBINOM, NEGBINOMDIST, NETWORKDAYS, NETWORKDAYSINTL, NETWORKDAYS_INTL, NEYNAR, NOMINAL, NORM, NORMDIST, NORMINV, NORMSDIST, NORMSINV, NOT, NOW, NPER, NPV, NUMBERVALUE, OCT2BIN, OCT2DEC, OCT2HEX, ODD, OR, PDURATION, PEARSON, PERCENTILE, PERCENTILEEXC, PERCENTILEINC, PERCENTRANK, PERCENTRANKEXC, PERCENTRANKINC, PERMUT, PERMUTATIONA, PHI, PI, PMT, PNL, POISSON, POISSONDIST, POWER, PPMT, PRICEDISC, PROB, PRODUCT, PROPER, PV, QUARTILE, QUARTILEEXC, QUARTILEINC, QUOTIENT, RADIANS, RAND, RANDBETWEEN, RANK, RANKAVG, RANKEQ, RATE, REPLACE, REPT, RIGHT, ROMAN, ROUND, ROUNDDOWN, ROUNDUP, ROW, ROWS, RRI, RSQ, SAFE, SEARCH, SEC, SECH, SECOND, SERIESSUM, SIGN, SIN, SINH, SKEW, SKEWP, SLN, SLOPE, SMALL, SORT, SQRT, SQRTPI, STANDARDIZE, STDEV, STDEVA, STDEVP, STDEVPA, STDEVS, STEYX, SUBSTITUTE, SUBTOTAL, SUM, SUMIF, SUMIFS, SUMPRODUCT, SUMSQ, SUMX2MY2, SUMX2PY2, SUMXMY2, SWITCH, SYD, T, TAN, TANH, TBILLEQ, TBILLPRICE, TBILLYIELD, TDIST, TDISTRT, TEXT, TEXTJOIN, TIME, TIMEVALUE, TINV, TODAY, TRANSPOSE, TREND, TRIM, TRIMMEAN, TRUE, TRUNC, TTEST, TYPE, UNICHAR, UNICODE, UNIQUE, UPPER, VALUE, VAR, VARA, VARP, VARPA, VARS, VLOOKUP, WEEKDAY, WEEKNUM, WEIBULL, WEIBULLDIST, WORKDAY, WORKDAYINTL, WORKDAY_INTL, XIRR, XNPV, XOR, YEAR, YEARFRAC, Z, ZTEST, _BLOCKSCOUT, utils };
13787
+ export { ABS, ACCRINT, ACOS, ACOSH, ACOT, ACOTH, AGGREGATE, AND, ARABIC, ASIN, ASINH, ATAN, ATAN2, ATANH, AVEDEV, AVERAGE, AVERAGEA, AVERAGEIF, AVERAGEIFS, BESSELI, BESSELJ, BESSELK, BESSELY, BETA, BETADIST, BETAINV, BIN2DEC, BIN2HEX, BIN2OCT, BINOM, BINOMDIST, BITAND, BITLSHIFT, BITOR, BITRSHIFT, BITXOR, BLOCKSCOUT, CEILING, CEILINGMATH, CEILINGPRECISE, CHAR, CHIDIST, CHIDISTRT, CHIINV, CHIINVRT, CHISQ, CHITEST, CHOOSE, CLEAN, CODE, COINGECKO, COLUMN, COLUMNS, COMBIN, COMBINA, COMPLEX, CONCAT, CONCATENATE, CONFIDENCE, CONVERT, CORREL, COS, COSH, COT, COTH, COUNT, COUNTA, COUNTBLANK, COUNTIF, COUNTIFS, COUPDAYS, COVAR, COVARIANCE, COVARIANCEP, COVARIANCES, CRITBINOM, CSC, CSCH, CUMIPMT, CUMPRINC, DATE, DATEDIF, DATEVALUE, DAVERAGE, DAY, DAYS, DAYS360, DB, DCOUNT, DCOUNTA, DDB, DEC2BIN, DEC2HEX, DEC2OCT, DECIMAL, DEGREES, DELTA, DEVSQ, DGET, DISC, DMAX, DMIN, DOLLAR, DOLLARDE, DOLLARFR, DPRODUCT, DSTDEV, DSTDEVP, DSUM, DVAR, DVARP, EDATE, EFFECT, EOA, EOMONTH, ERF, ERFC, ERFCPRECISE, ERFPRECISE, ERROR, ETHERSCAN, EVEN, EXACT, EXP, EXPON, EXPONDIST, F, FACT, FACTDOUBLE, FALSE, FDIST, FDISTRT, FIND, FINV, FINVRT, FIREFLY, FISHER, FISHERINV, FIXED, FLOOR, FLOORMATH, FLOORPRECISE, FLVURL, FORECAST, FREQUENCY, FTEST, FV, FVSCHEDULE, GAMMA, GAMMADIST, GAMMAINV, GAMMALN, GAMMALNPRECISE, GAUSS, GCD, GEOMEAN, GESTEP, GNOSIS, GNOSISPAY, GROWTH, HARMEAN, HEX2BIN, HEX2DEC, HEX2OCT, HLOOKUP, HOUR, HYPGEOM, HYPGEOMDIST, IF, IFERROR, IFNA, IFS, IMABS, IMAGINARY, IMARGUMENT, IMCONJUGATE, IMCOS, IMCOSH, IMCOT, IMCSC, IMCSCH, IMDIV, IMEXP, IMLN, IMLOG10, IMLOG2, IMPOWER, IMPRODUCT, IMREAL, IMSEC, IMSECH, IMSIN, IMSINH, IMSQRT, IMSUB, IMSUM, IMTAN, INDEX, INT, INTERCEPT, IPMT, IRR, ISBLANK, ISDATE, ISERR, ISERROR, ISEVEN, ISLOGICAL, ISNA, ISNONTEXT, ISNUMBER, ISO, ISODD, ISOWEEKNUM, ISPMT, ISTEXT, KURT, LARGE, LCM, LEFT, LEN, LINEST, LN, LOG, LOG10, LOGEST, LOGINV, LOGNORM, LOGNORMDIST, LOGNORMINV, LOOKUP, LOWER, MATCH, MAX, MAXA, MAXIFS, MEDIAN, MID, MIN, MINA, MINIFS, MINUTE, MIRR, MMULT, MOD, MODE, MODEMULT, MODESNGL, MONTH, MROUND, MULTINOMIAL, MUNIT, N, NA, NEGBINOM, NEGBINOMDIST, NETWORKDAYS, NETWORKDAYSINTL, NETWORKDAYS_INTL, NEYNAR, NOMINAL, NORM, NORMDIST, NORMINV, NORMSDIST, NORMSINV, NOT, NOW, NPER, NPV, NUMBERVALUE, OCT2BIN, OCT2DEC, OCT2HEX, ODD, OR, PDURATION, PEARSON, PERCENTILE, PERCENTILEEXC, PERCENTILEINC, PERCENTRANK, PERCENTRANKEXC, PERCENTRANKINC, PERMUT, PERMUTATIONA, PHI, PI, PMT, PNL, POISSON, POISSONDIST, POWER, PPMT, PRICEDISC, PROB, PRODUCT, PROPER, PV, QUARTILE, QUARTILEEXC, QUARTILEINC, QUOTIENT, RADIANS, RAND, RANDBETWEEN, RANK, RANKAVG, RANKEQ, RATE, REPLACE, REPT, RIGHT, ROMAN, ROUND, ROUNDDOWN, ROUNDUP, ROW, ROWS, RRI, RSQ, SAFE, SEARCH, SEC, SECH, SECOND, SERIESSUM, SIGN, SIN, SINH, SKEW, SKEWP, SLN, SLOPE, SMALL, SORT, SQRT, SQRTPI, STANDARDIZE, STDEV, STDEVA, STDEVP, STDEVPA, STDEVS, STEYX, SUBSTITUTE, SUBTOTAL, SUM, SUMIF, SUMIFS, SUMPRODUCT, SUMSQ, SUMX2MY2, SUMX2PY2, SUMXMY2, SWITCH, SYD, T, TAN, TANH, TBILLEQ, TBILLPRICE, TBILLYIELD, TDIST, TDISTRT, TEXT, TEXTJOIN, TIME, TIMEVALUE, TINV, TODAY, TRANSPOSE, TREND, TRIM, TRIMMEAN, TRUE, TRUNC, TTEST, TYPE, UNICHAR, UNICODE, UNIQUE, UPPER, VALUE, VAR, VARA, VARP, VARPA, VARS, VLOOKUP, WEEKDAY, WEEKNUM, WEIBULL, WEIBULLDIST, WORKDAY, WORKDAYINTL, WORKDAY_INTL, XIRR, XNPV, XOR, YEAR, YEARFRAC, Z, ZTEST, utils };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/formulajs",
3
- "version": "4.4.11-mod-38-patch-004",
3
+ "version": "4.4.11-mod-41",
4
4
  "description": "JavaScript implementation of most Microsoft Excel formula functions",
5
5
  "author": "Formulajs",
6
6
  "publishConfig": {
@@ -59,7 +59,6 @@
59
59
  "types": "tsc"
60
60
  },
61
61
  "dependencies": {
62
- "@fileverse-dev/formulajs": "^4.4.11-mod-23",
63
62
  "bessel": "^1.0.2",
64
63
  "esbuild": "^0.25.4",
65
64
  "js-sha3": "^0.9.3",
@@ -181,18 +181,6 @@ export function AVERAGEIF(range: any, criteria: any, average_range: any, ...args
181
181
  * @returns
182
182
  */
183
183
  export function AVERAGEIFS(...args: any[]): number;
184
- /**
185
- * Converts a number into a text representation with the given radix (base).
186
- *
187
- * Category: Math and trigonometry
188
- *
189
- * @param {*} number The number that you want to convert. Must be an integer greater than or equal to 0 and less than 2^53.
190
- * @param {*} radix The base radix that you want to convert the number into. Must be an integer greater than or equal to 2 and less than or equal to 36.
191
- * @param {*} min_length Optional. The minimum length of the returned string. Must be an integer greater than or equal to 0.
192
- * @returns
193
- */
194
- export function BASE(number: any, radix: any, min_length: any): any;
195
- export function BASESCAN(...args: any[]): Promise<any>;
196
184
  /**
197
185
  * Returns the modified Bessel function In(x).
198
186
  *
@@ -420,7 +408,7 @@ export function BITRSHIFT(number: any, shift_amount: any): number | Error;
420
408
  * @returns
421
409
  */
422
410
  export function BITXOR(number1: any, number2: any): number | Error;
423
- export function BLOCKSCOUT(...args: any[]): string;
411
+ export function BLOCKSCOUT(address: any, type: any, chain: any, startTimestamp: any, endTimestamp: any, page: any, offset: any): Promise<any>;
424
412
  /**
425
413
  * Rounds a number to the nearest integer or to the nearest multiple of significance.
426
414
  *
@@ -626,7 +614,7 @@ export function CLEAN(text: any): any;
626
614
  * @returns
627
615
  */
628
616
  export function CODE(text: any): any;
629
- export function COINGECKO(...args: any[]): Promise<string | {}[]>;
617
+ export function COINGECKO(category: any, param1: any, param2: any, page?: number, perPage?: number): Promise<string | {}[]>;
630
618
  /**
631
619
  * Returns the column number of a reference.
632
620
  *
@@ -1296,7 +1284,7 @@ export function EDATE(start_date: any, months: any): any;
1296
1284
  * @returns
1297
1285
  */
1298
1286
  export function EFFECT(nominal_rate: any, npery: any): number | Error;
1299
- export function EOA(...args: any[]): Promise<any>;
1287
+ export function EOA(addresses: any, category: any, chains: any, startTime: any, endTime: any, page?: number, offset?: number): Promise<any>;
1300
1288
  /**
1301
1289
  * Returns the serial number of the last day of the month before or after a specified number of months.
1302
1290
  *
@@ -1529,7 +1517,7 @@ export namespace FINV { }
1529
1517
  * @returns
1530
1518
  */
1531
1519
  export function FINVRT(probability: any, deg_freedom1: any, deg_freedom2: any, ...args: any[]): any;
1532
- export function FIREFLY(...args: any[]): Promise<any>;
1520
+ export function FIREFLY(platform: any, contentType: any, identifier: any, start?: number, end?: number): Promise<any>;
1533
1521
  /**
1534
1522
  * Returns the Fisher transformation.
1535
1523
  *
@@ -1791,7 +1779,14 @@ export function GEOMEAN(...args: any[]): any;
1791
1779
  * @returns
1792
1780
  */
1793
1781
  export function GESTEP(number: any, step: any): any;
1794
- export function GNOSISPAY(...args: any[]): Promise<string | {
1782
+ export function GNOSIS(...args: any[]): Promise<any>;
1783
+ export function GNOSISPAY({ cardId, startDate, endDate, limit, offset, }: {
1784
+ cardId: any;
1785
+ startDate: any;
1786
+ endDate: any;
1787
+ limit?: number;
1788
+ offset?: number;
1789
+ }): Promise<string | {
1795
1790
  createdAt: any;
1796
1791
  clearedAt: any;
1797
1792
  country: any;
@@ -1805,7 +1800,6 @@ export function GNOSISPAY(...args: any[]): Promise<string | {
1805
1800
  status: any;
1806
1801
  mcc: any;
1807
1802
  }[]>;
1808
- export function GNOSISSCAN(...args: any[]): Promise<any>;
1809
1803
  /**
1810
1804
  * Returns values along an exponential trend.
1811
1805
  *
@@ -2835,7 +2829,7 @@ export function NETWORKDAYSINTL(start_date: any, end_date: any, weekend: any, ho
2835
2829
  * @returns
2836
2830
  */
2837
2831
  export function NETWORKDAYS_INTL(start_date: any, end_date: any, weekend: any, holidays: any): number | Error;
2838
- export function NEYNAR(...args: any[]): Promise<any>;
2832
+ export function NEYNAR(fid: any, viewerFid: any, sortType: any, limit: any, cursor: any): Promise<any>;
2839
2833
  /**
2840
2834
  * Returns the annual nominal interest rate.
2841
2835
  *
@@ -3547,7 +3541,7 @@ export function RRI(nper: any, pv: any, fv: any): number | Error;
3547
3541
  * @returns
3548
3542
  */
3549
3543
  export function RSQ(known_y: any, known_x: any): number | Error;
3550
- export function SAFE(...args: any[]): Promise<any>;
3544
+ export function SAFE(address: any, utility: any, chain: any, limit: any, offset: any): Promise<any>;
3551
3545
  /**
3552
3546
  * Finds one text value within another (not case-sensitive)
3553
3547
  *
@@ -4472,7 +4466,6 @@ export namespace Z {
4472
4466
  * @returns
4473
4467
  */
4474
4468
  export function ZTEST(array: any, x: any, sigma: any): number | Error;
4475
- export function _BLOCKSCOUT(address: any, type: any, chain: any, startTimestamp: any, endTimestamp: any, page: any, offset: any): Promise<any>;
4476
4469
  export namespace utils {
4477
4470
  export { errors };
4478
4471
  export { symbols };
@@ -181,18 +181,6 @@ export function AVERAGEIF(range: any, criteria: any, average_range: any, ...args
181
181
  * @returns
182
182
  */
183
183
  export function AVERAGEIFS(...args: any[]): number;
184
- /**
185
- * Converts a number into a text representation with the given radix (base).
186
- *
187
- * Category: Math and trigonometry
188
- *
189
- * @param {*} number The number that you want to convert. Must be an integer greater than or equal to 0 and less than 2^53.
190
- * @param {*} radix The base radix that you want to convert the number into. Must be an integer greater than or equal to 2 and less than or equal to 36.
191
- * @param {*} min_length Optional. The minimum length of the returned string. Must be an integer greater than or equal to 0.
192
- * @returns
193
- */
194
- export function BASE(number: any, radix: any, min_length: any): any;
195
- export function BASESCAN(...args: any[]): Promise<any>;
196
184
  /**
197
185
  * Returns the modified Bessel function In(x).
198
186
  *
@@ -420,7 +408,7 @@ export function BITRSHIFT(number: any, shift_amount: any): number | Error;
420
408
  * @returns
421
409
  */
422
410
  export function BITXOR(number1: any, number2: any): number | Error;
423
- export function BLOCKSCOUT(...args: any[]): string;
411
+ export function BLOCKSCOUT(address: any, type: any, chain: any, startTimestamp: any, endTimestamp: any, page: any, offset: any): Promise<any>;
424
412
  /**
425
413
  * Rounds a number to the nearest integer or to the nearest multiple of significance.
426
414
  *
@@ -626,7 +614,7 @@ export function CLEAN(text: any): any;
626
614
  * @returns
627
615
  */
628
616
  export function CODE(text: any): any;
629
- export function COINGECKO(...args: any[]): Promise<string | {}[]>;
617
+ export function COINGECKO(category: any, param1: any, param2: any, page?: number, perPage?: number): Promise<string | {}[]>;
630
618
  /**
631
619
  * Returns the column number of a reference.
632
620
  *
@@ -1296,7 +1284,7 @@ export function EDATE(start_date: any, months: any): any;
1296
1284
  * @returns
1297
1285
  */
1298
1286
  export function EFFECT(nominal_rate: any, npery: any): number | Error;
1299
- export function EOA(...args: any[]): Promise<any>;
1287
+ export function EOA(addresses: any, category: any, chains: any, startTime: any, endTime: any, page?: number, offset?: number): Promise<any>;
1300
1288
  /**
1301
1289
  * Returns the serial number of the last day of the month before or after a specified number of months.
1302
1290
  *
@@ -1529,7 +1517,7 @@ export namespace FINV { }
1529
1517
  * @returns
1530
1518
  */
1531
1519
  export function FINVRT(probability: any, deg_freedom1: any, deg_freedom2: any, ...args: any[]): any;
1532
- export function FIREFLY(...args: any[]): Promise<any>;
1520
+ export function FIREFLY(platform: any, contentType: any, identifier: any, start?: number, end?: number): Promise<any>;
1533
1521
  /**
1534
1522
  * Returns the Fisher transformation.
1535
1523
  *
@@ -1791,7 +1779,14 @@ export function GEOMEAN(...args: any[]): any;
1791
1779
  * @returns
1792
1780
  */
1793
1781
  export function GESTEP(number: any, step: any): any;
1794
- export function GNOSISPAY(...args: any[]): Promise<string | {
1782
+ export function GNOSIS(...args: any[]): Promise<any>;
1783
+ export function GNOSISPAY({ cardId, startDate, endDate, limit, offset, }: {
1784
+ cardId: any;
1785
+ startDate: any;
1786
+ endDate: any;
1787
+ limit?: number;
1788
+ offset?: number;
1789
+ }): Promise<string | {
1795
1790
  createdAt: any;
1796
1791
  clearedAt: any;
1797
1792
  country: any;
@@ -1805,7 +1800,6 @@ export function GNOSISPAY(...args: any[]): Promise<string | {
1805
1800
  status: any;
1806
1801
  mcc: any;
1807
1802
  }[]>;
1808
- export function GNOSISSCAN(...args: any[]): Promise<any>;
1809
1803
  /**
1810
1804
  * Returns values along an exponential trend.
1811
1805
  *
@@ -2835,7 +2829,7 @@ export function NETWORKDAYSINTL(start_date: any, end_date: any, weekend: any, ho
2835
2829
  * @returns
2836
2830
  */
2837
2831
  export function NETWORKDAYS_INTL(start_date: any, end_date: any, weekend: any, holidays: any): number | Error;
2838
- export function NEYNAR(...args: any[]): Promise<any>;
2832
+ export function NEYNAR(fid: any, viewerFid: any, sortType: any, limit: any, cursor: any): Promise<any>;
2839
2833
  /**
2840
2834
  * Returns the annual nominal interest rate.
2841
2835
  *
@@ -3547,7 +3541,7 @@ export function RRI(nper: any, pv: any, fv: any): number | Error;
3547
3541
  * @returns
3548
3542
  */
3549
3543
  export function RSQ(known_y: any, known_x: any): number | Error;
3550
- export function SAFE(...args: any[]): Promise<any>;
3544
+ export function SAFE(address: any, utility: any, chain: any, limit: any, offset: any): Promise<any>;
3551
3545
  /**
3552
3546
  * Finds one text value within another (not case-sensitive)
3553
3547
  *
@@ -4472,7 +4466,6 @@ export namespace Z {
4472
4466
  * @returns
4473
4467
  */
4474
4468
  export function ZTEST(array: any, x: any, sigma: any): number | Error;
4475
- export function _BLOCKSCOUT(address: any, type: any, chain: any, startTimestamp: any, endTimestamp: any, page: any, offset: any): Promise<any>;
4476
4469
  export namespace utils {
4477
4470
  export { errors };
4478
4471
  export { symbols };