Comparing version 1.0.4 to 1.0.5
@@ -25,3 +25,3 @@ var querystring = require("querystring"); | ||
var Bitstamp = function(key, secret, client_id, timeout) { | ||
var Bitstamp = function(key, secret, client_id, timeout, host) { | ||
this.key = key; | ||
@@ -31,2 +31,3 @@ this.secret = secret; | ||
this.timeout = timeout || 5000; | ||
this.host = host || 'www.bitstamp.net'; | ||
@@ -39,3 +40,3 @@ _.bindAll(this); | ||
var options = { | ||
host: 'www.bitstamp.net', | ||
host: this.host, | ||
path: path, | ||
@@ -42,0 +43,0 @@ method: method, |
@@ -15,3 +15,4 @@ var Bitstamp = require('./bitstamp.js'); | ||
var timeout = 10000; | ||
var privateBitstamp = new Bitstamp(key, secret, client_id, timeout); | ||
var host = 'www.your.bitstamp.net'; | ||
var privateBitstamp = new Bitstamp(key, secret, client_id, timeout, host); | ||
@@ -18,0 +19,0 @@ // commented out for your protection |
{ | ||
"name": "bitstamp", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"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
12977
296