From 8233a50f9d05a2c0b3ce2fd565b1ab32b365995c Mon Sep 17 00:00:00 2001 From: Bart van Eijck Date: Mon, 24 Oct 2016 08:56:00 +0200 Subject: [PATCH] 0.9.1 --- HISTORY.md | 4 ++++ lib/oauth.js | 4 ++-- lib/user.js | 2 +- package.json | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 8544c83..1a855dd 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -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()` diff --git a/lib/oauth.js b/lib/oauth.js index 1db0c98..35fb0e3 100644 --- a/lib/oauth.js +++ b/lib/oauth.js @@ -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; }; \ No newline at end of file diff --git a/lib/user.js b/lib/user.js index 49060d4..c7fa492 100644 --- a/lib/user.js +++ b/lib/user.js @@ -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 */ diff --git a/package.json b/package.json index 6ebda36..4126dbf 100644 --- a/package.json +++ b/package.json @@ -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": {