fast-xml-parser 4.0.4 → 4.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -0
- package/package.json +1 -1
- package/src/xmlbuilder/json2xml.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
Note: If you find missing information about particular minor version, that version must have been changed without any functional change in this library.
|
|
2
2
|
|
|
3
|
+
**4.0.5 / 2022-03-06**
|
|
4
|
+
* fix #437: call tagValueProcessor from XML builder
|
|
5
|
+
|
|
3
6
|
**4.0.4 / 2022-03-03**
|
|
4
7
|
* fix #435: should skip unpaired and self-closing nodes when set as stopnodes
|
|
5
8
|
|
package/package.json
CHANGED
|
@@ -194,7 +194,8 @@ function buildEmptyObjNode(val, key, attrStr, level) {
|
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
function buildTextValNode(val, key, attrStr, level) {
|
|
197
|
-
|
|
197
|
+
let textValue = this.options.tagValueProcessor(key, val);
|
|
198
|
+
textValue = this.replaceEntitiesValue(val);
|
|
198
199
|
|
|
199
200
|
if( textValue === '' && this.options.unpairedTags.indexOf(key) !== -1){ //unpaired
|
|
200
201
|
if(this.options.suppressUnpairedNode){
|