Comparing version 0.1.3 to 0.1.4
@@ -26,2 +26,3 @@ var querystring = require("querystring"); | ||
Bitstamp.prototype._request = function(method, path, data, callback, args) { | ||
var options = { | ||
@@ -56,6 +57,16 @@ host: 'www.bitstamp.net', | ||
}); | ||
req.on('error', function(err) { | ||
callback(err); | ||
}); | ||
req.on('socket', function (socket) { | ||
socket.setTimeout(5000); | ||
socket.on('timeout', function() { | ||
req.abort(); | ||
}); | ||
}); | ||
req.end(data); | ||
} | ||
@@ -62,0 +73,0 @@ |
{ | ||
"name": "bitstamp", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Bitstamp REST API wrapper", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
9190
191