Socket
Socket
Sign inDemoInstall

fast-xml-parser

Package Overview
Dependencies
Maintainers
1
Versions
136
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-xml-parser - npm Package Compare versions

Comparing version 4.0.5 to 4.0.6

4

CHANGELOG.md
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

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc