Comparing version 0.4.15 to 0.4.16
@@ -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. |
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
39240
547
411
+ Addedlodash@4.17.21(transitive)
+ Addedxmlbuilder@4.2.1(transitive)
- Removedxmlbuilder@15.1.1(transitive)
Updatedxmlbuilder@^4.1.0