@fileverse-dev/formulajs 4.4.44-a → 4.4.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
|
@@ -17696,17 +17696,16 @@ const aaveParamsSchema = objectType({
|
|
|
17696
17696
|
graphType: enumType(['v2','v2-raw']),
|
|
17697
17697
|
category: enumType(['tokens','markets']),
|
|
17698
17698
|
param1: stringType().nonempty(),
|
|
17699
|
-
param2: stringType().optional(),
|
|
17700
17699
|
columnName: stringType().optional(),
|
|
17701
17700
|
});
|
|
17702
17701
|
|
|
17703
17702
|
async function AAVE() {
|
|
17704
17703
|
try {
|
|
17705
17704
|
|
|
17706
|
-
const [graphType, category, param1,
|
|
17705
|
+
const [graphType, category, param1, columnName] = argsToArray(arguments);
|
|
17707
17706
|
|
|
17708
17707
|
|
|
17709
|
-
validateParams(aaveParamsSchema, { graphType, category, param1,
|
|
17708
|
+
validateParams(aaveParamsSchema, { graphType, category, param1, columnName });
|
|
17710
17709
|
|
|
17711
17710
|
const baseUrl = 'https://onchain-proxy.fileverse.io/third-party';
|
|
17712
17711
|
const url =
|
|
@@ -17714,8 +17713,7 @@ async function AAVE() {
|
|
|
17714
17713
|
`?service=aave` +
|
|
17715
17714
|
`&graphType=${encodeURIComponent(graphType)}` +
|
|
17716
17715
|
`&category=${encodeURIComponent(category)}` +
|
|
17717
|
-
`&input1=${encodeURIComponent(param1)}
|
|
17718
|
-
(param2 ? `&input2=${encodeURIComponent(param2)}` : '');
|
|
17716
|
+
`&input1=${encodeURIComponent(param1)}`;
|
|
17719
17717
|
|
|
17720
17718
|
const res = await fetch(url);
|
|
17721
17719
|
if (!res.ok) {
|
package/lib/esm/index.mjs
CHANGED
|
@@ -17694,17 +17694,16 @@ const aaveParamsSchema = objectType({
|
|
|
17694
17694
|
graphType: enumType(['v2','v2-raw']),
|
|
17695
17695
|
category: enumType(['tokens','markets']),
|
|
17696
17696
|
param1: stringType().nonempty(),
|
|
17697
|
-
param2: stringType().optional(),
|
|
17698
17697
|
columnName: stringType().optional(),
|
|
17699
17698
|
});
|
|
17700
17699
|
|
|
17701
17700
|
async function AAVE() {
|
|
17702
17701
|
try {
|
|
17703
17702
|
|
|
17704
|
-
const [graphType, category, param1,
|
|
17703
|
+
const [graphType, category, param1, columnName] = argsToArray(arguments);
|
|
17705
17704
|
|
|
17706
17705
|
|
|
17707
|
-
validateParams(aaveParamsSchema, { graphType, category, param1,
|
|
17706
|
+
validateParams(aaveParamsSchema, { graphType, category, param1, columnName });
|
|
17708
17707
|
|
|
17709
17708
|
const baseUrl = 'https://onchain-proxy.fileverse.io/third-party';
|
|
17710
17709
|
const url =
|
|
@@ -17712,8 +17711,7 @@ async function AAVE() {
|
|
|
17712
17711
|
`?service=aave` +
|
|
17713
17712
|
`&graphType=${encodeURIComponent(graphType)}` +
|
|
17714
17713
|
`&category=${encodeURIComponent(category)}` +
|
|
17715
|
-
`&input1=${encodeURIComponent(param1)}
|
|
17716
|
-
(param2 ? `&input2=${encodeURIComponent(param2)}` : '');
|
|
17714
|
+
`&input1=${encodeURIComponent(param1)}`;
|
|
17717
17715
|
|
|
17718
17716
|
const res = await fetch(url);
|
|
17719
17717
|
if (!res.ok) {
|