From 2d35369fd4ec3844c9daa7dac3c4fa6ccd1ad6c5 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 --- lib/publish.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/publish.js b/lib/publish.js index 32e70129f2c03..5e064a34bc041 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')