disconnect
Advanced tools
Comparing version 0.5.2 to 0.5.3
@@ -0,1 +1,5 @@ | ||
0.5.3 / 2014-12-02 | ||
================== | ||
* Fixed incorrect assumption that a Discogs order ID is numeric in `marketplace().orders()` | ||
0.5.2 / 2014-10-30 | ||
@@ -2,0 +6,0 @@ ================== |
@@ -57,3 +57,3 @@ 'use strict'; | ||
* List your orders or get the details of one order | ||
* @param {object|number} [params] - The optional sorting and pagination params or the order ID | ||
* @param {(object|string)} [params] - The optional sorting and pagination params or the order ID | ||
* @param {function} [callback] - The callback | ||
@@ -66,4 +66,4 @@ */ | ||
callback = params; | ||
}else{ | ||
if(isNaN(params)){ | ||
}else if(params){ | ||
if(typeof params === 'object'){ | ||
path = util.addParams(path, params); | ||
@@ -79,3 +79,3 @@ }else{ // Params is the order ID | ||
* Edit a marketplace order | ||
* @param {(number|string)} order - The order ID | ||
* @param {string} order - The order ID | ||
* @param {object} data - The data for the order | ||
@@ -91,3 +91,3 @@ * @param {function} [callback] - The callback | ||
* List the messages for the given order ID | ||
* @param {(number|string)} order - The order ID | ||
* @param {string} order - The order ID | ||
* @param {object} [params] - Optional paging parameters | ||
@@ -109,3 +109,3 @@ * @param {function} [callback] - The callback | ||
* Add a message to the given order ID | ||
* @param {(number|string)} order - The order ID | ||
* @param {string} order - The order ID | ||
* @param {object} data - The message data | ||
@@ -112,0 +112,0 @@ * @param {function} [callback] - The callback |
@@ -31,3 +31,3 @@ 'use strict'; | ||
util.addParams = function(url, data){ | ||
if((typeof data === 'object') && (Object.keys(data).length > 0)){ | ||
if(data && (typeof data === 'object') && (Object.keys(data).length > 0)){ | ||
url = url+((url.indexOf('?')===-1) ? '?' : '&')+queryString.stringify(data); | ||
@@ -34,0 +34,0 @@ } |
{ | ||
"name": "disconnect", | ||
"description": "An easy to use client library to connect with the discogs.com API v2.0", | ||
"version": "0.5.2", | ||
"version": "0.5.3", | ||
"keywords": ["discogs", "api", "client", "oauth"], | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/bartve/disconnect", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47788