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 3.17.0 to 3.17.1

2

package.json
{
"name": "fast-xml-parser",
"version": "3.17.0",
"version": "3.17.1",
"description": "Validate XML or Parse XML to JS/JSON very fast without C/C++ based libraries",

@@ -5,0 +5,0 @@ "main": "./src/parser.js",

@@ -211,5 +211,5 @@ 'use strict';

i = xmlData.indexOf("?>", i) + 1;
} else if( xmlData[i+2] === '-') {
} else if( xmlData[i+1] === '!' && xmlData[i+2] === '-') {
i = xmlData.indexOf("-->", i) + 2;
} else if( xmlData[i+2] === 'D') {
} else if( xmlData[i+1] === '!' && xmlData[i+2] === 'D') {
const closeIndex = xmlData.indexOf(">",i)

@@ -226,10 +226,2 @@ const tagExp = xmlData.substr(i,closeIndex);

//save previous value to the parent node
/* if(currentNode){
if(currentNode.val){
currentNode.val = util.getValue(currentNode.val) + '' + processTagValue2(currentNode.tagname, textData , options);
}else{
currentNode.val = processTagValue2(currentNode.tagname, textData , options);
}
} */
//considerations

@@ -236,0 +228,0 @@ //1. CDATA will always have parent node

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