@dotenc/cli 0.5.1 → 0.5.2
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/cli.js +3 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -7,7 +7,7 @@ var package_default;
|
|
|
7
7
|
var init_package = __esm(() => {
|
|
8
8
|
package_default = {
|
|
9
9
|
name: "@dotenc/cli",
|
|
10
|
-
version: "0.5.
|
|
10
|
+
version: "0.5.2",
|
|
11
11
|
description: "🔐 Git-native encrypted environments powered by your SSH keys",
|
|
12
12
|
author: "Ivan Filho <i@ivanfilho.com>",
|
|
13
13
|
license: "MIT",
|
|
@@ -1361,8 +1361,9 @@ var defaultDecryptCommandDeps, ansiPattern, stripAnsi = (value) => value.replace
|
|
|
1361
1361
|
try {
|
|
1362
1362
|
const environment = await deps.getEnvironmentByName(environmentName);
|
|
1363
1363
|
const plaintext = await deps.decryptEnvironmentData(environment);
|
|
1364
|
+
const grantedUsers = Array.from(new Set(environment.keys.map((key) => key.name.trim()).filter((name) => name.length > 0)));
|
|
1364
1365
|
if (options.json) {
|
|
1365
|
-
writeJson({ ok: true, content: plaintext }, deps);
|
|
1366
|
+
writeJson({ ok: true, content: plaintext, grantedUsers }, deps);
|
|
1366
1367
|
} else {
|
|
1367
1368
|
deps.writeStdout(plaintext);
|
|
1368
1369
|
}
|