Socket
Socket
Sign inDemoInstall

xml2js

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xml2js - npm Package Compare versions

Comparing version 0.4.2 to 0.4.3

7

lib/xml2js.js

@@ -86,3 +86,4 @@ // Generated by CoffeeScript 1.7.1

'newline': '\n'
}
},
headless: false
}

@@ -165,3 +166,5 @@ };

};
rootElement = builder.create(rootName, this.options.xmldec, this.options.doctype);
rootElement = builder.create(rootName, this.options.xmldec, this.options.doctype, {
headless: this.options.headless
});
return render(rootElement, rootObj).end(this.options.renderOpts);

@@ -168,0 +171,0 @@ };

@@ -6,3 +6,3 @@ {

"homepage" : "https://github.com/Leonidas-from-XIV/node-xml2js",
"version" : "0.4.2",
"version" : "0.4.3",
"author" : "Marek Kubica <marek@xivilization.net> (http://xivilization.net)",

@@ -33,3 +33,4 @@ "contributors" : [

"Taylor Gautier (https://github.com/tsgautier)",
"Todd Bryan (https://github.com/toddrbryan)"
"Todd Bryan (https://github.com/toddrbryan)",
"Leore Avidar <leore.avidar@gmail.com> (http://leoreavidar.com/)"
],

@@ -48,4 +49,4 @@ "main" : "./lib/xml2js",

"dependencies" : {
"sax" : "0.5.x",
"xmlbuilder" : ">=0.4.2"
"sax" : "0.6.x",
"xmlbuilder" : ">=1.0.0"
},

@@ -52,0 +53,0 @@ "devDependencies" : {

@@ -293,4 +293,6 @@ node-xml2js

* `doctype` (default `null`): optional DTD. Eg. `{'ext': 'hello.dtd'}`
* `headless` (default: `false`): omit the XML header. Added in 0.4.3.
renderOpts, xmldec and doctype pass through to [xmlbuilder-js](https://github.com/oozcitak/xmlbuilder-js)
`renderOpts`, `xmldec`,`doctype` and `headless` pass through to
[xmlbuilder-js](https://github.com/oozcitak/xmlbuilder-js).

@@ -297,0 +299,0 @@ Updating to new version

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc