Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

disconnect

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

disconnect - npm Package Compare versions

Comparing version 0.5.2 to 0.5.3

4

HISTORY.md

@@ -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 @@ ==================

12

lib/marketplace.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc