Comparing version 0.0.5 to 0.0.6
@@ -43,4 +43,4 @@ // Generated by CoffeeScript 1.9.2 | ||
} | ||
return request(options, function(err, response, body) { | ||
try { | ||
try { | ||
return request(options, function(err, response, body) { | ||
if (err || (response.statusCode !== 200 && response.statusCode !== 400)) { | ||
@@ -50,7 +50,8 @@ return cb(new Error(err != null ? err : response.statusCode)); | ||
return cb(null, body); | ||
} catch (_error) { | ||
err = _error; | ||
return cb(err); | ||
} | ||
}); | ||
}); | ||
} catch (_error) { | ||
err = _error; | ||
console.log("CATCHING ERROR IN Quadrigacx PUBLIC"); | ||
return cb(err); | ||
} | ||
}; | ||
@@ -84,8 +85,14 @@ | ||
}; | ||
return request(options, function(err, response, body) { | ||
if (err || (response.statusCode !== 200 && response.statusCode !== 400)) { | ||
return cb(new Error(err != null ? err : response.statusCode)); | ||
} | ||
return cb(null, body); | ||
}); | ||
try { | ||
console.log("CATCHING ERROR IN Quadrigacx PRIVATE"); | ||
return request(options, function(err, response, body) { | ||
if (err || (response.statusCode !== 200 && response.statusCode !== 400)) { | ||
return cb(new Error(err != null ? err : response.statusCode)); | ||
} | ||
return cb(null, body); | ||
}); | ||
} catch (_error) { | ||
err = _error; | ||
return cb(err); | ||
} | ||
} catch (_error) { | ||
@@ -92,0 +99,0 @@ err = _error; |
{ | ||
"name": "quadrigacx", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "nodejs interface for QuadrigaCX bitcoin exchange", | ||
@@ -5,0 +5,0 @@ "main": "lib/quadrigacx.js", |
4980
109