From ba8808c6acaab6614e94dc92fca2099e65d9de89 Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Wed, 24 Feb 2021 08:34:01 -0800 Subject: [PATCH] Fix profile.js' call of usageUtils The right way, which is to create a single string as the 3rd argument. --- lib/access.js | 2 +- lib/ls.js | 1 - lib/profile.js | 5 +++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/access.js b/lib/access.js index 8a372d90cb55c..0bf6e04a5a106 100644 --- a/lib/access.js +++ b/lib/access.js @@ -10,7 +10,7 @@ const usageUtil = require('./utils/usage.js') const getIdentity = require('./utils/get-identity.js') const usage = usageUtil( - 'npm access', + 'access', 'npm access public []\n' + 'npm access restricted []\n' + 'npm access grant []\n' + diff --git a/lib/ls.js b/lib/ls.js index 8786674dabfb3..d9c06de875df7 100644 --- a/lib/ls.js +++ b/lib/ls.js @@ -433,7 +433,6 @@ const ls = async (args) => { args, currentDepth: node[_depth], nodeResult, - parseable, seenNodes, })) }, diff --git a/lib/profile.js b/lib/profile.js index 65a3b9f0704be..4148560f147ef 100644 --- a/lib/profile.js +++ b/lib/profile.js @@ -15,8 +15,9 @@ const usageUtil = require('./utils/usage.js') const usage = usageUtil( 'npm profile enable-2fa [auth-only|auth-and-writes]\n', - 'npm profile disable-2fa\n', - 'npm profile get []\n' + 'npm profile disable-2fa\n' + + 'npm profile get []\n' + + 'npm profile set ' ) const completion = (opts, cb) => {