disconnect
Advanced tools
Comparing version 0.8.0 to 0.9.0
@@ -0,1 +1,6 @@ | ||
0.9.0 / 2016-06-15 | ||
================== | ||
* Added `user().getLists()` | ||
* Added the new `user().list()` namespace for other list functions. Currently only contains `getItems()`. | ||
0.8.0 / 2016-04-13 | ||
@@ -2,0 +7,0 @@ ================== |
@@ -93,3 +93,3 @@ 'use strict'; | ||
* @param {(number|string)} folder - The folder ID | ||
* @param {object} [params] - Optional extra paging and sorting params, see url above | ||
* @param {object} [params] - Optional extra pagination and sorting params, see url above | ||
* @param {function} [callback] - The callback | ||
@@ -96,0 +96,0 @@ */ |
@@ -18,3 +18,3 @@ 'use strict'; | ||
* @param {(number|string)} artist - The Discogs artist ID | ||
* @param {object} [options] - Show releases by the artist + paging params | ||
* @param {object} [options] - Show releases by the artist + pagination params | ||
* @param {function} [callback] - Callback function | ||
@@ -33,3 +33,3 @@ */ | ||
* @param {(number|string)} artist - The Discogs artist ID | ||
* @param {object} [params] - Paging params | ||
* @param {object} [params] - Optional pagination params | ||
* @param {function} [callback] - Callback function | ||
@@ -107,3 +107,3 @@ */ | ||
* @param {(number|string)} master - The Discogs master release ID | ||
* @param {object} [params] - Paging params | ||
* @param {object} [params] - optional pagination params | ||
* @param {function} [callback] - Callback function | ||
@@ -141,3 +141,3 @@ */ | ||
* @param {(number|string)} label - The Discogs label ID | ||
* @param {object} [params] - Paging params | ||
* @param {object} [params] - Optional pagination params | ||
* @param {function} [callback] - Callback function | ||
@@ -144,0 +144,0 @@ */ |
@@ -123,3 +123,3 @@ 'use strict'; | ||
* @param {string} order - The order ID | ||
* @param {object} [params] - Optional paging parameters | ||
* @param {object} [params] - Optional pagination parameters | ||
* @param {function} [callback] - The callback | ||
@@ -126,0 +126,0 @@ */ |
@@ -33,3 +33,3 @@ 'use strict'; | ||
callback = params; | ||
}else{ // Add paging params when present | ||
}else{ // Add pagination params when present | ||
path = util.addParams(path, params); | ||
@@ -53,3 +53,3 @@ } | ||
/** | ||
* Expose the collection functions and pass the current instance | ||
* Expose the collection functions and pass the client instance | ||
* @returns {object} | ||
@@ -63,3 +63,3 @@ */ | ||
/** | ||
* Expose the wantlist functions and pass the current instance | ||
* Expose the wantlist functions and pass the client instance | ||
* @returns {object} | ||
@@ -73,2 +73,11 @@ */ | ||
/** | ||
* Expose the list functions and pass the client instance | ||
* @returns {object} | ||
*/ | ||
user.list = function(){ | ||
return require('./list.js')(client); | ||
}; | ||
/** | ||
* Get the contributions for the given user | ||
@@ -84,3 +93,3 @@ * @param {string} user - The user name | ||
callback = params; | ||
}else{ // Add paging params when present | ||
}else{ // Add pagination params when present | ||
path = util.addParams(path, params); | ||
@@ -105,3 +114,3 @@ } | ||
callback = params; | ||
}else{ // Add paging params when present | ||
}else{ // Add pagination params when present | ||
path = util.addParams(path, params); | ||
@@ -115,3 +124,20 @@ } | ||
/** | ||
* Get the lists for the given user | ||
* @param {string} user - The user name | ||
* @param {object} [params] - Optional pagination params | ||
* @param {function} [callback] - The callback | ||
*/ | ||
user.getLists = function(user, params, callback){ | ||
var path = '/users/'+util.escape(user)+'/lists'; | ||
if((arguments.length === 2) && (typeof params === 'function')){ | ||
callback = params; | ||
}else{ // Add pagination params when present | ||
path = util.addParams(path, params); | ||
} | ||
client.get(path, callback); | ||
} | ||
return user; | ||
}; |
@@ -12,3 +12,3 @@ 'use strict'; | ||
* @param {string} user - The user name | ||
* @param {object} [params] - Optional paging params | ||
* @param {object} [params] - Optional pagination params | ||
* @param {function} [callback] - The callback | ||
@@ -15,0 +15,0 @@ */ |
{ | ||
"name": "disconnect", | ||
"description": "A full featured Discogs API v2.0 client library", | ||
"version": "0.8.0", | ||
"version": "0.9.0", | ||
"keywords": ["discogs", "api", "client", "oauth"], | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/bartve/disconnect", |
@@ -32,2 +32,3 @@ ## About | ||
-> wantlist() | ||
-> list() | ||
-> util | ||
@@ -34,0 +35,0 @@ ``` |
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
64078
22
1384
164