Comparing version 0.2.1 to 0.2.2
@@ -11,3 +11,3 @@ var base64 = require('base64-js'), | ||
this.redirect_uri = options.redirect_uri; | ||
this.ENDPOINT = options.endpoint || 'https://www.bitballoon.com'; | ||
this.ENDPOINT = options.endpoint || 'https://api.netlify.com'; | ||
this.VERSION = options.version || 'v1'; | ||
@@ -293,2 +293,6 @@ this.hostname = this.ENDPOINT.match(/^https?:\/\/([^:]+)/)[1]; | ||
request.setTimeout(300000, function() { | ||
request.abort(); | ||
}); | ||
request.on("error", function(err) { | ||
@@ -295,0 +299,0 @@ if ((requestOptions.method == "get" || |
@@ -130,3 +130,4 @@ var path = require("path"), | ||
password: "password", | ||
github: "github" | ||
github: "github", | ||
repo: "repo" | ||
}, | ||
@@ -133,0 +134,0 @@ result = {}; |
@@ -5,3 +5,3 @@ { | ||
"description": "Netlify API client", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"bugs": { | ||
@@ -8,0 +8,0 @@ "url": "https://github.com/netlify/netlify-js/issues" |
157744
4104