@fileverse-dev/dsheet 1.2.78-yield → 1.2.78-yield-a

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.
Files changed (2) hide show
  1. package/dist/index.es.js +13 -5
  2. package/package.json +3 -3
package/dist/index.es.js CHANGED
@@ -12208,6 +12208,13 @@ If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-f
12208
12208
  example: '"stablecoins"',
12209
12209
  require: "m",
12210
12210
  type: "string"
12211
+ },
12212
+ {
12213
+ name: "columnsName",
12214
+ detail: "Filter columns by name in output. Comma separated list.",
12215
+ example: '"id,address"',
12216
+ require: "o",
12217
+ type: "string"
12211
12218
  }
12212
12219
  ],
12213
12220
  examples: [{
@@ -75642,7 +75649,7 @@ function kw(e) {
75642
75649
  }
75643
75650
  async function w2e() {
75644
75651
  try {
75645
- const [e, t, r, i, n, a = 1, l = 10, c = null] = Gi(arguments);
75652
+ const [e, t, r, i, n, a = 1, l = 10, c] = Gi(arguments);
75646
75653
  D0(m2e, { addresses: e, category: t, chains: r, startTime: i, endTime: n, page: a, offset: l, columnName: c });
75647
75654
  const f = window.localStorage.getItem(Hi.Etherscan), s = e.split(",").map((p) => p.trim()).filter(Boolean), o = r.split(",").map((p) => p.trim()).filter(Boolean), u = {};
75648
75655
  for (const p of s)
@@ -75876,7 +75883,7 @@ const E2e = ["1h", "24h", "7d", "14d", "30d", "200d", "1y"], kH = En().refine((e
75876
75883
  async function N2e() {
75877
75884
  var e, t;
75878
75885
  try {
75879
- const [r, i, n, a = null] = Gi(arguments);
75886
+ const [r, i, n, a] = Gi(arguments);
75880
75887
  D0(R2e, { category: r, param1: i, param2: n, columnName: a });
75881
75888
  const c = {
75882
75889
  accept: "application/json",
@@ -75940,7 +75947,7 @@ const I2e = ["protocols", "yields", "dex", "fees"], B2e = Wi({
75940
75947
  };
75941
75948
  async function CH() {
75942
75949
  try {
75943
- const [e, t = null] = Gi(arguments);
75950
+ const [e, t] = Gi(arguments);
75944
75951
  D0(B2e, { category: e, columnName: t });
75945
75952
  const r = O2e[e];
75946
75953
  if (!r) throw new ml(`Invalid category: ${e}`);
@@ -75961,6 +75968,7 @@ async function CH() {
75961
75968
  }
75962
75969
  const a = t == null ? void 0 : t.split(",").map((l) => l.trim());
75963
75970
  return (Array.isArray(n) ? n : [n]).map((l) => {
75971
+ if (!a) return l;
75964
75972
  const c = {};
75965
75973
  for (const [f, s] of Object.entries(l))
75966
75974
  t && a.includes(f) && (s === null || typeof s != "object") && (c[f] = s);
@@ -75989,7 +75997,7 @@ const j2e = Wi({
75989
75997
  }), q2e = Rg("type", [j2e, P2e]);
75990
75998
  async function z2e() {
75991
75999
  try {
75992
- const [e, t, r, i, n, a = 1, l = 10, c = null] = Gi(arguments);
76000
+ const [e, t, r, i, n, a = 1, l = 10, c] = Gi(arguments);
75993
76001
  D0(q2e, { type: e, chain: t, address: r, startDate: i, endDate: n, page: a, limit: l, columnName: c });
75994
76002
  const f = Fg[t];
75995
76003
  if (!f) throw new ml(`Invalid chain: ${t}`);
@@ -76590,7 +76598,7 @@ const xme = Wi({
76590
76598
  });
76591
76599
  async function kme() {
76592
76600
  try {
76593
- const [e, t = null] = Gi(arguments);
76601
+ const [e, t] = Gi(arguments);
76594
76602
  D0(xme, { category: e, columnName: t });
76595
76603
  const r = await CH("yields", t);
76596
76604
  return r.functionName ? (r.functionName = "YIELD", r) : e === "all" ? r : r.filter((n) => n.stablecoin);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/dsheet",
3
3
  "private": false,
4
4
  "description": "DSheet",
5
- "version": "1.2.78-yield",
5
+ "version": "1.2.78-yield-a",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {
@@ -34,8 +34,8 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@fileverse-dev/dsheets-templates": "^0.0.29",
37
- "@fileverse-dev/formulajs": "4.4.42-yield",
38
- "@fileverse-dev/fortune-react": "1.2.81-yield",
37
+ "@fileverse-dev/formulajs": "4.4.42-yield-a",
38
+ "@fileverse-dev/fortune-react": "1.2.81-yield-a",
39
39
  "@fileverse/ui": "^4.1.7-patch-40",
40
40
  "classnames": "^2.5.1",
41
41
  "exceljs": "^4.4.0",