@fileverse-dev/dsheet 4.0.2-b → 4.0.2-c

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.
@@ -1,4 +1,4 @@
1
- import { E as a, S as n } from "./crypto-constants-CqpCRs86.js";
1
+ import { E as a, S as n } from "./crypto-constants-DSOiEk_l.js";
2
2
  const E = a, d = n, f = [
3
3
  {
4
4
  id: "0",
package/dist/constants.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as R, c as _, E as C, S as a, p as s } from "./constants-Cdz6oSCq.js";
1
+ import { a as R, c as _, E as C, S as a, p as s } from "./constants-CFEsdk0L.js";
2
2
  export {
3
3
  R as COLLAB_PRESENCE_COLORS,
4
4
  _ as ENS_PRESENCE_COLOR,
@@ -1,18 +1,18 @@
1
- var g = Object.create, u = Object.defineProperty, y = Object.getOwnPropertyDescriptor, f = Object.getOwnPropertyNames, b = Object.getPrototypeOf, x = Object.prototype.hasOwnProperty, m = (n, e) => function() {
2
- return e || (0, n[f(n)[0]])((e = { exports: {} }).exports, e), e.exports;
3
- }, A = (n, e, i, r) => {
1
+ var g = Object.create, u = Object.defineProperty, y = Object.getOwnPropertyDescriptor, h = Object.getOwnPropertyNames, b = Object.getPrototypeOf, x = Object.prototype.hasOwnProperty, d = (n, e) => function() {
2
+ return e || (0, n[h(n)[0]])((e = { exports: {} }).exports, e), e.exports;
3
+ }, C = (n, e, i, r) => {
4
4
  if (e && typeof e == "object" || typeof e == "function")
5
- for (let t of f(e))
5
+ for (let t of h(e))
6
6
  !x.call(n, t) && t !== i && u(n, t, { get: () => e[t], enumerable: !(r = y(e, t)) || r.enumerable });
7
7
  return n;
8
- }, E = (n, e, i) => (i = n != null ? g(b(n)) : {}, A(
8
+ }, A = (n, e, i) => (i = n != null ? g(b(n)) : {}, C(
9
9
  // If the importer is in node compatibility mode or this is not an ESM
10
10
  // file that has been converted to a CommonJS file using a Babel-
11
11
  // compatible transform (i.e. "__esModule" has not been set), then set
12
12
  // "default" to the CommonJS "module.exports" for node compatibility.
13
13
  u(i, "default", { value: n, enumerable: !0 }),
14
14
  n
15
- )), v = m({
15
+ )), O = d({
16
16
  "node_modules/jwt-decode/lib/atob.js"(n, e) {
17
17
  var i = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
18
18
  function r(a) {
@@ -24,22 +24,22 @@ var g = Object.create, u = Object.defineProperty, y = Object.getOwnPropertyDescr
24
24
  if (o.length % 4 == 1)
25
25
  throw new r("'atob' failed: The string to be decoded is not correctly encoded.");
26
26
  for (
27
- var s = 0, p, d, h = 0, c = "";
27
+ var s = 0, p, m, f = 0, c = "";
28
28
  // get next character
29
- d = o.charAt(h++);
29
+ m = o.charAt(f++);
30
30
  // character found in table? initialize bit storage and add its ascii value;
31
- ~d && (p = s % 4 ? p * 64 + d : d, // and if not first of each 4 characters,
31
+ ~m && (p = s % 4 ? p * 64 + m : m, // and if not first of each 4 characters,
32
32
  // convert the first 8 bits to one ascii character
33
33
  s++ % 4) ? c += String.fromCharCode(255 & p >> (-2 * s & 6)) : 0
34
34
  )
35
- d = i.indexOf(d);
35
+ m = i.indexOf(m);
36
36
  return c;
37
37
  }
38
38
  e.exports = typeof window < "u" && window.atob && window.atob.bind(window) || t;
39
39
  }
40
- }), C = m({
40
+ }), v = d({
41
41
  "node_modules/jwt-decode/lib/base64_url_decode.js"(n, e) {
42
- var i = v();
42
+ var i = O();
43
43
  function r(t) {
44
44
  return decodeURIComponent(i(t).replace(/(.)/g, function(a, o) {
45
45
  var s = o.charCodeAt(0).toString(16).toUpperCase();
@@ -67,9 +67,9 @@ var g = Object.create, u = Object.defineProperty, y = Object.getOwnPropertyDescr
67
67
  }
68
68
  };
69
69
  }
70
- }), O = m({
70
+ }), E = d({
71
71
  "node_modules/jwt-decode/lib/index.js"(n, e) {
72
- var i = C();
72
+ var i = v();
73
73
  function r(t) {
74
74
  this.message = t;
75
75
  }
@@ -85,9 +85,9 @@ var g = Object.create, u = Object.defineProperty, y = Object.getOwnPropertyDescr
85
85
  }
86
86
  }, e.exports.InvalidTokenError = r;
87
87
  }
88
- }), k = m({
88
+ }), k = d({
89
89
  "node_modules/jwt-check-expiration/src/index.js"(n, e) {
90
- var i = O(), r = (t) => {
90
+ var i = E(), r = (t) => {
91
91
  if (typeof t != "string" || !t) throw new Error("Invalid token provided");
92
92
  let a = !1;
93
93
  const { exp: o } = i(t);
@@ -95,7 +95,7 @@ var g = Object.create, u = Object.defineProperty, y = Object.getOwnPropertyDescr
95
95
  };
96
96
  e.exports.isJwtExpired = r;
97
97
  }
98
- }), M = {
98
+ }), W = {
99
99
  INVALID_API_KEY: "INVALID_API_KEY",
100
100
  RATE_LIMIT: "RATE_LIMIT",
101
101
  DEFAULT: "DEFAULT",
@@ -256,22 +256,23 @@ Pagination is supported for all except single-exchange derivatives.`,
256
256
  {
257
257
  name: "category",
258
258
  detail: 'Query type: "price", "market", "stablecoins", or "derivatives".',
259
- example: '"stablecoins"',
259
+ example: '"price"',
260
260
  require: "m"
261
261
  },
262
262
  {
263
263
  name: "param1",
264
- detail: `If "price" then - eg. "BTC", "ETH", OR any token on coingecko
264
+ detail: `If "price" then - CoinGecko coin ids, eg. "bitcoin", "ethereum", "bitcoin,ethereum" (not ticker symbols like "btc").
265
265
  If "market": one of "all", "base", "meme", "aiagents", "bitcoin", "ethereum", "hyperliquid", "pump", "solana".
266
266
  If "stablecoins": one of "all", "yield-bearing-stablecoins", "crypto-backed-stablecoin".
267
267
  If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-futures", "bybit" ).`,
268
- example: '"yield-bearing-stablecoins"',
268
+ example: '"bitcoin"',
269
269
  require: "m"
270
270
  },
271
271
  {
272
272
  name: "param2",
273
- detail: 'If "market" and "stablecoins" then eg. "1h", "24h", "7d", "14d", "30d", "200d", "1y".',
274
- example: '"1h,24h,7d"',
273
+ detail: `If "price" then vs currency (default "usd"), eg. "usd", "eur".
274
+ If "market" and "stablecoins" then eg. "1h", "24h", "7d", "14d", "30d", "200d", "1y".`,
275
+ example: '"usd"',
275
276
  require: "o"
276
277
  },
277
278
  {
@@ -283,6 +284,16 @@ If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-f
283
284
  }
284
285
  ],
285
286
  examples: [
287
+ {
288
+ title: "COINGECKO",
289
+ argumentString: '"price", "bitcoin"',
290
+ description: "returns the current Bitcoin price in USD (e.g. BITCOIN_USD)."
291
+ },
292
+ {
293
+ title: "COINGECKO",
294
+ argumentString: '"price", "bitcoin,ethereum", "usd"',
295
+ description: "returns current Bitcoin and Ethereum prices in USD."
296
+ },
286
297
  {
287
298
  title: "COINGECKO",
288
299
  argumentString: '"stablecoins", "yield-bearing-stablecoins", "1h,24h,7d"',
@@ -462,7 +473,7 @@ If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-f
462
473
  argumentString: '"gas"',
463
474
  description: "returns current gas price metrics for the Gnosis Chain."
464
475
  }]
465
- }, T = {
476
+ }, L = {
466
477
  API_KEY: l.Etherscan,
467
478
  LOGO: "https://etherscan.io/images/favicon3.ico",
468
479
  BRAND_COLOR: "#F6F7F8",
@@ -527,7 +538,7 @@ If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-f
527
538
  description: "returns the token transaction history for the address vitalik.eth on the Gnosis blockchain between January 1, 2024 and January 5, 2024."
528
539
  }
529
540
  ]
530
- }, L = {
541
+ }, T = {
531
542
  n: "PNL",
532
543
  t: 20,
533
544
  d: "Subtract each element from A column from B column and return the total sum.",
@@ -561,7 +572,7 @@ If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-f
561
572
  }]
