Socket
Socket
Sign inDemoInstall

xmlbuilder

Package Overview
Dependencies
0
Maintainers
1
Versions
98
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 14.0.0 to 15.0.0

5

CHANGELOG.md

@@ -5,2 +5,6 @@ # Change Log

## [14.0.0] - 2020-02-14
- Removed support for node.js 6.0\. Minimum required version is now 8.0.
## [13.0.2] - 2019-05-22

@@ -570,1 +574,2 @@

[13.0.2]: https://github.com/oozcitak/xmlbuilder-js/compare/v13.0.1...v13.0.2
[14.0.0]: https://github.com/oozcitak/xmlbuilder-js/compare/v13.0.2...v14.0.0

2

lib/XMLStringifier.js

@@ -235,3 +235,3 @@ // Generated by CoffeeScript 2.4.1

if (!str.match(regex)) {
throw new Error("Invalid character in name");
throw new Error(`Invalid character in name: ${str}`);
}

@@ -238,0 +238,0 @@ return str;

@@ -255,3 +255,3 @@ // Generated by CoffeeScript 2.4.1

if (childNodeCount === 0 || node.children.every(function(e) {
return (e.type === NodeType.Text || e.type === NodeType.Raw) && e.value === '';
return (e.type === NodeType.Text || e.type === NodeType.Raw || e.type === NodeType.CData) && e.value === '';
})) {

@@ -267,3 +267,3 @@ // empty element

}
} else if (options.pretty && childNodeCount === 1 && (firstChildNode.type === NodeType.Text || firstChildNode.type === NodeType.Raw) && (firstChildNode.value != null)) {
} else if (options.pretty && childNodeCount === 1 && (firstChildNode.type === NodeType.Text || firstChildNode.type === NodeType.Raw || firstChildNode.type === NodeType.CData) && (firstChildNode.value != null)) {
// do not indent text-only nodes

@@ -285,3 +285,3 @@ r += '>';

child = ref2[i];
if ((child.type === NodeType.Text || child.type === NodeType.Raw) && (child.value != null)) {
if ((child.type === NodeType.Text || child.type === NodeType.Raw || child.type === NodeType.CData) && (child.value != null)) {
options.suppressPrettyCount++;

@@ -288,0 +288,0 @@ prettySuppressed = true;

{
"name": "xmlbuilder",
"version": "14.0.0",
"version": "15.0.0",
"keywords": [

@@ -5,0 +5,0 @@ "xml",

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