Skip to content

Commit

Permalink
fixup! fix(config): protect proxy if it contains basic auth
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed May 14, 2024
1 parent 709cbea commit 74e34e5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/commands/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,8 @@ const isProtected = (k) => {
return false
}

// Redacted fields are public unless they contain redacted info
const isRedacted = (v) => redact(v) !== v

const isPrivate = (k, v) => isProtected(k) || isRedacted(v)
// Private fields are either protected or they can redacted info
const isPrivate = (k, v) => isProtected(k) || redact(v) !== v

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

0 comments on commit 74e34e5

Please sign in to comment.