@dotenvx/dotenvx
Advanced tools
Comparing version 0.6.8 to 0.6.9
{ | ||
"version": "0.6.8", | ||
"version": "0.6.9", | ||
"name": "@dotenvx/dotenvx", | ||
@@ -4,0 +4,0 @@ "description": "a better dotenv–from the creator of `dotenv`", |
@@ -190,2 +190,4 @@ #!/usr/bin/env node | ||
const addedKeys = new Set() | ||
const addedVaults = new Set() | ||
const addedEnvFilepaths = new Set() | ||
@@ -259,2 +261,5 @@ try { | ||
dotenvVaults[vault] = ciphertext | ||
addedVaults.add(vault) // for info logging to user | ||
addedEnvFilepaths.add(envFilepath) // for info logging to user | ||
} else { | ||
@@ -284,3 +289,7 @@ logger.verbose(`existing ${vault}`) | ||
logger.info(`encrypted to .env.vault (${optionEnvFile})`) | ||
if (addedEnvFilepaths.size > 0) { | ||
logger.info(`encrypted to .env.vault (${[...addedEnvFilepaths]})`) | ||
} else { | ||
logger.info(`no changes (${optionEnvFile})`) | ||
} | ||
if (addedKeys.size > 0) { | ||
@@ -287,0 +296,0 @@ logger.info(`${helpers.pluralize('key', addedKeys.size)} added to .env.keys (${[...addedKeys]})`) |
29009
575