@fileverse-dev/formulajs 4.4.43 → 4.4.44-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.
package/lib/cjs/index.cjs
CHANGED
|
@@ -18470,7 +18470,7 @@ async function DEFILLAMA() {
|
|
|
18470
18470
|
const filterColumnName = columnName?.split(',').map(s => s.trim());
|
|
18471
18471
|
|
|
18472
18472
|
return (Array.isArray(json) ? json : [json]).map(item => {
|
|
18473
|
-
if (!
|
|
18473
|
+
if (!columnName) return item
|
|
18474
18474
|
const out = {};
|
|
18475
18475
|
for (const [k, v] of Object.entries(item)) {
|
|
18476
18476
|
if ((columnName && filterColumnName.includes(k)) && (v === null || typeof v !== 'object')) out[k] = v;
|
|
@@ -19014,6 +19014,7 @@ async function UNISWAP() {
|
|
|
19014
19014
|
if (Array.isArray(json)) {
|
|
19015
19015
|
// flatten nested
|
|
19016
19016
|
return json.map(item => {
|
|
19017
|
+
if (!columnName) return item;
|
|
19017
19018
|
const flat = {};
|
|
19018
19019
|
Object.entries(item).forEach(([k, v]) => {
|
|
19019
19020
|
if ((columnName && filterColumnName.includes(k)) && (v === null || typeof v !== 'object')) flat[k] = v;
|
|
@@ -240,7 +240,7 @@ var EOA_metadata = {
|
|
|
240
240
|
{
|
|
241
241
|
name: "columnsName",
|
|
242
242
|
detail: "Filter columns by name in output. Comma separated list.",
|
|
243
|
-
example: `"
|
|
243
|
+
example: `"address,blockNumber"`,
|
|
244
244
|
require: "o",
|
|
245
245
|
type: "string"
|
|
246
246
|
}
|
|
@@ -344,7 +344,7 @@ If "derivatives": exchange name (e.g., "binance_futures", "hyperliquid", "weex-f
|
|
|
344
344
|
{
|
|
345
345
|
name: "columnsName",
|
|
346
346
|
detail: "Filter columns by name in output. Comma separated list.",
|
|
347
|
-
example: `"id,
|
|
347
|
+
example: `"id,symbol"`,
|
|
348
348
|
require: "o",
|
|
349
349
|
type: "string"
|
|
350
350
|
}
|
|
@@ -384,7 +384,7 @@ var DEFILLAMA_metadata = {
|
|
|
384
384
|
{
|
|
385
385
|
name: "columnsName",
|
|
386
386
|
detail: "Filter columns by name in output. Comma separated list.",
|
|
387
|
-
example: `"
|
|
387
|
+
example: `"name,address"`,
|
|
388
388
|
require: "o",
|
|
389
389
|
type: "string"
|
|
390
390
|
}
|
|
@@ -456,7 +456,7 @@ var BASE_metadata = {
|
|
|
456
456
|
{
|
|
457
457
|
name: "columnsName",
|
|
458
458
|
detail: "Filter columns by name in output. Comma separated list.",
|
|
459
|
-
example: `"
|
|
459
|
+
example: `"blockNumber,timeStamp"`,
|
|
460
460
|
require: "o",
|
|
461
461
|
type: "string"
|
|
462
462
|
}
|
|
@@ -589,7 +589,7 @@ var ETHERSCAN_metadata = {
|
|
|
589
589
|
{
|
|
590
590
|
name: "columnsName",
|
|
591
591
|
detail: "Filter columns by name in output. Comma separated list.",
|
|
592
|
-
example: `"
|
|
592
|
+
example: `"blockNumber,timeStamp"`,
|
|
593
593
|
require: "o",
|
|
594
594
|
type: "string"
|
|
595
595
|
}
|
|
@@ -805,7 +805,7 @@ var AAVE_metadata = {
|
|
|
805
805
|
{
|
|
806
806
|
name: "columnsName",
|
|
807
807
|
detail: "Filter columns by name in output. Comma separated list.",
|
|
808
|
-
example: `"
|
|
808
|
+
example: `"id,name"`,
|
|
809
809
|
require: "o",
|
|
810
810
|
type: "string"
|
|
811
811
|
}
|
|
@@ -1268,7 +1268,7 @@ var YIELD_metadata = {
|
|
|
1268
1268
|
{
|
|
1269
1269
|
name: "columnsName",
|
|
1270
1270
|
detail: "Filter columns by name in output. Comma separated list.",
|
|
1271
|
-
example: `"
|
|
1271
|
+
example: `"project,symbol"`,
|
|
1272
1272
|
require: "o",
|
|
1273
1273
|
type: "string"
|
|
1274
1274
|
}
|
|
@@ -1314,7 +1314,7 @@ var CIRCLES_metadata = {
|
|
|
1314
1314
|
{
|
|
1315
1315
|
name: "columnsName",
|
|
1316
1316
|
detail: "Filter columns by name in output. Comma separated list.",
|
|
1317
|
-
example: `"
|
|
1317
|
+
example: `"address"`,
|
|
1318
1318
|
require: "o",
|
|
1319
1319
|
type: "string"
|
|
1320
1320
|
}
|
package/lib/esm/index.mjs
CHANGED
|
@@ -18468,7 +18468,7 @@ async function DEFILLAMA() {
|
|
|
18468
18468
|
const filterColumnName = columnName?.split(',').map(s => s.trim());
|
|
18469
18469
|
|
|
18470
18470
|
return (Array.isArray(json) ? json : [json]).map(item => {
|
|
18471
|
-
if (!
|
|
18471
|
+
if (!columnName) return item
|
|
18472
18472
|
const out = {};
|
|
18473
18473
|
for (const [k, v] of Object.entries(item)) {
|
|
18474
18474
|
if ((columnName && filterColumnName.includes(k)) && (v === null || typeof v !== 'object')) out[k] = v;
|
|
@@ -19012,6 +19012,7 @@ async function UNISWAP() {
|
|
|
19012
19012
|
if (Array.isArray(json)) {
|
|
19013
19013
|
// flatten nested
|
|
19014
19014
|
return json.map(item => {
|
|
19015
|
+
if (!columnName) return item;
|
|
19015
19016
|
const flat = {};
|
|
19016
19017
|
Object.entries(item).forEach(([k, v]) => {
|
|
19017
19018
|
if ((columnName && filterColumnName.includes(k)) && (v === null || typeof v !== 'object')) flat[k] = v;
|