@fileverse-dev/formulajs 4.4.11-mod-86 → 4.4.11-mod-86-patch-2

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
@@ -18466,23 +18466,23 @@ const smartContractSchema = arrayType(anyType())
18466
18466
  }
18467
18467
  );
18468
18468
 
18469
- function SMARTCONTRACT(){
18469
+ async function SMARTCONTRACT(){
18470
18470
  try {
18471
- const [contractName, functionName, ...args] = argsToArray(arguments);
18472
-
18473
- validateParams(smartContractSchema, [
18474
- contractName,
18475
- functionName,
18476
- ...args
18477
- ]);
18471
+ const [contractName, functionName, ...args] = argsToArray(arguments);
18478
18472
 
18473
+ validateParams(smartContractSchema, [
18474
+ contractName,
18475
+ functionName,
18476
+ ...args
18477
+ ]);
18478
+
18479
18479
 
18480
- return {
18481
- contractName,
18482
- functionName,
18483
- args,
18484
- responseType: 'smart-contract'
18485
- }
18480
+ return {
18481
+ contractName,
18482
+ functionName,
18483
+ args,
18484
+ responseType: 'smart-contract'
18485
+ }
18486
18486
  } catch (error) {
18487
18487
  return errorMessageHandler(error, 'SMARTCONTRACT')
18488
18488
  }
@@ -705,7 +705,7 @@ var SMARTCONTRACT_metadata = {
705
705
  {
706
706
  name: "...functionArgs",
707
707
  detail: "Optional arguments to pass to the contract function.",
708
- example: '1, "0xabc...", true',
708
+ example: '1, "0xabc..."',
709
709
  require: "o",
710
710
  type: "any"
711
711
  }
package/lib/esm/index.mjs CHANGED
@@ -18464,23 +18464,23 @@ const smartContractSchema = arrayType(anyType())
18464
18464
  }
18465
18465
  );
18466
18466
 
18467
- function SMARTCONTRACT(){
18467
+ async function SMARTCONTRACT(){
18468
18468
  try {
18469
- const [contractName, functionName, ...args] = argsToArray(arguments);
18470
-
18471
- validateParams(smartContractSchema, [
18472
- contractName,
18473
- functionName,
18474
- ...args
18475
- ]);
18469
+ const [contractName, functionName, ...args] = argsToArray(arguments);
18476
18470
 
18471
+ validateParams(smartContractSchema, [
18472
+ contractName,
18473
+ functionName,
18474
+ ...args
18475
+ ]);
18476
+
18477
18477
 
18478
- return {
18479
- contractName,
18480
- functionName,
18481
- args,
18482
- responseType: 'smart-contract'
18483
- }
18478
+ return {
18479
+ contractName,
18480
+ functionName,
18481
+ args,
18482
+ responseType: 'smart-contract'
18483
+ }
18484
18484
  } catch (error) {
18485
18485
  return errorMessageHandler(error, 'SMARTCONTRACT')
18486
18486
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/formulajs",
3
- "version": "4.4.11-mod-86",
3
+ "version": "4.4.11-mod-86-patch-2",
4
4
  "description": "JavaScript implementation of most Microsoft Excel formula functions",
5
5
  "author": "Formulajs",
6
6
  "publishConfig": {
@@ -3775,7 +3775,7 @@ export function SLOPE(known_y: any, known_x: any): number | Error;
3775
3775
  * @returns
3776
3776
  */
3777
3777
  export function SMALL(array: any, k: any): any;
3778
- export function SMARTCONTRACT(...args: any[]): {
3778
+ export function SMARTCONTRACT(...args: any[]): Promise<{
3779
3779
  message: string;
3780
3780
  functionName: any;
3781
3781
  type: string;
@@ -3798,7 +3798,7 @@ export function SMARTCONTRACT(...args: any[]): {
3798
3798
  functionName: any;
3799
3799
  args: any[];
3800
3800
  responseType: string;
3801
- };
3801
+ }>;
3802
3802
  /**
3803
3803
  * Returns a sorted array of the elements in an array. The returned array is the same shape as the provided array argument.
3804
3804
  *
@@ -3775,7 +3775,7 @@ export function SLOPE(known_y: any, known_x: any): number | Error;
3775
3775
  * @returns
3776
3776
  */
3777
3777
  export function SMALL(array: any, k: any): any;
3778
- export function SMARTCONTRACT(...args: any[]): {
3778
+ export function SMARTCONTRACT(...args: any[]): Promise<{
3779
3779
  message: string;
3780
3780
  functionName: any;
3781
3781
  type: string;
@@ -3798,7 +3798,7 @@ export function SMARTCONTRACT(...args: any[]): {
3798
3798
  functionName: any;
3799
3799
  args: any[];
3800
3800
  responseType: string;
3801
- };
3801
+ }>;
3802
3802
  /**
3803
3803
  * Returns a sorted array of the elements in an array. The returned array is the same shape as the provided array argument.
3804
3804
  *