fast-xml-parser 4.0.2 → 4.0.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  Note: If you find missing information about particular minor version, that version must have been changed without any functional change in this library.
2
2
 
3
+ **4.0.3 / 2022-02-15**
4
+ * fix: ReferenceError when Bundled with Strict (#431) (By [Andreas Heissenberger](https://github.com/aheissenberger))
5
+
6
+
3
7
  **4.0.2 / 2022-02-04**
4
8
  * builder supports `suppressUnpairedNode`
5
9
  * parser supports `ignoreDeclaration` and `ignorePiTags`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fast-xml-parser",
3
- "version": "4.0.2",
3
+ "version": "4.0.3",
4
4
  "description": "Validate XML, Parse XML, Build XML without C/C++ based libraries",
5
5
  "main": "./src/fxp.js",
6
6
  "scripts": {
@@ -72,7 +72,7 @@ function propName(obj){
72
72
  function attr_to_str(attrMap, options){
73
73
  let attrStr = "";
74
74
  if(attrMap && !options.ignoreAttributes){
75
- for( attr in attrMap){
75
+ for (let attr in attrMap){
76
76
  let attrVal = options.attributeValueProcessor(attr, attrMap[attr]);
77
77
  attrVal = replaceEntitiesValue(attrVal, options);
78
78
  if(attrVal === true && options.suppressBooleanAttributes){