jcinfo-utils 1.0.53 → 1.0.54

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/.env CHANGED
@@ -1,4 +1,4 @@
1
1
  # apenas para testar a função updateDotEnv() & updateDotEnvKey()
2
2
  # REACT_APP_VERSION=1.0 (1116.1)
3
- VITE_VERSION=1.0 (224.35)
3
+ VITE_VERSION=1.0 (115.8)
4
4
  VITE_VDATE=
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jcinfo-utils",
3
- "version": "1.0.53",
3
+ "version": "1.0.54",
4
4
  "description": "Pacote de funções utilitárias",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -65,6 +65,7 @@ export function _updateDotEnv(fs, incrementBuild = false, filename = '.env') {
65
65
  const envProd = '.env'
66
66
  const envLocal = '.env.local'
67
67
  const envKey = 'VITE_VERSION'
68
+ const envKeyVDATE = 'VITE_VDATE'
68
69
 
69
70
  export function updateDotEnvKey(
70
71
  fs,
@@ -112,5 +113,5 @@ export function updateDotEnvKey(
112
113
 
113
114
  export function updateDotEnv(fs, autoInc = false, command = 'build') {
114
115
  command == 'build' && updateDotEnvKey(fs, autoInc, envKey, envProd, false)
115
- command == 'serve' && updateDotEnvKey(fs, false, envKey, envLocal, false)
116
+ command == 'serve' && updateDotEnvKey(fs, false, envKeyVDATE, envLocal, true)
116
117
  }
package/test/testar.js CHANGED
@@ -126,5 +126,5 @@ console.log(`Cpf : ${cpf}`, validarCPF(cpf))
126
126
  console.log(`Cnpj: ${cnpj}`, validarCNPJ(cnpj))
127
127
  console.log()
128
128
 
129
- update.updateDotEnv(fs, true, 'build')
130
- update.updateDotEnv(fs, true, 'serve')
129
+ //update.updateDotEnv(fs, true, 'build')
130
+ update.updateDotEnv(fs, false, 'serve')