Skip to content

Commit

Permalink
0.6.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Bart van Eijck committed Nov 6, 2015
1 parent e38db7e commit e7f7945
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
0.6.8 / 2015-11-06
==================
* Dependency updates
* Fixed a minor bug in `DiscogsClient.authenticated()`

0.6.7 / 2015-09-15
==================
* Fixed regression bug from version `0.6.6` involving double URL query string encoding in `database().search()`
Expand Down
2 changes: 1 addition & 1 deletion lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ DiscogsClient.prototype.setConfig = function(customConfig){

DiscogsClient.prototype.authenticated = function(level){
level = level||0;
return (this.auth && (this.auth.level > 0) && (this.auth.level >= level));
return (!(typeof this.auth === 'undefined') && (this.auth.level > 0) && (this.auth.level >= level));
};

/**
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "disconnect",
"description": "A full featured Discogs API v2.0 client library",
"version": "0.6.7",
"version": "0.6.8",
"keywords": ["discogs", "api", "client", "oauth"],
"homepage": "https://github.com/bartve/disconnect",
"bugs": "https://github.com/bartve/disconnect/issues",
Expand All @@ -19,10 +19,10 @@
"test": "node test/all.js"
},
"dependencies": {
"oauth-1.0a": "0.2.x"
"oauth-1.0a": "1.x.x"
},
"devDependencies": {
"nock": "^0.48.1",
"nock": "2.x.x",
"wru": "0.2.x"
},
"engines": {
Expand Down

0 comments on commit e7f7945

Please sign in to comment.