fast-xml-parser 4.3.1 → 4.3.2
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 +3 -0
- package/package.json +5 -5
- package/src/xmlbuilder/json2xml.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
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.3.2 / 2023-10-02**
|
|
4
|
+
* fix `jObj.hasOwnProperty` when give input is null (By [Arda TANRIKULU](https://github.com/ardatan))
|
|
5
|
+
|
|
3
6
|
**4.3.1 / 2023-09-24**
|
|
4
7
|
* revert back "Fix typings for builder and parser to make return type generic" to avoid failure of existing projects. Need to decide a common approach.
|
|
5
8
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fast-xml-parser",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.2",
|
|
4
4
|
"description": "Validate XML, Parse XML, Build XML without C/C++ based libraries",
|
|
5
5
|
"main": "./src/fxp.js",
|
|
6
6
|
"scripts": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"json2xml",
|
|
40
40
|
"html"
|
|
41
41
|
],
|
|
42
|
-
"author": "Amit Gupta (https://
|
|
42
|
+
"author": "Amit Gupta (https://solothought.com)",
|
|
43
43
|
"license": "MIT",
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@babel/core": "^7.13.10",
|
|
@@ -59,11 +59,11 @@
|
|
|
59
59
|
},
|
|
60
60
|
"typings": "src/fxp.d.ts",
|
|
61
61
|
"funding": [{
|
|
62
|
-
"type": "paypal",
|
|
63
|
-
"url": "https://paypal.me/naturalintelligence"
|
|
64
|
-
},{
|
|
65
62
|
"type": "github",
|
|
66
63
|
"url": "https://github.com/sponsors/NaturalIntelligence"
|
|
64
|
+
},{
|
|
65
|
+
"type": "paypal",
|
|
66
|
+
"url": "https://paypal.me/naturalintelligence"
|
|
67
67
|
}],
|
|
68
68
|
"dependencies": {
|
|
69
69
|
"strnum": "^1.0.5"
|
|
@@ -79,7 +79,7 @@ Builder.prototype.j2x = function(jObj, level) {
|
|
|
79
79
|
let attrStr = '';
|
|
80
80
|
let val = '';
|
|
81
81
|
for (let key in jObj) {
|
|
82
|
-
if(!
|
|
82
|
+
if(!Object.prototype.hasOwnProperty.call(jObj, key)) continue;
|
|
83
83
|
if (typeof jObj[key] === 'undefined') {
|
|
84
84
|
// supress undefined node only if it is not an attribute
|
|
85
85
|
if (this.isAttribute(key)) {
|