@fileverse-dev/formulajs 4.4.41-example-4 → 4.4.42-yield

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
@@ -19487,17 +19487,18 @@ async function WALLET() {
19487
19487
  // WALLET("0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045", "ethereum", "balance").then(console.log)
19488
19488
 
19489
19489
  const yieldParamsSchema = objectType({
19490
- category: enumType(['all', 'stablecoins'])
19490
+ category: enumType(['all', 'stablecoins']),
19491
+ columnName: stringType().optional(),
19491
19492
  });
19492
19493
 
19493
19494
  async function YIELD () {
19494
19495
 
19495
19496
  try {
19496
- const [category] = argsToArray(arguments);
19497
+ const [category, columnName = null] = argsToArray(arguments);
19497
19498
 
19498
- validateParams(yieldParamsSchema, { category });
19499
+ validateParams(yieldParamsSchema, { category, columnName });
19499
19500
 
19500
- const response = await DEFILLAMA('yields');
19501
+ const response = await DEFILLAMA('yields', columnName);
19501
19502
 
19502
19503
  if(response.functionName){
19503
19504
  response.functionName = 'YIELD';
package/lib/esm/index.mjs CHANGED
@@ -19485,17 +19485,18 @@ async function WALLET() {
19485
19485
  // WALLET("0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045", "ethereum", "balance").then(console.log)
19486
19486
 
19487
19487
  const yieldParamsSchema = objectType({
19488
- category: enumType(['all', 'stablecoins'])
19488
+ category: enumType(['all', 'stablecoins']),
19489
+ columnName: stringType().optional(),
19489
19490
  });
19490
19491
 
19491
19492
  async function YIELD () {
19492
19493
 
19493
19494
  try {
19494
- const [category] = argsToArray(arguments);
19495
+ const [category, columnName = null] = argsToArray(arguments);
19495
19496
 
19496
- validateParams(yieldParamsSchema, { category });
19497
+ validateParams(yieldParamsSchema, { category, columnName });
19497
19498
 
19498
- const response = await DEFILLAMA('yields');
19499
+ const response = await DEFILLAMA('yields', columnName);
19499
19500
 
19500
19501
  if(response.functionName){
19501
19502
  response.functionName = 'YIELD';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/formulajs",
3
- "version": "4.4.41-example-4",
3
+ "version": "4.4.42-yield",
4
4
  "description": "JavaScript implementation of most Microsoft Excel formula functions",
5
5
  "author": "Formulajs",
6
6
  "publishConfig": {