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.15 to 0.4.16

3

lib/xml2js.js

@@ -211,3 +211,4 @@ // Generated by CoffeeScript 1.10.0

rootElement = builder.create(rootName, this.options.xmldec, this.options.doctype, {
headless: this.options.headless
headless: this.options.headless,
allowSurrogateChars: this.options.allowSurrogateChars
});

@@ -214,0 +215,0 @@ return render(rootElement, rootObj).end(this.options.renderOpts);

@@ -9,3 +9,3 @@ {

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

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

"Tim Johns <timjohns@yahoo.com> (https://github.com/TimJohns)",
"Bogdan Chadkin <trysound@yandex.ru> (https://github.com/TrySound)"
"Bogdan Chadkin <trysound@yandex.ru> (https://github.com/TrySound)",
"David Wood <david.p.wood@gmail.com> (http://codesleuth.co.uk/)"
],

@@ -74,3 +75,3 @@ "main": "./lib/xml2js",

"sax": ">=0.6.0",
"xmlbuilder": ">=2.4.6"
"xmlbuilder": "^4.1.0"
},

@@ -77,0 +78,0 @@ "devDependencies": {

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

-------------------------------
These options are specified by ``new Builder({optionName: value})``.
Possible options are:
* `rootName` (default `root`): root element name to be used in case
* `rootName` (default `root` or the root key name): root element name to be used in case
`explicitRoot` is `false` or to override the root element name.

@@ -342,2 +344,4 @@ * `renderOpts` (default `{ 'pretty': true, 'indent': ' ', 'newline': '\n' }`):

* `headless` (default: `false`): omit the XML header. Added in 0.4.3.
* `allowSurrogateChars` (default: `false`): allows using characters from the Unicode
surrogate blocks.
* `cdata` (default: `false`): wrap text nodes in `<![CDATA[ ... ]]>` instead of

@@ -344,0 +348,0 @@ escaping when necessary. Does not add `<![CDATA[ ... ]]>` if it is not required.

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