fast-xml-parser 4.5.5 → 4.5.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fast-xml-parser",
3
- "version": "4.5.5",
3
+ "version": "4.5.6",
4
4
  "description": "Validate XML, Parse XML, Build XML without C/C++ based libraries",
5
5
  "main": "./src/fxp.js",
6
6
  "scripts": {
@@ -100,10 +100,10 @@ function normalizeProcessEntities(value) {
100
100
  return {
101
101
  enabled: value.enabled !== false,
102
102
  maxEntitySize: Math.max(1, value.maxEntitySize ?? 10000),
103
- maxExpansionDepth: Math.max(1, value.maxExpansionDepth ?? 10),
104
- maxTotalExpansions: Math.max(1, value.maxTotalExpansions ?? 1000),
103
+ maxExpansionDepth: Math.max(1, value.maxExpansionDepth ?? 10000),
104
+ maxTotalExpansions: Math.max(1, value.maxTotalExpansions ?? Infinity),
105
105
  maxExpandedLength: Math.max(1, value.maxExpandedLength ?? 100000),
106
- maxEntityCount: Math.max(1, value.maxEntityCount ?? 100),
106
+ maxEntityCount: Math.max(1, value.maxEntityCount ?? 1000),
107
107
  allowedTags: value.allowedTags ?? null,
108
108
  tagFilter: value.tagFilter ?? null
109
109
  };