Comparing version 0.1.14 to 0.1.15
{ | ||
"name": "q-http", | ||
"version": "0.1.14", | ||
"version": "0.1.15", | ||
"description": "Q promise based HTTP client and server interface", | ||
@@ -5,0 +5,0 @@ "homepage": "http://github.com/kriskowal/q-http/", |
@@ -333,4 +333,7 @@ /** | ||
return Q.when(exports.request(request), function (response) { | ||
if (!qualifier(response)) | ||
throw new Error(response); | ||
if (!qualifier(response)){ | ||
var error = new Error("HTTP request failed with code " + response.status); | ||
error.response = response; | ||
throw error; | ||
} | ||
return Q.post(response.body, 'read', []); | ||
@@ -337,0 +340,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
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
2
23953
9
477