heroku-client
Advanced tools
Comparing version 1.9.0 to 1.9.1
@@ -92,3 +92,3 @@ 'use strict'; | ||
defaultRequestOptions = { | ||
auth: ':' + this.options.token, | ||
auth: this.options.auth || ':' + this.options.token, | ||
method: this.options.method || 'GET', | ||
@@ -95,0 +95,0 @@ headers: headers |
{ | ||
"name": "heroku-client", | ||
"version": "1.9.0", | ||
"version": "1.9.1", | ||
"description": "A wrapper for the Heroku v3 API", | ||
@@ -5,0 +5,0 @@ "main": "./lib/heroku.js", |
@@ -179,2 +179,9 @@ 'use strict'; | ||
it('uses auth if provided explicitly', function(done) { | ||
makeRequest('/apps', { auth: 'user:pass'}, function() { | ||
expect(https.request.mostRecentCall.args[0].auth).toEqual('user:pass'); | ||
done(); | ||
}); | ||
}); | ||
it('GETs by default', function(done) { | ||
@@ -181,0 +188,0 @@ makeRequest('/apps', {}, function() { |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
257967
57
7178
5