Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "rerun", | ||
"description": "A retry library for node.js", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"author": "BigPanda <noam@bigpanda.io>", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -13,5 +13,5 @@ var request = require('request'); | ||
if (response && response.statusCode == 400) { | ||
return Q.reject(new RejectError('Status code: ' + response.statusCode + '. ' + (body ? 'body: ' + JSON.stringify(body) : ''))); | ||
return Q.reject(new RejectError({ message: 'Status code: ' + response.statusCode + '. ' + (body ? 'body: ' + JSON.stringify(body) : ''), response: response, body: body })); | ||
} else if (response && response.statusCode >= 300) { | ||
return Q.reject(new Error('Status code: ' + response.statusCode + '. ' + (body ? 'body: ' + JSON.stringify(body) : ''))); | ||
return Q.reject(new Error({ message: 'Status code: ' + response.statusCode + '. ' + (body ? 'body: ' + JSON.stringify(body) : ''), response: response, body: body })); | ||
} | ||
@@ -18,0 +18,0 @@ |
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
18974