fast-xml-parser 4.0.14 → 4.0.15

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.0.14",
3
+ "version": "4.0.15",
4
4
  "description": "Validate XML, Parse XML, Build XML without C/C++ based libraries",
5
5
  "main": "./src/fxp.js",
6
6
  "scripts": {
package/src/fxp.d.ts CHANGED
@@ -37,7 +37,7 @@ type strnumOptions = {
37
37
  hex: boolean;
38
38
  leadingZeros: boolean,
39
39
  skipLike?: RegExp,
40
- eNotation: boolean
40
+ eNotation?: boolean
41
41
  }
42
42
  type X2jOptionsOptional = Partial<X2jOptions>;
43
43
  type validationOptions = {
@@ -14,7 +14,8 @@ const defaultOptions = {
14
14
  cdataPropName: false,
15
15
  numberParseOptions: {
16
16
  hex: true,
17
- leadingZeros: true
17
+ leadingZeros: true,
18
+ eNotation: false
18
19
  },
19
20
  tagValueProcessor: function(tagName, val) {
20
21
  return val;