@fileverse-dev/formulajs 4.4.11-mod-66 → 4.4.11-mod-68
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 +6477 -1241
- package/lib/browser/formula.min.js +2 -2
- package/lib/browser/formula.min.js.map +1 -1
- package/lib/cjs/index.cjs +4914 -645
- package/lib/esm/crypto-constants.mjs +36 -52
- package/lib/esm/index.mjs +4915 -645
- package/package.json +7 -4
- package/types/cjs/index.d.cts +101 -25
- package/types/esm/index.d.mts +101 -25
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fileverse-dev/formulajs",
|
|
3
|
-
"version": "4.4.11-mod-
|
|
3
|
+
"version": "4.4.11-mod-68",
|
|
4
4
|
"description": "JavaScript implementation of most Microsoft Excel formula functions",
|
|
5
5
|
"author": "Formulajs",
|
|
6
6
|
"publishConfig": {
|
|
@@ -56,13 +56,15 @@
|
|
|
56
56
|
"test:browser": "mocha --recursive --reporter mochawesome",
|
|
57
57
|
"test:coverage": "c8 mocha --recursive",
|
|
58
58
|
"test:watch": "mocha --recursive --watch --parallel --reporter min",
|
|
59
|
-
"types": "tsc"
|
|
59
|
+
"types": "tsc",
|
|
60
|
+
"test:crypto": "npx mocha 'test/crypto-functions/**/*.js' --recursive"
|
|
60
61
|
},
|
|
61
62
|
"dependencies": {
|
|
62
63
|
"bessel": "^1.0.2",
|
|
63
64
|
"esbuild": "^0.25.4",
|
|
64
65
|
"js-sha3": "^0.9.3",
|
|
65
|
-
"jstat": "^1.9.6"
|
|
66
|
+
"jstat": "^1.9.6",
|
|
67
|
+
"zod": "^3.25.71"
|
|
66
68
|
},
|
|
67
69
|
"devDependencies": {
|
|
68
70
|
"@babel/preset-env": "^7.27.2",
|
|
@@ -76,10 +78,11 @@
|
|
|
76
78
|
"eslint": "^9.26.0",
|
|
77
79
|
"globals": "^16.1.0",
|
|
78
80
|
"jsdom": "^26.1.0",
|
|
79
|
-
"mocha": "^11.
|
|
81
|
+
"mocha": "^11.7.1",
|
|
80
82
|
"mochawesome": "^7.1.3",
|
|
81
83
|
"prettier": "^3.5.3",
|
|
82
84
|
"rollup": "^4.40.2",
|
|
85
|
+
"sinon": "^21.0.0",
|
|
83
86
|
"typescript": "^5.8.3"
|
|
84
87
|
}
|
|
85
88
|
}
|
package/types/cjs/index.d.cts
CHANGED
|
@@ -627,7 +627,25 @@ export function CLEAN(text: any): any;
|
|
|
627
627
|
* @returns
|
|
628
628
|
*/
|
|
629
629
|
export function CODE(text: any): any;
|
|
630
|
-
export function COINGECKO(
|
|
630
|
+
export function COINGECKO(...args: any[]): Promise<{
|
|
631
|
+
message: string;
|
|
632
|
+
functionName: any;
|
|
633
|
+
type: string;
|
|
634
|
+
apiKeyName?: undefined;
|
|
635
|
+
reason?: undefined;
|
|
636
|
+
} | {
|
|
637
|
+
message: string;
|
|
638
|
+
functionName: any;
|
|
639
|
+
type: string;
|
|
640
|
+
apiKeyName: any;
|
|
641
|
+
reason?: undefined;
|
|
642
|
+
} | {
|
|
643
|
+
message: string;
|
|
644
|
+
functionName: any;
|
|
645
|
+
type: string;
|
|
646
|
+
reason: any;
|
|
647
|
+
apiKeyName?: undefined;
|
|
648
|
+
} | {}[]>;
|
|
631
649
|
/**
|
|
632
650
|
* Returns the column number of a reference.
|
|
633
651
|
*
|
|
@@ -1107,7 +1125,25 @@ export function DEC2OCT(number: any, places: any): any;
|
|
|
1107
1125
|
* @returns
|
|
1108
1126
|
*/
|
|
1109
1127
|
export function DECIMAL(text: any, radix: any, ...args: any[]): any;
|
|
1110
|
-
export function DEFILLAMA(...args: any[]): Promise<
|
|
1128
|
+
export function DEFILLAMA(...args: any[]): Promise<{
|
|
1129
|
+
message: string;
|
|
1130
|
+
functionName: any;
|
|
1131
|
+
type: string;
|
|
1132
|
+
apiKeyName?: undefined;
|
|
1133
|
+
reason?: undefined;
|
|
1134
|
+
} | {
|
|
1135
|
+
message: string;
|
|
1136
|
+
functionName: any;
|
|
1137
|
+
type: string;
|
|
1138
|
+
apiKeyName: any;
|
|
1139
|
+
reason?: undefined;
|
|
1140
|
+
} | {
|
|
1141
|
+
message: string;
|
|
1142
|
+
functionName: any;
|
|
1143
|
+
type: string;
|
|
1144
|
+
reason: any;
|
|
1145
|
+
apiKeyName?: undefined;
|
|
1146
|
+
} | {}[]>;
|
|
1111
1147
|
/**
|
|
1112
1148
|
* Converts radians to degrees.
|
|
1113
1149
|
*
|
|
@@ -1473,7 +1509,27 @@ export function FACTDOUBLE(number: any): any;
|
|
|
1473
1509
|
* @returns
|
|
1474
1510
|
*/
|
|
1475
1511
|
export function FALSE(): boolean;
|
|
1476
|
-
export function FARCASTER(...args: any[]): Promise<
|
|
1512
|
+
export function FARCASTER(...args: any[]): Promise<{
|
|
1513
|
+
message: string;
|
|
1514
|
+
functionName: any;
|
|
1515
|
+
type: string;
|
|
1516
|
+
apiKeyName?: undefined;
|
|
1517
|
+
reason?: undefined;
|
|
1518
|
+
} | {
|
|
1519
|
+
message: string;
|
|
1520
|
+
functionName: any;
|
|
1521
|
+
type: string;
|
|
1522
|
+
apiKeyName: any;
|
|
1523
|
+
reason?: undefined;
|
|
1524
|
+
} | {
|
|
1525
|
+
message: string;
|
|
1526
|
+
functionName: any;
|
|
1527
|
+
type: string;
|
|
1528
|
+
reason: any;
|
|
1529
|
+
apiKeyName?: undefined;
|
|
1530
|
+
} | {
|
|
1531
|
+
platform: string;
|
|
1532
|
+
}[]>;
|
|
1477
1533
|
/**
|
|
1478
1534
|
* Returns the F probability distribution.
|
|
1479
1535
|
*
|
|
@@ -1532,7 +1588,27 @@ export namespace FINV { }
|
|
|
1532
1588
|
* @returns
|
|
1533
1589
|
*/
|
|
1534
1590
|
export function FINVRT(probability: any, deg_freedom1: any, deg_freedom2: any, ...args: any[]): any;
|
|
1535
|
-
export function FIREFLY(...args: any[]): Promise<
|
|
1591
|
+
export function FIREFLY(...args: any[]): Promise<{
|
|
1592
|
+
platform: any;
|
|
1593
|
+
}[] | {
|
|
1594
|
+
message: string;
|
|
1595
|
+
functionName: any;
|
|
1596
|
+
type: string;
|
|
1597
|
+
apiKeyName?: undefined;
|
|
1598
|
+
reason?: undefined;
|
|
1599
|
+
} | {
|
|
1600
|
+
message: string;
|
|
1601
|
+
functionName: any;
|
|
1602
|
+
type: string;
|
|
1603
|
+
apiKeyName: any;
|
|
1604
|
+
reason?: undefined;
|
|
1605
|
+
} | {
|
|
1606
|
+
message: string;
|
|
1607
|
+
functionName: any;
|
|
1608
|
+
type: string;
|
|
1609
|
+
reason: any;
|
|
1610
|
+
apiKeyName?: undefined;
|
|
1611
|
+
}>;
|
|
1536
1612
|
/**
|
|
1537
1613
|
* Returns the Fisher transformation.
|
|
1538
1614
|
*
|
|
@@ -1795,26 +1871,6 @@ export function GEOMEAN(...args: any[]): any;
|
|
|
1795
1871
|
*/
|
|
1796
1872
|
export function GESTEP(number: any, step: any): any;
|
|
1797
1873
|
export function GNOSIS(...args: any[]): Promise<any>;
|
|
1798
|
-
export function GNOSISPAY({ cardId, startDate, endDate, limit, offset }: {
|
|
1799
|
-
cardId: any;
|
|
1800
|
-
startDate: any;
|
|
1801
|
-
endDate: any;
|
|
1802
|
-
limit?: number;
|
|
1803
|
-
offset?: number;
|
|
1804
|
-
}): Promise<string | {
|
|
1805
|
-
createdAt: any;
|
|
1806
|
-
clearedAt: any;
|
|
1807
|
-
country: any;
|
|
1808
|
-
merchant: any;
|
|
1809
|
-
billingAmount: any;
|
|
1810
|
-
billingCurrency: any;
|
|
1811
|
-
transactionAmount: any;
|
|
1812
|
-
transactionCurrency: any;
|
|
1813
|
-
transactionType: any;
|
|
1814
|
-
kind: any;
|
|
1815
|
-
status: any;
|
|
1816
|
-
mcc: any;
|
|
1817
|
-
}[]>;
|
|
1818
1874
|
/**
|
|
1819
1875
|
* Returns values along an exponential trend.
|
|
1820
1876
|
*
|
|
@@ -2415,7 +2471,27 @@ export function LEFT(text: any, num_chars: any): any;
|
|
|
2415
2471
|
* @returns
|
|
2416
2472
|
*/
|
|
2417
2473
|
export function LEN(text: any, ...args: any[]): any;
|
|
2418
|
-
export function LENS(...args: any[]): Promise<
|
|
2474
|
+
export function LENS(...args: any[]): Promise<{
|
|
2475
|
+
message: string;
|
|
2476
|
+
functionName: any;
|
|
2477
|
+
type: string;
|
|
2478
|
+
apiKeyName?: undefined;
|
|
2479
|
+
reason?: undefined;
|
|
2480
|
+
} | {
|
|
2481
|
+
message: string;
|
|
2482
|
+
functionName: any;
|
|
2483
|
+
type: string;
|
|
2484
|
+
apiKeyName: any;
|
|
2485
|
+
reason?: undefined;
|
|
2486
|
+
} | {
|
|
2487
|
+
message: string;
|
|
2488
|
+
functionName: any;
|
|
2489
|
+
type: string;
|
|
2490
|
+
reason: any;
|
|
2491
|
+
apiKeyName?: undefined;
|
|
2492
|
+
} | {
|
|
2493
|
+
platform: string;
|
|
2494
|
+
}[]>;
|
|
2419
2495
|
/**
|
|
2420
2496
|
* Returns the parameters of a linear trend.
|
|
2421
2497
|
*
|
package/types/esm/index.d.mts
CHANGED
|
@@ -627,7 +627,25 @@ export function CLEAN(text: any): any;
|
|
|
627
627
|
* @returns
|
|
628
628
|
*/
|
|
629
629
|
export function CODE(text: any): any;
|
|
630
|
-
export function COINGECKO(
|
|
630
|
+
export function COINGECKO(...args: any[]): Promise<{
|
|
631
|
+
message: string;
|
|
632
|
+
functionName: any;
|
|
633
|
+
type: string;
|
|
634
|
+
apiKeyName?: undefined;
|
|
635
|
+
reason?: undefined;
|
|
636
|
+
} | {
|
|
637
|
+
message: string;
|
|
638
|
+
functionName: any;
|
|
639
|
+
type: string;
|
|
640
|
+
apiKeyName: any;
|
|
641
|
+
reason?: undefined;
|
|
642
|
+
} | {
|
|
643
|
+
message: string;
|
|
644
|
+
functionName: any;
|
|
645
|
+
type: string;
|
|
646
|
+
reason: any;
|
|
647
|
+
apiKeyName?: undefined;
|
|
648
|
+
} | {}[]>;
|
|
631
649
|
/**
|
|
632
650
|
* Returns the column number of a reference.
|
|
633
651
|
*
|
|
@@ -1107,7 +1125,25 @@ export function DEC2OCT(number: any, places: any): any;
|
|
|
1107
1125
|
* @returns
|
|
1108
1126
|
*/
|
|
1109
1127
|
export function DECIMAL(text: any, radix: any, ...args: any[]): any;
|
|
1110
|
-
export function DEFILLAMA(...args: any[]): Promise<
|
|
1128
|
+
export function DEFILLAMA(...args: any[]): Promise<{
|
|
1129
|
+
message: string;
|
|
1130
|
+
functionName: any;
|
|
1131
|
+
type: string;
|
|
1132
|
+
apiKeyName?: undefined;
|
|
1133
|
+
reason?: undefined;
|
|
1134
|
+
} | {
|
|
1135
|
+
message: string;
|
|
1136
|
+
functionName: any;
|
|
1137
|
+
type: string;
|
|
1138
|
+
apiKeyName: any;
|
|
1139
|
+
reason?: undefined;
|
|
1140
|
+
} | {
|
|
1141
|
+
message: string;
|
|
1142
|
+
functionName: any;
|
|
1143
|
+
type: string;
|
|
1144
|
+
reason: any;
|
|
1145
|
+
apiKeyName?: undefined;
|
|
1146
|
+
} | {}[]>;
|
|
1111
1147
|
/**
|
|
1112
1148
|
* Converts radians to degrees.
|
|
1113
1149
|
*
|
|
@@ -1473,7 +1509,27 @@ export function FACTDOUBLE(number: any): any;
|
|
|
1473
1509
|
* @returns
|
|
1474
1510
|
*/
|
|
1475
1511
|
export function FALSE(): boolean;
|
|
1476
|
-
export function FARCASTER(...args: any[]): Promise<
|
|
1512
|
+
export function FARCASTER(...args: any[]): Promise<{
|
|
1513
|
+
message: string;
|
|
1514
|
+
functionName: any;
|
|
1515
|
+
type: string;
|
|
1516
|
+
apiKeyName?: undefined;
|
|
1517
|
+
reason?: undefined;
|
|
1518
|
+
} | {
|
|
1519
|
+
message: string;
|
|
1520
|
+
functionName: any;
|
|
1521
|
+
type: string;
|
|
1522
|
+
apiKeyName: any;
|
|
1523
|
+
reason?: undefined;
|
|
1524
|
+
} | {
|
|
1525
|
+
message: string;
|
|
1526
|
+
functionName: any;
|
|
1527
|
+
type: string;
|
|
1528
|
+
reason: any;
|
|
1529
|
+
apiKeyName?: undefined;
|
|
1530
|
+
} | {
|
|
1531
|
+
platform: string;
|
|
1532
|
+
}[]>;
|
|
1477
1533
|
/**
|
|
1478
1534
|
* Returns the F probability distribution.
|
|
1479
1535
|
*
|
|
@@ -1532,7 +1588,27 @@ export namespace FINV { }
|
|
|
1532
1588
|
* @returns
|
|
1533
1589
|
*/
|
|
1534
1590
|
export function FINVRT(probability: any, deg_freedom1: any, deg_freedom2: any, ...args: any[]): any;
|
|
1535
|
-
export function FIREFLY(...args: any[]): Promise<
|
|
1591
|
+
export function FIREFLY(...args: any[]): Promise<{
|
|
1592
|
+
platform: any;
|
|
1593
|
+
}[] | {
|
|
1594
|
+
message: string;
|
|
1595
|
+
functionName: any;
|
|
1596
|
+
type: string;
|
|
1597
|
+
apiKeyName?: undefined;
|
|
1598
|
+
reason?: undefined;
|
|
1599
|
+
} | {
|
|
1600
|
+
message: string;
|
|
1601
|
+
functionName: any;
|
|
1602
|
+
type: string;
|
|
1603
|
+
apiKeyName: any;
|
|
1604
|
+
reason?: undefined;
|
|
1605
|
+
} | {
|
|
1606
|
+
message: string;
|
|
1607
|
+
functionName: any;
|
|
1608
|
+
type: string;
|
|
1609
|
+
reason: any;
|
|
1610
|
+
apiKeyName?: undefined;
|
|
1611
|
+
}>;
|
|
1536
1612
|
/**
|
|
1537
1613
|
* Returns the Fisher transformation.
|
|
1538
1614
|
*
|
|
@@ -1795,26 +1871,6 @@ export function GEOMEAN(...args: any[]): any;
|
|
|
1795
1871
|
*/
|
|
1796
1872
|
export function GESTEP(number: any, step: any): any;
|
|
1797
1873
|
export function GNOSIS(...args: any[]): Promise<any>;
|
|
1798
|
-
export function GNOSISPAY({ cardId, startDate, endDate, limit, offset }: {
|
|
1799
|
-
cardId: any;
|
|
1800
|
-
startDate: any;
|
|
1801
|
-
endDate: any;
|
|
1802
|
-
limit?: number;
|
|
1803
|
-
offset?: number;
|
|
1804
|
-
}): Promise<string | {
|
|
1805
|
-
createdAt: any;
|
|
1806
|
-
clearedAt: any;
|
|
1807
|
-
country: any;
|
|
1808
|
-
merchant: any;
|
|
1809
|
-
billingAmount: any;
|
|
1810
|
-
billingCurrency: any;
|
|
1811
|
-
transactionAmount: any;
|
|
1812
|
-
transactionCurrency: any;
|
|
1813
|
-
transactionType: any;
|
|
1814
|
-
kind: any;
|
|
1815
|
-
status: any;
|
|
1816
|
-
mcc: any;
|
|
1817
|
-
}[]>;
|
|
1818
1874
|
/**
|
|
1819
1875
|
* Returns values along an exponential trend.
|
|
1820
1876
|
*
|
|
@@ -2415,7 +2471,27 @@ export function LEFT(text: any, num_chars: any): any;
|
|
|
2415
2471
|
* @returns
|
|
2416
2472
|
*/
|
|
2417
2473
|
export function LEN(text: any, ...args: any[]): any;
|
|
2418
|
-
export function LENS(...args: any[]): Promise<
|
|
2474
|
+
export function LENS(...args: any[]): Promise<{
|
|
2475
|
+
message: string;
|
|
2476
|
+
functionName: any;
|
|
2477
|
+
type: string;
|
|
2478
|
+
apiKeyName?: undefined;
|
|
2479
|
+
reason?: undefined;
|
|
2480
|
+
} | {
|
|
2481
|
+
message: string;
|
|
2482
|
+
functionName: any;
|
|
2483
|
+
type: string;
|
|
2484
|
+
apiKeyName: any;
|
|
2485
|
+
reason?: undefined;
|
|
2486
|
+
} | {
|
|
2487
|
+
message: string;
|
|
2488
|
+
functionName: any;
|
|
2489
|
+
type: string;
|
|
2490
|
+
reason: any;
|
|
2491
|
+
apiKeyName?: undefined;
|
|
2492
|
+
} | {
|
|
2493
|
+
platform: string;
|
|
2494
|
+
}[]>;
|
|
2419
2495
|
/**
|
|
2420
2496
|
* Returns the parameters of a linear trend.
|
|
2421
2497
|
*
|