unleash-client
Advanced tools
Comparing version 1.0.0-beta.2 to 1.0.0-beta.3
@@ -93,3 +93,3 @@ "use strict"; | ||
} | ||
if (res.statusCode !== 200) { | ||
if (!(res.statusCode >= 200 && res.statusCode < 300)) { | ||
_this.emit('warn', url + " returning " + res.statusCode); | ||
@@ -96,0 +96,0 @@ return; |
@@ -66,4 +66,4 @@ 'use strict'; | ||
} | ||
if (res.statusCode !== 200) { | ||
return _this.emit('error', new Error('Response was not statusCode 200')); | ||
if (!(res.statusCode >= 200 && res.statusCode < 300)) { | ||
return _this.emit('error', new Error("Response was not statusCode 2XX, but was " + res.statusCode)); | ||
} | ||
@@ -70,0 +70,0 @@ try { |
{ | ||
"name": "unleash-client", | ||
"version": "1.0.0-beta.2", | ||
"version": "1.0.0-beta.3", | ||
"description": "Unleash Client for Node", | ||
@@ -29,3 +29,3 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"request": "^2.74.0" | ||
"request": "^2.79.0" | ||
}, | ||
@@ -32,0 +32,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
51555
Updatedrequest@^2.79.0