@signal24/vue-foundation 4.13.3 → 4.13.4
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.
|
@@ -11,7 +11,7 @@ declare function upperCase(value: null): null;
|
|
|
11
11
|
declare function upperCase(value: string): string;
|
|
12
12
|
declare function desnake(value: null): null;
|
|
13
13
|
declare function desnake(value: string): string;
|
|
14
|
-
declare function usCurrency(value: string | number): string;
|
|
14
|
+
declare function usCurrency(value: string | number, divisor?: number): string;
|
|
15
15
|
declare const FilterFns: {
|
|
16
16
|
bytes: typeof bytes;
|
|
17
17
|
dash: typeof dash;
|
package/package.json
CHANGED
package/src/filters/index.ts
CHANGED
|
@@ -53,8 +53,8 @@ function desnake(value: string | null) {
|
|
|
53
53
|
return value ? desnakeCase(value) : null;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
function usCurrency(value: string | number) {
|
|
57
|
-
return formatUSCurrency(value);
|
|
56
|
+
function usCurrency(value: string | number, divisor = 1) {
|
|
57
|
+
return formatUSCurrency(value, divisor);
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
const FilterFns = {
|