Skip to content

Commit 2d35369

Browse files
committed
fix(publish): clean args before logging
1 parent 62c7315 commit 2d35369

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/publish.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const pacote = require('pacote')
88
const npa = require('npm-package-arg')
99
const npmFetch = require('npm-registry-fetch')
1010
const chalk = require('chalk')
11+
const replaceInfo = require('./utils/replace-info.js')
1112

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

71-
log.verbose('publish', args)
72+
log.verbose('publish', replaceInfo(args))
7273

7374
const unicode = this.npm.config.get('unicode')
7475
const dryRun = this.npm.config.get('dry-run')

0 commit comments

Comments
 (0)