Skip to content

Commit 0b84867

Browse files
committed
fix redaction of oidc config id in json output
1 parent d967143 commit 0b84867

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/trust-cmd.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const { otplease } = require('./utils/auth.js')
33
const npmFetch = require('npm-registry-fetch')
44
const npa = require('npm-package-arg')
55
const { read: _read } = require('read')
6-
const { input, output, log } = require('proc-log')
6+
const { input, output, log, META } = require('proc-log')
77
const gitinfo = require('hosted-git-info')
88
const pkgJson = require('@npmcli/package-json')
99

@@ -55,7 +55,7 @@ class TrustCommand extends BaseCommand {
5555

5656
const json = this.config.get('json')
5757
if (json) {
58-
output.standard(JSON.stringify(options.values, null, 2))
58+
output.standard(JSON.stringify(options.values, null, 2), { [META]: true, redact: false })
5959
return
6060
}
6161

@@ -84,7 +84,7 @@ class TrustCommand extends BaseCommand {
8484
if (pad) {
8585
output.standard()
8686
}
87-
output.standard(lines.join('\n'))
87+
output.standard(lines.join('\n'), { [META]: true, redact: false })
8888
// Print URLs on their own lines after config, following the same order as rest keys
8989
if (urls) {
9090
const urlLines = []

0 commit comments

Comments
 (0)