562
573
  }, w = {
563
574
  API_KEY: l.Safe,
564
- LOGO: "https://safe.global/favicon.ico",
575
+ LOGO: "https://safe-transaction-mainnet.safe.global/static/safe/favicon.png",
565
576
  BRAND_COLOR: "#ebf9f3",
566
577
  BRAND_SECONDARY_COLOR: "#00B460",
567
578
  n: "SAFE",
@@ -602,18 +613,15 @@ If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-f
602
613
  repeat: "n"
603
614
  }
604
615
  ],
605
- examples: [
606
- {
607
- title: "SAFE",
608
- argumentString: '"0xe9A6378d8FD4983C2999DB0735f258397E8C2253", "txns", "gnosis", 10, 0',
609
- description: "returns the last 10 transactions for the specified Safe address on the Gnosis chain."
610
- },
611
- {
612
- title: "SAFE",
613
- argumentString: '"0x1234567890abcdef1234567890abcdef12345678", "txns", "ethereum"',
614
- description: "returns the last 100 transactions for the specified Safe address on the Ethereum chain."
615
- }
616
- ]
616
+ examples: [{
617
+ title: "SAFE",
618
+ argumentString: '"0xe9A6378d8FD4983C2999DB0735f258397E8C2253", "txns", "gnosis", 10, 0',
619
+ description: "returns the last 10 transactions for the specified Safe address on the Gnosis chain."
620
+ }, {
621
+ title: "SAFE",
622
+ argumentString: '"0x1234567890abcdef1234567890abcdef12345678", "txns", "ethereum"',
623
+ description: "returns the last 100 transactions for the specified Safe address on the Ethereum chain."
624
+ }]
617
625
  }, I = {
618
626
  LOGO: "https://cdn.prod.website-files.com/65f94dfd53db8b337c808067/68485baa72714ae58f350ce2_bs-logo.png",
619
627
  BRAND_COLOR: "#f8f8fd",
@@ -956,7 +964,7 @@ If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-f
956
964
  description: "returns the prices of ETH and BTC with 1-hour, 24-hour, and 168-hour (7-day) historical offsets."
957
965
  }
