Socket
Socket
Sign inDemoInstall

parsexmlresponse

Package Overview
Dependencies
3
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.3 to 0.0.4

9

index.js

@@ -7,9 +7,10 @@ "use strict";

module.exports = function (callback) {
return function xmlHttpResponse(res) {
return function xmlHttpResponse(req, res) {
var body = '';
res.setEncoding('utf8');
res.on('data', function (chunk) {
req.setEncoding('utf8');
req.on('data', function (chunk) {
body += chunk;
});
res.on('end', function () {
req.on('end', function () {
res.end()
xmlParser.parseString(body, callback);

@@ -16,0 +17,0 @@ });

@@ -7,3 +7,3 @@ {

"description": "Library to spool HTTP responses with an XML body and convert to a javascript object.",
"version": "0.0.3",
"version": "0.0.4",
"main": "index.js",

@@ -10,0 +10,0 @@ "directories": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc