fast-xml-parser
Advanced tools
Comparing version 4.1.1 to 4.1.2
{ | ||
"name": "fast-xml-parser", | ||
"version": "4.1.1", | ||
"version": "4.1.2", | ||
"description": "Validate XML, Parse XML, Build XML without C/C++ based libraries", | ||
@@ -5,0 +5,0 @@ "main": "./src/fxp.js", |
@@ -140,2 +140,3 @@ 'use strict'; | ||
} | ||
if(aName === "__proto__") aName = "#__proto__"; | ||
if (oldVal !== undefined) { | ||
@@ -142,0 +143,0 @@ if (this.options.trimValues) { |
@@ -11,5 +11,7 @@ 'use strict'; | ||
// this.child.push( {name : key, val: val, isCdata: isCdata }); | ||
if(key === "__proto__") key = "#__proto__"; | ||
this.child.push( {[key]: val }); | ||
} | ||
addChild(node) { | ||
if(node.tagname === "__proto__") node.tagname = "#__proto__"; | ||
if(node[":@"] && Object.keys(node[":@"]).length > 0){ | ||
@@ -16,0 +18,0 @@ this.child.push( { [node.tagname]: node.child, [":@"]: node[":@"] }); |
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
100527
1892