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 2.2.0 to 2.2.1

lib/validator.js

6

cli.js

@@ -15,3 +15,7 @@ #!/usr/bin/env node

}else{
var options = {};
var options = {
ignoreNameSpace : true,
ignoreNonTextNodeAttr : false,
ignoreTextNodeAttr : false
};
var fileName = "";

@@ -18,0 +22,0 @@ var outputFileName;

6

lib/parser.js

@@ -107,4 +107,6 @@ var getAllMatches = function(string, regex) {

var tags = tagname.split(":");
if(tags.length === 2)
tagname = tags[1];
var prefix = tagname.charAt(0) === "/" ? "/" : "";
if(tags.length === 2) {
tagname = prefix + tags[1];
}
}

@@ -111,0 +113,0 @@ return tagname;

{
"name": "fast-xml-parser",
"version": "2.2.0",
"version": "2.2.1",
"description": "Parse XML to JS/JSON very fast without C/C++ based libraries",

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

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