diff options
author | Gar <gar+gh@danger.computer> | 2021-10-26 22:46:58 +0300 |
---|---|---|
committer | Luke Karrys <luke@lukekarrys.com> | 2021-10-27 19:40:29 +0300 |
commit | 070901d7a6e3110a04ef41d8fcf14ffbfcce1496 (patch) | |
tree | c503649b9146fdef3312e1ea4afc259e833a89a9 /lib | |
parent | cb9f43551f46bf27095cd7bd6c1885a441004cd2 (diff) |
fix(publish): clean args before logging
PR-URL: https://github.com/npm/cli/pull/3943
Credit: @wraithgar
Close: #3943
Reviewed-by: @lukekarrys
Diffstat (limited to 'lib')
-rw-r--r-- | lib/publish.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/publish.js b/lib/publish.js index 32e70129f..5e064a34b 100644 --- a/lib/publish.js +++ b/lib/publish.js @@ -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') @@ -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') |