add support for registry-auth-token (#278)

resolves #270 #277
This commit is contained in:
Lukas Eipert
2016-08-07 13:09:46 +02:00
committed by Zoltan Kochan
parent a858f61d9e
commit 1aedec2d53
2 changed files with 2 additions and 2 deletions

View File

@@ -79,7 +79,7 @@ function extend (url, options) {
var authToken = getAuthToken(url, {recursive: true})
if (authToken) {
options.headers = assign({}, options.headers || {}, {
authorization: 'Bearer ' + authToken
authorization: authToken.type + ' ' + authToken.token
})
}
} else {

View File

@@ -35,7 +35,7 @@
"observatory": "1.0.0",
"rc": "1.1.6",
"read-pkg-up": "1.0.1",
"registry-auth-token": "2.1.1",
"registry-auth-token": "3.0.0",
"registry-url": "3.1.0",
"rimraf": "2.5.4",
"semver": "5.3.0",