@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.
Files changed (2) hide show
  1. package/dist/cli.js +3 -2
  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.1",
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dotenc/cli",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "🔐 Git-native encrypted environments powered by your SSH keys",
5
5
  "author": "Ivan Filho <i@ivanfilho.com>",
6
6
  "license": "MIT",