Skip to content

Commit

Permalink
0.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bartve committed Oct 24, 2016
1 parent e0da8c0 commit 8233a50
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
0.9.1 / 2016-10-24
==================
* Upgraded OAuth library to `oauth-1.0a` v2.0.0

0.9.0 / 2016-06-15
==================
* Added `user().getLists()`
Expand Down
4 changes: 2 additions & 2 deletions lib/oauth.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ DiscogsOAuth.prototype.export = function(){
*/
DiscogsOAuth.prototype.toHeader = function(requestMethod, url){
var oAuth = new OAuth({
consumer: {public: this.auth.consumerKey, secret: this.auth.consumerSecret},
consumer: {key: this.auth.consumerKey, secret: this.auth.consumerSecret},
signature_method: this.config.signatureMethod, version: this.config.version
}),
authObj = oAuth.authorize({method: requestMethod, url: url}, {public: this.auth.token, secret: this.auth.tokenSecret});
authObj = oAuth.authorize({method: requestMethod, url: url}, {key: this.auth.token, secret: this.auth.tokenSecret});
return oAuth.toHeader(authObj).Authorization;
};
2 changes: 1 addition & 1 deletion lib/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ module.exports = function(client){
/**
* Get the contributions for the given user
* @param {string} user - The user name
* @param {object} [params] - Optional pagination params
* @param {object} [params] - Optional pagination and sorting params
* @param {function} [callback] - The callback
*/

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"test": "node test/all.js"
},
"dependencies": {
"oauth-1.0a": "1.x.x",
"oauth-1.0a": "2.x.x",
"depd": "1.x.x"
},
"devDependencies": {
Expand Down

0 comments on commit 8233a50

Please sign in to comment.