958
966
  ]
959
- }, W = {
967
+ }, K = {
960
968
  n: "WALLET",
961
969
  t: 20,
962
970
  d: "Query wallet balance and transactions",
@@ -1003,7 +1011,7 @@ If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-f
1003
1011
  description: "returns the latest balance for the address vitalik.eth on the Base chain."
1004
1012
  }
1005
1013
  ]
1006
- }, K = {
1014
+ }, Q = {
1007
1015
  n: "YIELD",
1008
1016
  t: 20,
1009
1017
  d: "Query yields",
@@ -1033,7 +1041,7 @@ If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-f
1033
1041
  argumentString: '"all"',
1034
1042
  description: "returns yield data for all categories."
1035
1043
  }]
1036
- }, Q = {
1044
+ }, M = {
1037
1045
  LOGO: "https://avatars.githubusercontent.com/u/159135534?s=200&v=4",
1038
1046
  n: "CIRCLES",
1039
1047
  t: 20,
@@ -1076,15 +1084,15 @@ If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-f
1076
1084
  argumentString: '"transactions", "0xe9A6378d8FD4983C2999DB0735f258397E8C2253", 5',
1077
1085
  description: "returns the last 5 transactions for the specified Circles address."
1078
1086
  }]
1079
- }, V = [
1087
+ }, j = [
1080
1088
  S,
1081
1089
  D,
1082
1090
  R,
1083
1091
  _,
1084
1092
  q,
1085
1093
  N,
1086
- T,
1087
1094
  L,
1095
+ T,
1088
1096
  w,
1089
1097
  I,
1090
1098
  B,
@@ -1093,62 +1101,62 @@ If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-f
1093
1101
  G,
1094
1102
  Y,
1095
1103
  U,
1096
- W,
1097
1104
  K,
1098
- Q
1105
+ Q,
1106
+ M,
1099
1107
  // GNOSISPAY_metadata,
1100
- /*{
1101
- LOGO: 'https://raw.githubusercontent.com/mritunjayz/github-storage/refs/heads/main/ploymarket.png',
1102
- n: 'POLYMARKET',
1108
+ {
1109
+ LOGO: "https://raw.githubusercontent.com/mritunjayz/github-storage/refs/heads/main/ploymarket.png",
1110
+ n: "POLYMARKET",
1103
1111
  t: 20,
1104
- d: 'Query prediction market positions, shares, and odds for future event outcomes on Polymarket. (Comming soon)',
1105
- a: 'Query prediction market positions, shares, and odds for future event outcomes on Polymarket. (Comming soon)',
1112
+ d: "Query prediction market positions, shares, and odds for future event outcomes on Polymarket. (Comming soon)",
1113
+ a: "Query prediction market positions, shares, and odds for future event outcomes on Polymarket. (Comming soon)",
1106
1114
  p: []
1107
1115
  },
1108
1116
  {
1109
- LOGO: 'https://raw.githubusercontent.com/mritunjayz/github-storage/refs/heads/main/privacy.png',
1110
- n: 'PRIVACYPOOL',
1117
+ LOGO: "https://raw.githubusercontent.com/mritunjayz/github-storage/refs/heads/main/privacy.png",
1118
+ n: "PRIVACYPOOL",
1111
1119
  t: 20,
1112
- d: 'Access deposit/withdraw stats and compliance-safe anonymized transfers using zk-based Privacy Pools. (Comming soon)',
1113
- a: 'Access deposit/withdraw stats and compliance-safe anonymized transfers using zk-based Privacy Pools. (Comming soon)',
1120
+ d: "Access deposit/withdraw stats and compliance-safe anonymized transfers using zk-based Privacy Pools. (Comming soon)",
1121
+ a: "Access deposit/withdraw stats and compliance-safe anonymized transfers using zk-based Privacy Pools. (Comming soon)",
1114
1122
  p: []
1115
1123
  },
1116
1124
  {
1117
- LOGO: 'https://raw.githubusercontent.com/mritunjayz/github-storage/refs/heads/main/rotki.png',
1118
- n: 'ROTKI',
1125
+ LOGO: "https://raw.githubusercontent.com/mritunjayz/github-storage/refs/heads/main/rotki.png",
1126
+ n: "ROTKI",
1119
1127
  t: 20,
1120
- d: 'Pull portfolio, asset, and tax-related data from Rotki for crypto accounting and reporting. (Comming soon)',
1121
- a: 'Pull portfolio, asset, and tax-related data from Rotki for crypto accounting and reporting. (Comming soon)',
1128
+ d: "Pull portfolio, asset, and tax-related data from Rotki for crypto accounting and reporting. (Comming soon)",
1129
+ a: "Pull portfolio, asset, and tax-related data from Rotki for crypto accounting and reporting. (Comming soon)",
1122
1130
  p: []
1123
1131
  },
1124
1132
  {
1125
- LOGO: 'https://raw.githubusercontent.com/mritunjayz/github-storage/refs/heads/main/meerkat.png',
1126
- n: 'MEERKAT',
1133
+ LOGO: "https://raw.githubusercontent.com/mritunjayz/github-storage/refs/heads/main/meerkat.png",
1134
+ n: "MEERKAT",
1127
1135
  t: 20,
1128
- d: 'Query onchain proofs for tickets, attendance, speaker roles, and reactions. (Comming soon)',
1129
- a: 'Query onchain proofs for tickets, attendance, speaker roles, and reactions. (Comming soon)',
1136
+ d: "Query onchain proofs for tickets, attendance, speaker roles, and reactions. (Comming soon)",
1137
+ a: "Query onchain proofs for tickets, attendance, speaker roles, and reactions. (Comming soon)",
1130
1138
  p: []
1131
1139
  },
1132
1140
  {
1133
- LOGO: 'https://raw.githubusercontent.com/mritunjayz/github-storage/refs/heads/main/artemis.png',
1134
- n: 'ARTEMIS',
1141
+ LOGO: "https://raw.githubusercontent.com/mritunjayz/github-storage/refs/heads/main/artemis.png",
1142
+ n: "ARTEMIS",
1135
1143
  t: 20,
1136
- d: 'Query onchain financial metrics, developer activity, and market insights across protocols and sectors. (Comming soon)',
1137
- a: 'Query onchain financial metrics, developer activity, and market insights across protocols and sectors. (Comming soon)',
1144
+ d: "Query onchain financial metrics, developer activity, and market insights across protocols and sectors. (Comming soon)",
1145
+ a: "Query onchain financial metrics, developer activity, and market insights across protocols and sectors. (Comming soon)",
1138
1146
  p: []
1139
1147
  },
1140
1148
  {
1141
- LOGO: 'https://raw.githubusercontent.com/mritunjayz/github-storage/refs/heads/main/MYANIMELIST.png',
1142
- n: 'MYANIMELIST',
1149
+ LOGO: "https://raw.githubusercontent.com/mritunjayz/github-storage/refs/heads/main/MYANIMELIST.png",
1150
+ n: "MYANIMELIST",
1143
1151
  t: 20,
1144
- d: 'Kawaiii, comming soon. Hello Keith! (Comming soon)',
1145
- a: 'Kawaiii, comming soon. Hello Keith! (Comming soon)',
1152
+ d: "Kawaiii, comming soon. Hello Keith! (Comming soon)",
1153
+ a: "Kawaiii, comming soon. Hello Keith! (Comming soon)",
1146
1154
  p: []
1147
- }*/
1155
+ }
1148
1156
  ];
1149
- E(k());
1157
+ A(k());
1150
1158
  export {
1151
- M as E,
1152
- V as F,
1159
+ W as E,
1160
+ j as F,
1153
1161
  l as S
1154
1162
  };
@@ -4,7 +4,7 @@ var Xe = (e, t, n) => rc(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import h, { isPlainObject as Hi } from "lodash";
5
5
  import Ce from "dayjs";
6
6
  import * as Jr from "@fileverse-dev/formulajs";
7
- import { F as ac } from "./crypto-constants-CqpCRs86.js";
7
+ import { F as ac } from "./crypto-constants-DSOiEk_l.js";
8
8
  var oc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
9
9
  function As(e) {
10
10
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
package/dist/formula.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { FLVURL as r } from "@fileverse-dev/formulajs";
2
- import { e as t, f } from "./executeStringFunction-BhJfh6Uc.js";
2
+ import { e as t, f } from "./executeStringFunction-BgeO46PB.js";
3
3
  export {
4
4
  r as FLVURL,
5
5
  t as executeStringFunction,