@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/browser/formula.js +105 -86
- package/lib/browser/formula.min.js +2 -2
- package/lib/browser/formula.min.js.map +1 -1
- package/lib/cjs/index.cjs +14 -14
- package/lib/esm/crypto-constants.mjs +1 -1
- package/lib/esm/index.mjs +14 -14
- package/package.json +1 -1
- package/types/cjs/index.d.cts +2 -2
- package/types/esm/index.d.mts +2 -2
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
|
-
|
|
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
|
-
|
|
18481
|
-
|
|
18482
|
-
|
|
18483
|
-
|
|
18484
|
-
|
|
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
|
}
|
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
|
-
|
|
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
|
-
|
|
18479
|
-
|
|
18480
|
-
|
|
18481
|
-
|
|
18482
|
-
|
|
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
package/types/cjs/index.d.cts
CHANGED
|
@@ -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
|
*
|
package/types/esm/index.d.mts
CHANGED
|
@@ -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
|
*
|