Skip to content

Commit 74e34e5

Browse files
committed
fixup! fix(config): protect proxy if it contains basic auth
1 parent 709cbea commit 74e34e5

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

lib/commands/config.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,8 @@ const isProtected = (k) => {
7777
return false
7878
}
7979

80-
// Redacted fields are public unless they contain redacted info
81-
const isRedacted = (v) => redact(v) !== v
82-
83-
const isPrivate = (k, v) => isProtected(k) || isRedacted(v)
80+
// Private fields are either protected or they can redacted info
81+
const isPrivate = (k, v) => isProtected(k) || redact(v) !== v
8482

8583
const displayVar = (k, v) =>
8684
`${k} = ${isProtected(k, v) ? '(protected)' : JSON.stringify(redact(v))}`

0 commit comments

Comments
 (0)