Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.15 to 4.1.0

7

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.1.0 / 2023-02-02**
* Fix '<' or '>' in DTD comment throwing an error. (#533) (By [Adam Baker](https://github.com/Cwazywierdo))
* Set "eNotation" to 'true' as default
**4.0.15 / 2023-01-25**
* make "eNotation" optional
**4.0.14 / 2023-01-22**

@@ -4,0 +11,0 @@ * fixed: add missed typing "eNotation" to parse values

2

package.json
{
"name": "fast-xml-parser",
"version": "4.0.15",
"version": "4.1.0",
"description": "Validate XML, Parse XML, Build XML without C/C++ based libraries",

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

@@ -17,3 +17,3 @@ //TODO: handle comments

for(;i<xmlData.length;i++){
if (xmlData[i] === '<') {
if (xmlData[i] === '<' && !comment) {
if( hasBody &&

@@ -82,10 +82,11 @@ xmlData[i+1] === '!' &&

comment = false;
}else{
throw new Error(`Invalid XML comment in DOCTYPE`);
angleBracketsCount--;
}
}else if(entity){
parseEntityExp(exp, entities);
entity = false;
}else{
if(entity) {
parseEntityExp(exp, entities);
entity = false;
}
angleBracketsCount--;
}
angleBracketsCount--;
if (angleBracketsCount === 0) {

@@ -92,0 +93,0 @@ break;

@@ -18,3 +18,3 @@

leadingZeros: true,
eNotation: false
eNotation: true
},

@@ -21,0 +21,0 @@ tagValueProcessor: function(tagName, val) {

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