Skip to content

Commit

Permalink
fix(publish): clean args before logging
Browse files Browse the repository at this point in the history
PR-URL: #3943
Credit: @wraithgar
Close: #3943
Reviewed-by: @lukekarrys
  • Loading branch information
wraithgar authored and lukekarrys committed Oct 27, 2021
1 parent cb9f435 commit 070901d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const pacote = require('pacote')
const npa = require('npm-package-arg')
const npmFetch = require('npm-registry-fetch')
const chalk = require('chalk')
const replaceInfo = require('./utils/replace-info.js')

const otplease = require('./utils/otplease.js')
const { getContents, logTar } = require('./utils/tar.js')
Expand Down Expand Up @@ -68,7 +69,7 @@ class Publish extends BaseCommand {
if (args.length !== 1)
throw this.usageError()

log.verbose('publish', args)
log.verbose('publish', replaceInfo(args))

const unicode = this.npm.config.get('unicode')
const dryRun = this.npm.config.get('dry-run')
Expand Down

0 comments on commit 070901d

Please sign in to comment.