diff options
author | Kat Marchán <kzm@sykosomatic.org> | 2017-05-26 00:28:21 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2017-05-26 04:55:33 +0300 |
commit | 72ce47ce5b0d176b3268825dbb9aa1da4435462c (patch) | |
tree | fdf9777d24d8f2746a8998d4bafbac239103a534 /lib | |
parent | 1ab8c4157c37e5bf14798618d8b210cd9486db93 (diff) |
pacote: look for always-auth too
Diffstat (limited to 'lib')
-rw-r--r-- | lib/config/pacote.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/config/pacote.js b/lib/config/pacote.js index 620a8b714..42a98b7d2 100644 --- a/lib/config/pacote.js +++ b/lib/config/pacote.js @@ -49,7 +49,7 @@ function pacoteOpts (moreOpts) { npm.config.keys.forEach(function (k) { const authMatch = k[0] === '/' && k.match( - /(.*):(_authToken|username|_password|password|email|alwaysAuth)$/ + /(.*):(_authToken|username|_password|password|email|always-auth|alwaysAuth)$/ ) if (authMatch) { const nerfDart = authMatch[1] @@ -61,6 +61,8 @@ function pacoteOpts (moreOpts) { opts.auth[nerfDart].token = val } else if (key.match(/password$/i)) { opts.auth[nerfDart].password = val + } else if (key === 'always-auth') { + opts.auth[nerfDart].alwaysAuth = val } else { opts.auth[nerfDart][key] = val } |