From 7f4e66772ee631158b47fcfcd8e22b7b6b9b9cce Mon Sep 17 00:00:00 2001 From: Luke Karrys Date: Wed, 24 Apr 2024 13:49:51 -0700 Subject: [PATCH] fix: redact when displaying non-ascii arguments --- lib/cli/entry.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cli/entry.js b/lib/cli/entry.js index db61dd74f56b0..fc196b8e234fc 100644 --- a/lib/cli/entry.js +++ b/lib/cli/entry.js @@ -61,7 +61,7 @@ module.exports = async (process, validateEngines) => { log.error( 'arg', 'Argument starts with non-ascii dash, this is probably invalid:', - nonDashArgs.join(', ') + require('@npmcli/redact').redactLog(nonDashArgs.join(', ')) ) }