argous 1.2.199 → 1.2.200

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.
@@ -58,7 +58,7 @@ export declare const formataTelefone: (value: string) => string;
58
58
  export declare const useWebSocket: () => {};
59
59
  export declare const formataCpf: (value: string) => string;
60
60
  export declare const numbersOnly: (value: string, type: string) => string;
61
- export declare const currencyMask: (value: string | number) => string | undefined;
61
+ export declare const currencyMask: (value: string | number) => string;
62
62
  export declare const toFloat: (value: string) => number | undefined;
63
63
  export declare const copyToClipboard: (text: string) => void;
64
64
  export declare const confirm: (props: BasicModalProps | string) => Promise<boolean>;
@@ -356,7 +356,7 @@ var currencyMask = function (value) {
356
356
  if (value === 0)
357
357
  return value.toString() + ",00";
358
358
  if (!value)
359
- return;
359
+ return '';
360
360
  if (lodash_1.isNumber(value))
361
361
  value = value.toFixed(2);
362
362
  value = value.toString();
@@ -283,7 +283,7 @@ export const numbersOnly = (value: string, type: string) => value ? value.replac
283
283
 
284
284
  export const currencyMask = (value: string | number) => {
285
285
  if (value === 0) return `${value.toString()},00`;
286
- if (!value) return;
286
+ if (!value) return '';
287
287
  if (isNumber(value)) value = value.toFixed(2);
288
288
  value = value.toString();
289
289
  value = value.replace(/\D/g, '');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "argous",
3
- "version": "1.2.199",
3
+ "version": "1.2.200",
4
4
  "description": "Argous.",
5
5
  "main": "lib/index.js",
6
6
  "author": "Carlos Schneider",