From 070901d7a6e3110a04ef41d8fcf14ffbfcce1496 Mon Sep 17 00:00:00 2001 From: Gar Date: Tue, 26 Oct 2021 12:46:58 -0700 Subject: [PATCH] fix(publish): clean args before logging PR-URL: https://github.com/npm/cli/pull/3943 Credit: @wraithgar Close: #3943 Reviewed-by: @lukekarrys --- lib/publish.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/publish.js b/lib/publish.js index 32e70129f2c0..5e064a34bc04 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')