@firedesktop/react-base 1.91.0 → 1.92.1
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export default function CurrencyUtiles(): {
|
|
2
|
-
numberToCurrencyString: (value: string | number | undefined, locale?: string, currency?: string) =>
|
|
3
|
-
numberToCurrencyStringNoSymbol: (value: string | number | undefined, locale?: string, minimumFractionDigits?: number) =>
|
|
2
|
+
numberToCurrencyString: (value: string | number | undefined, locale?: string, currency?: string) => string;
|
|
3
|
+
numberToCurrencyStringNoSymbol: (value: string | number | undefined, locale?: string, minimumFractionDigits?: number) => string;
|
|
4
4
|
};
|
package/package.json
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firedesktop/react-base",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.92.1",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"description": "This is the FireDesktop base package used to support every React Project in this Company.",
|
|
7
7
|
"author": "alessandro.gambaro",
|
|
8
8
|
"repository": "https://firedesktopDevOps@dev.azure.com/firedesktopDevOps/baseFEComponents/_git/baseFEComponents",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@syncfusion/ej2-popups": "
|
|
11
|
-
"@syncfusion/ej2-react-notifications": "
|
|
10
|
+
"@syncfusion/ej2-popups": "27.1.50",
|
|
11
|
+
"@syncfusion/ej2-react-notifications": "27.1.50"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@babel/cli": "7.
|
|
14
|
+
"@babel/cli": "7.25.6",
|
|
15
15
|
"@babel/core": "7.25.2",
|
|
16
16
|
"@babel/plugin-proposal-class-properties": "7.18.6",
|
|
17
17
|
"@babel/plugin-transform-arrow-functions": "7.24.7",
|
|
18
18
|
"@babel/preset-typescript": "7.24.7",
|
|
19
|
-
"@testing-library/jest-dom": "6.
|
|
20
|
-
"@testing-library/react": "16.0.
|
|
19
|
+
"@testing-library/jest-dom": "6.5.0",
|
|
20
|
+
"@testing-library/react": "16.0.1",
|
|
21
21
|
"@testing-library/user-event": "14.5.2",
|
|
22
|
-
"@types/jest": "29.5.
|
|
23
|
-
"@types/node": "22.
|
|
22
|
+
"@types/jest": "29.5.13",
|
|
23
|
+
"@types/node": "22.7.0",
|
|
24
24
|
"@types/react": "18.2.79",
|
|
25
25
|
"@types/react-dom": "18.3.0",
|
|
26
|
-
"@types/react-redux": "7.1.
|
|
26
|
+
"@types/react-redux": "7.1.34",
|
|
27
27
|
"babel-plugin-minify-builtins": "0.5.0",
|
|
28
28
|
"babel-preset-minify": "0.5.2",
|
|
29
29
|
"bootstrap": "4.6.0",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"react-redux": "9.1.2",
|
|
35
35
|
"react-scripts": "5.0.1",
|
|
36
36
|
"typescript": "4.9.4",
|
|
37
|
-
"web-vitals": "4.2.
|
|
37
|
+
"web-vitals": "4.2.3"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"bootstrap": ">=4.5.3",
|
|
@@ -8,7 +8,7 @@ export default function CurrencyUtiles() {
|
|
|
8
8
|
* @param currency https://www.easymarkets.com/eu/learn-centre/discover-trading/currency-acronyms-and-abbreviations/, default EUR
|
|
9
9
|
* @returns
|
|
10
10
|
*/
|
|
11
|
-
const numberToCurrencyString = (value: string | number | undefined, locale: string = 'IT', currency = 'EUR'):
|
|
11
|
+
const numberToCurrencyString = (value: string | number | undefined, locale: string = 'IT', currency = 'EUR'): string => {
|
|
12
12
|
try {
|
|
13
13
|
const valueNumber = Number(value);
|
|
14
14
|
|
|
@@ -27,7 +27,7 @@ export default function CurrencyUtiles() {
|
|
|
27
27
|
* @param minimumFractionDigits number of fraction digits
|
|
28
28
|
* @returns
|
|
29
29
|
*/
|
|
30
|
-
const numberToCurrencyStringNoSymbol = (value: string | number | undefined, locale: string = 'IT', minimumFractionDigits: number = 2):
|
|
30
|
+
const numberToCurrencyStringNoSymbol = (value: string | number | undefined, locale: string = 'IT', minimumFractionDigits: number = 2): string => {
|
|
31
31
|
try {
|
|
32
32
|
const valueNumber = Number(value);
|
|
33
33
|
|