Skip to content
This repository has been archived by the owner on Jul 3, 2019. It is now read-only.

Commit

Permalink
fix(registry): include npm-scope header
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Apr 15, 2017
1 parent 2d3aaac commit 574cd93
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/registry/manifest.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ function fetchPackument (uri, registry, opts) {
accept: 'application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*',
authorization: (auth && auth.token && `Bearer ${auth.token}`) || '',
'npm-in-ci': opts.isFromCI,
'npm-scope': opts.projectScope,
'user-agent': opts.userAgent,
'pacote-req-type': 'packument',
'pacote-pkg-id': `registry:${manifest.name}`,
Expand Down
1 change: 1 addition & 0 deletions lib/registry/tarball.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ function fromManifest (manifest, spec, opts) {
headers: {
authorization: (auth && auth.token && `Bearer ${auth.token}`) || '',
'npm-in-ci': opts.isFromCI,
'npm-scope': opts.projectScope,
'user-agent': opts.userAgent,
'pacote-req-type': 'tarball',
'pacote-pkg-id': `registry:${manifest.name}@${manifest.version}`,
Expand Down
1 change: 1 addition & 0 deletions lib/util/opt-check.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ function PacoteOptions (opts) {
process.env['bamboo.buildKey']
)
this.refer = opts.referer || opts.refer
this.projectScope = opts.projectScope

this.dirPacker = opts.dirPacker || null

Expand Down

0 comments on commit 574cd93

Please sign in to comment.