Comparing version 2.0.1 to 2.0.2
@@ -41,3 +41,3 @@ // Generated by CoffeeScript 1.10.0 | ||
jsonRequest: function(method, path, body) { | ||
var headers, params, verb; | ||
var bodyStr, headers, params, verb; | ||
headers = { | ||
@@ -56,4 +56,4 @@ accept: 'application/json', | ||
if (this.debug) { | ||
body = JSON.stringify(params.body); | ||
console.log('[debug] jsonRequest\n'.cyan, method, params.url, body); | ||
bodyStr = JSON.stringify(body) || ''; | ||
console.log('[debug] jsonRequest\n'.cyan, method, params.url, bodyStr); | ||
} | ||
@@ -60,0 +60,0 @@ if ((this.user != null) && (this.pass != null)) { |
@@ -19,3 +19,3 @@ { | ||
}, | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"main": "cot.js", | ||
@@ -22,0 +22,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
22465
0