fast-xml-parser
Advanced tools
Comparing version 4.0.5 to 4.0.6
Note: If you find missing information about particular minor version, that version must have been changed without any functional change in this library. | ||
**4.0.6 / 2022-03-08** | ||
* fix: call tagValueProcessor only once for array items | ||
* fix: missing changed for #437 | ||
**4.0.5 / 2022-03-06** | ||
@@ -4,0 +8,0 @@ * fix #437: call tagValueProcessor from XML builder |
{ | ||
"name": "fast-xml-parser", | ||
"version": "4.0.5", | ||
"version": "4.0.6", | ||
"description": "Validate XML, Parse XML, Build XML without C/C++ based libraries", | ||
@@ -5,0 +5,0 @@ "main": "./src/fxp.js", |
@@ -21,2 +21,3 @@ # [fast-xml-parser](https://www.npmjs.com/package/fast-xml-parser) | ||
[![](static/img/ni_ads_ads.gif)](https://github.com/NaturalIntelligence/ads/) | ||
## Users | ||
@@ -23,0 +24,0 @@ |
@@ -159,3 +159,3 @@ 'use strict'; | ||
if (object[this.options.textNodeName] !== undefined && Object.keys(object).length === 1) { | ||
return this.buildTextNode(result.val, key, result.attrStr, level); | ||
return this.buildTextNode(object[this.options.textNodeName], key, result.attrStr, level); | ||
} else { | ||
@@ -199,3 +199,3 @@ return this.buildObjNode(result.val, key, result.attrStr, level); | ||
let textValue = this.options.tagValueProcessor(key, val); | ||
textValue = this.replaceEntitiesValue(val); | ||
textValue = this.replaceEntitiesValue(textValue); | ||
@@ -202,0 +202,0 @@ if( textValue === '' && this.options.unpairedTags.indexOf(key) !== -1){ //unpaired |
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
93728
190