jcinfo-utils 1.0.49 → 1.0.51
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/index.d.ts +4 -0
- package/package.json +1 -1
- package/src/updateDotEnv.js +7 -7
package/index.d.ts
CHANGED
|
@@ -87,3 +87,7 @@ export function updateVersionDate(fs: Object): void
|
|
|
87
87
|
export function updateVersionBuild(fs: Object, autoInc?: boolean): void
|
|
88
88
|
|
|
89
89
|
export function encodeUriBase64(str: string): string
|
|
90
|
+
|
|
91
|
+
export function validarCPF(aValue: string): boolean
|
|
92
|
+
|
|
93
|
+
export function validarCNPJ(aValue: string): boolean
|
package/package.json
CHANGED
package/src/updateDotEnv.js
CHANGED
|
@@ -62,7 +62,7 @@ export function _updateDotEnv(fs, incrementBuild = false, filename = '.env') {
|
|
|
62
62
|
saveArrayInFile(fs, content, filename)
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
const envProd = '.env
|
|
65
|
+
const envProd = '.env'
|
|
66
66
|
const envLocal = '.env.local'
|
|
67
67
|
const envKey = 'VITE_VERSION'
|
|
68
68
|
|
|
@@ -89,12 +89,12 @@ export function updateDotEnvKey(
|
|
|
89
89
|
return `${version} (${finalBuild})`
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
if (filename == '.env') {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}
|
|
92
|
+
// if (filename == '.env') {
|
|
93
|
+
// console.log(
|
|
94
|
+
// 'updateDotEnvKey:',
|
|
95
|
+
// 'Não atualize o arquivo ".env", atualize arquivo com final ".local"',
|
|
96
|
+
// )
|
|
97
|
+
// }
|
|
98
98
|
|
|
99
99
|
if (fileExists(fs, filename)) {
|
|
100
100
|
let content = fs
|