parsexmlresponse
Advanced tools
Comparing version 0.0.2 to 0.0.3
10
index.js
@@ -6,3 +6,3 @@ "use strict"; | ||
exports = function (parser, callback) { | ||
module.exports = function (callback) { | ||
return function xmlHttpResponse(res) { | ||
@@ -15,11 +15,5 @@ var body = ''; | ||
res.on('end', function () { | ||
xmlParser.parseString(body, function (err, result) { | ||
if (err) { | ||
callback(err); | ||
} else { | ||
parser(result, callback); | ||
} | ||
}); | ||
xmlParser.parseString(body, callback); | ||
}); | ||
}; | ||
}; |
@@ -7,3 +7,3 @@ { | ||
"description": "Library to spool HTTP responses with an XML body and convert to a javascript object.", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"main": "index.js", | ||
@@ -10,0 +10,0 @@ "directories": { |
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
3037
15