disconnect
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -0,1 +1,5 @@ | ||
1.0.1 / 2016-11-03 | ||
================== | ||
* Fixed issue with `database().search()` when using a `Promise` | ||
1.0.0 / 2016-10-27 | ||
@@ -2,0 +6,0 @@ ================== |
@@ -164,8 +164,8 @@ 'use strict'; | ||
var obj = {}; | ||
if(arguments.length <= 2){ | ||
if(typeof params === 'function'){ callback = params; } // No extra search params, the callback is the second function param | ||
}else{ | ||
if((arguments.length === 2) && (typeof params === 'function')){ | ||
callback = params; | ||
}else if(params){ | ||
obj = params; | ||
} | ||
if(query){ obj.q = query; } | ||
obj.q = query||''; | ||
return client.get({url: util.addParams('/database/search', obj), authLevel: 1}, callback); | ||
@@ -172,0 +172,0 @@ }; |
{ | ||
"name": "disconnect", | ||
"description": "A full featured Discogs API v2.0 client library", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"keywords": ["discogs", "api", "client", "oauth"], | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/bartve/disconnect", |
63083