restjs-api
Advanced tools
Comparing version 0.1.8 to 1.0.0
13
index.js
@@ -6,3 +6,6 @@ var request = require("request"); | ||
"timeout", "proxy", "jar", "auth", "oauth", "aws", | ||
"strictSSL" | ||
"strictSSL", "useQuerystring", "form", "formData", | ||
"multipart", "preambleCRLF", "postambleCRLF", "hawk", | ||
"agentOptions", "httpSignature", "gzip", "tunnel", | ||
"proxyHeaderWhiteList", "proxyHeaderExclusiveList" | ||
]; | ||
@@ -120,3 +123,9 @@ | ||
// send request and pipe the response | ||
cb(null, request(optionsToUse)); | ||
request(optionsToUse) | ||
.on('response', function (response) { | ||
cb(null, response, response.headers); | ||
}) | ||
.once('error', function (err) { | ||
cb(err); | ||
}); | ||
@@ -123,0 +132,0 @@ } else { |
{ | ||
"name": "restjs-api", | ||
"version": "0.1.8", | ||
"version": "1.0.0", | ||
"description": "Kidozen's connector to invoke REST services", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "mocha -R spec" | ||
"test": "istanbul cover _mocha -- -R spec" | ||
}, | ||
@@ -9,0 +9,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
13195
279
1