Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2020-12-18 22:08:48 +0300
committerisaacs <i@izs.me>2020-12-18 22:08:56 +0300
commit9eef638499c88689acb00d812c10f0407cb95c08 (patch)
treeaaecbf3c929279f2801127974a2e1307c211b13d /lib
parentb98569a8ca28dbd611fe84492aee996e2e567b55 (diff)
Pass full set of options to login helper functions
This fixes 'npm login --no-strict-ssl', as well as a host of other options that one might want to set while logging in. Reported by: @toddself
Diffstat (limited to 'lib')
-rw-r--r--lib/adduser.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/adduser.js b/lib/adduser.js
index 4b9fdf1f5..b6c332174 100644
--- a/lib/adduser.js
+++ b/lib/adduser.js
@@ -59,6 +59,7 @@ const adduser = async (args) => {
log.notice('', `Log in on ${replaceInfo(registry)}`)
const { message, newCreds } = await auth({
+ ...npm.flatOptions,
creds,
registry,
scope,