diff options
Diffstat (limited to 'node_modules/npm-registry-fetch/index.js')
-rw-r--r-- | node_modules/npm-registry-fetch/index.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/node_modules/npm-registry-fetch/index.js b/node_modules/npm-registry-fetch/index.js index 8e05f4184..eb48ba6c0 100644 --- a/node_modules/npm-registry-fetch/index.js +++ b/node_modules/npm-registry-fetch/index.js @@ -186,6 +186,10 @@ function getHeaders (registry, uri, opts) { headers['npm-session'] = opts.npmSession } + if (opts.npmCommand) { + headers['npm-command'] = opts.npmCommand + } + const auth = getAuth(registry, opts) // If a tarball is hosted on a different place than the manifest, only send // credentials on `alwaysAuth` |