@gustavo-valsechi/utils 1.0.23 → 1.0.24

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/dist/index.js CHANGED
@@ -130,7 +130,6 @@ var Mask = {
130
130
  valor = String(valor).replace("R$ ", "").replace(",", ".").replace(/\.(?=.*\.)/g, "");
131
131
  valor = Number(valor).toFixed(2);
132
132
  valor = String(valor).replace(/[\D]+/g, "");
133
- valor = Number(valor);
134
133
  if (!nosign) valor = "R$ " + valor;
135
134
  if (!integer) {
136
135
  if (!nosign ? valor.length <= 4 : valor.length <= 1) {
package/dist/index.mjs CHANGED
@@ -94,7 +94,6 @@ var Mask = {
94
94
  valor = String(valor).replace("R$ ", "").replace(",", ".").replace(/\.(?=.*\.)/g, "");
95
95
  valor = Number(valor).toFixed(2);
96
96
  valor = String(valor).replace(/[\D]+/g, "");
97
- valor = Number(valor);
98
97
  if (!nosign) valor = "R$ " + valor;
99
98
  if (!integer) {
100
99
  if (!nosign ? valor.length <= 4 : valor.length <= 1) {
@@ -64,7 +64,6 @@ var Mask = {
64
64
  valor = String(valor).replace("R$ ", "").replace(",", ".").replace(/\.(?=.*\.)/g, "");
65
65
  valor = Number(valor).toFixed(2);
66
66
  valor = String(valor).replace(/[\D]+/g, "");
67
- valor = Number(valor);
68
67
  if (!nosign) valor = "R$ " + valor;
69
68
  if (!integer) {
70
69
  if (!nosign ? valor.length <= 4 : valor.length <= 1) {
@@ -30,7 +30,6 @@ var Mask = {
30
30
  valor = String(valor).replace("R$ ", "").replace(",", ".").replace(/\.(?=.*\.)/g, "");
31
31
  valor = Number(valor).toFixed(2);
32
32
  valor = String(valor).replace(/[\D]+/g, "");
33
- valor = Number(valor);
34
33
  if (!nosign) valor = "R$ " + valor;
35
34
  if (!integer) {
36
35
  if (!nosign ? valor.length <= 4 : valor.length <= 1) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gustavo-valsechi/utils",
3
- "version": "1.0.23",
3
+ "version": "1.0.24",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",