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:
authorColin Rotherham <work@colinr.com>2017-06-05 22:56:09 +0300
committerKat Marchán <kzm@sykosomatic.org>2017-06-06 00:20:52 +0300
commit89cc8e3e12dad67fd9844accf4d41deb4c180c5c (patch)
treea139bfa3c5dc41e88b03fa50cb7779eca472ef5b /lib
parent191d10a6616d72e26d89fd00f5a4f6158bfbc526 (diff)
pacote: send certificate authority, cert and key config through (#16917)
PR-URL: https://github.com/npm/npm/pull/16917 Credit: @colinrotherham Reviewed-By: @zkat
Diffstat (limited to 'lib')
-rw-r--r--lib/config/pacote.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/config/pacote.js b/lib/config/pacote.js
index 9f2d35678..dfee47b18 100644
--- a/lib/config/pacote.js
+++ b/lib/config/pacote.js
@@ -21,9 +21,12 @@ function pacoteOpts (moreOpts) {
const ownerStats = calculateOwner()
const opts = {
cache: path.join(npm.config.get('cache'), '_cacache'),
+ ca: npm.config.get('ca'),
+ cert: npm.config.get('cert'),
defaultTag: npm.config.get('tag'),
dirPacker: pack.packGitDep,
hashAlgorithm: 'sha1',
+ key: npm.config.get('key'),
localAddress: npm.config.get('local-address'),
log: log,
maxAge: npm.config.get('cache-min'),