diff options
author | Darcy Clarke <darcy@darcyclarke.me> | 2020-11-13 15:30:43 -0500 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2020-11-16 06:27:36 -0800 |
commit | b89d4090e7d3a87c4b8e1114541cfd925c68ca04 (patch) | |
tree | b34a9425bf873890f04ad00247c89d8d76c06ffa /deps/npm/lib/utils | |
parent | dc79f3f37caf6f25b8efee4623bec31e2c20f595 (diff) | |
download | node-new-b89d4090e7d3a87c4b8e1114541cfd925c68ca04.tar.gz |
deps: upgrade npm to 7.0.11
PR-URL: https://github.com/nodejs/node/pull/36112
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'deps/npm/lib/utils')
-rw-r--r-- | deps/npm/lib/utils/config.js | 2 | ||||
-rw-r--r-- | deps/npm/lib/utils/error-handler.js | 2 | ||||
-rw-r--r-- | deps/npm/lib/utils/explain-dep.js | 2 | ||||
-rw-r--r-- | deps/npm/lib/utils/flat-options.js | 1 |
4 files changed, 5 insertions, 2 deletions
diff --git a/deps/npm/lib/utils/config.js b/deps/npm/lib/utils/config.js index f9de6e9a79..6abb502e20 100644 --- a/deps/npm/lib/utils/config.js +++ b/deps/npm/lib/utils/config.js @@ -52,6 +52,7 @@ const defaults = { 'always-auth': false, audit: true, 'audit-level': null, + _auth: null, 'auth-type': 'legacy', before: null, 'bin-links': true, @@ -191,6 +192,7 @@ const types = { all: Boolean, 'allow-same-version': Boolean, also: [null, 'dev', 'development'], + _auth: [null, String], 'always-auth': Boolean, audit: Boolean, 'audit-level': ['low', 'moderate', 'high', 'critical', 'none', null], diff --git a/deps/npm/lib/utils/error-handler.js b/deps/npm/lib/utils/error-handler.js index dc9e2a26bc..476ca9e917 100644 --- a/deps/npm/lib/utils/error-handler.js +++ b/deps/npm/lib/utils/error-handler.js @@ -182,7 +182,7 @@ const errorHandler = (er) => { detail: messageText(msg.detail), }, } - console.log(JSON.stringify(error, null, 2)) + console.error(JSON.stringify(error, null, 2)) } exit(typeof er.errno === 'number' ? er.errno : typeof er.code === 'number' ? er.code : 1) diff --git a/deps/npm/lib/utils/explain-dep.js b/deps/npm/lib/utils/explain-dep.js index 096df97edf..ed69a02c14 100644 --- a/deps/npm/lib/utils/explain-dep.js +++ b/deps/npm/lib/utils/explain-dep.js @@ -64,7 +64,7 @@ const explainDependents = ({ name, dependents }, depth, color) => { const maxLen = 50 const showNames = [] for (let i = max; i < dependents.length; i++) { - const { from: { name } } = dependents[i] + const { from: { name = 'the root project' } } = dependents[i] len += name.length if (len >= maxLen && i < dependents.length - 1) { showNames.push('...') diff --git a/deps/npm/lib/utils/flat-options.js b/deps/npm/lib/utils/flat-options.js index be62c5a4cd..8b6864aa82 100644 --- a/deps/npm/lib/utils/flat-options.js +++ b/deps/npm/lib/utils/flat-options.js @@ -50,6 +50,7 @@ const flatten = obj => ({ alwaysAuth: obj['always-auth'], audit: obj.audit, auditLevel: obj['audit-level'], + _auth: obj._auth, authType: obj['auth-type'], ssoType: obj['sso-type'], ssoPollFrequency: obj['sso-poll-frequency'], |