fast-xml-parser 4.5.2 → 4.5.4

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.
@@ -0,0 +1,21 @@
1
+ Error: While loading /home/amit/code/git/temp/fast-xml-parser/spec/v6/xmlParser_spec.js: SyntaxError: The requested module './OutputBuilders/JsObjBuilder.js' does not provide an export named 'JsObjOutputBuilder'
2
+ at fixupImportException (/home/amit/code/git/temp/fast-xml-parser/node_modules/jasmine/lib/loader.js:152:12)
3
+ at /home/amit/code/git/temp/fast-xml-parser/node_modules/jasmine/lib/loader.js:31:37
4
+ at async Jasmine._loadFiles (/home/amit/code/git/temp/fast-xml-parser/node_modules/jasmine/lib/jasmine.js:142:7)
5
+ ... 5 lines matching cause stack trace ...
6
+ at async Command.run (/home/amit/code/git/temp/fast-xml-parser/node_modules/jasmine/lib/command.js:72:9) {
7
+ [cause]: file:///home/amit/code/git/temp/fast-xml-parser/src/v6/OptionsBuilder.js:2
8
+ import {JsObjOutputBuilder} from './OutputBuilders/JsObjBuilder.js';
9
+ ^^^^^^^^^^^^^^^^^^
10
+ SyntaxError: The requested module './OutputBuilders/JsObjBuilder.js' does not provide an export named 'JsObjOutputBuilder'
11
+ at ModuleJob._instantiate (node:internal/modules/esm/module_job:180:21)
12
+ at async ModuleJob.run (node:internal/modules/esm/module_job:263:5)
13
+ at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:578:26)
14
+ at async Jasmine._loadFiles (/home/amit/code/git/temp/fast-xml-parser/node_modules/jasmine/lib/jasmine.js:142:7)
15
+ at async Jasmine.loadSpecs (/home/amit/code/git/temp/fast-xml-parser/node_modules/jasmine/lib/jasmine.js:133:5)
16
+ at async /home/amit/code/git/temp/fast-xml-parser/node_modules/jasmine/lib/jasmine.js:223:9
17
+ at async Jasmine.withinGlobalSetup_ (/home/amit/code/git/temp/fast-xml-parser/node_modules/jasmine/lib/runner_base.js:420:7)
18
+ at async Jasmine.execute (/home/amit/code/git/temp/fast-xml-parser/node_modules/jasmine/lib/jasmine.js:222:7)
19
+ at async runJasmine (/home/amit/code/git/temp/fast-xml-parser/node_modules/jasmine/lib/command.js:209:5)
20
+ at async Command.run (/home/amit/code/git/temp/fast-xml-parser/node_modules/jasmine/lib/command.js:72:9)
21
+ }
@@ -0,0 +1,21 @@
1
+ Error: While loading /home/amit/code/git/temp/fast-xml-parser/spec/v6/xmlParser_spec.js: SyntaxError: The requested module './TagPath.js' does not provide an export named 'TagPath'
2
+ at fixupImportException (/home/amit/code/git/temp/fast-xml-parser/node_modules/jasmine/lib/loader.js:152:12)
3
+ at /home/amit/code/git/temp/fast-xml-parser/node_modules/jasmine/lib/loader.js:31:37
4
+ at async Jasmine._loadFiles (/home/amit/code/git/temp/fast-xml-parser/node_modules/jasmine/lib/jasmine.js:142:7)
5
+ ... 5 lines matching cause stack trace ...
6
+ at async Command.run (/home/amit/code/git/temp/fast-xml-parser/node_modules/jasmine/lib/command.js:72:9) {
7
+ [cause]: file:///home/amit/code/git/temp/fast-xml-parser/src/v6/TagPathMatcher.js:1
8
+ import {TagPath} from './TagPath.js';
9
+ ^^^^^^^
10
+ SyntaxError: The requested module './TagPath.js' does not provide an export named 'TagPath'
11
+ at ModuleJob._instantiate (node:internal/modules/esm/module_job:180:21)
12
+ at async ModuleJob.run (node:internal/modules/esm/module_job:263:5)
13
+ at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:578:26)
14
+ at async Jasmine._loadFiles (/home/amit/code/git/temp/fast-xml-parser/node_modules/jasmine/lib/jasmine.js:142:7)
15
+ at async Jasmine.loadSpecs (/home/amit/code/git/temp/fast-xml-parser/node_modules/jasmine/lib/jasmine.js:133:5)
16
+ at async /home/amit/code/git/temp/fast-xml-parser/node_modules/jasmine/lib/jasmine.js:223:9
17
+ at async Jasmine.withinGlobalSetup_ (/home/amit/code/git/temp/fast-xml-parser/node_modules/jasmine/lib/runner_base.js:420:7)
18
+ at async Jasmine.execute (/home/amit/code/git/temp/fast-xml-parser/node_modules/jasmine/lib/jasmine.js:222:7)
19
+ at async runJasmine (/home/amit/code/git/temp/fast-xml-parser/node_modules/jasmine/lib/command.js:209:5)
20
+ at async Command.run (/home/amit/code/git/temp/fast-xml-parser/node_modules/jasmine/lib/command.js:72:9)
21
+ }
@@ -0,0 +1,11 @@
1
+ TypeError: Cannot read properties of undefined (reading 'preserveOrder')
2
+ at buildOptions (file:///home/amit/code/git/temp/fast-xml-parser/src/v6/OutputBuilders/ParserOptionsBuilder.js:53:12)
3
+ at new OutputBuilder (file:///home/amit/code/git/temp/fast-xml-parser/src/v6/OutputBuilders/JsObjBuilder.js:7:22)
4
+ at file:///home/amit/code/git/temp/fast-xml-parser/src/v6/OptionsBuilder.js:35:18
5
+ at ModuleJob.run (node:internal/modules/esm/module_job:271:25)
6
+ at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:578:26)
7
+ at async Jasmine._loadFiles (/home/amit/code/git/temp/fast-xml-parser/node_modules/jasmine/lib/jasmine.js:142:7)
8
+ at async Jasmine.loadSpecs (/home/amit/code/git/temp/fast-xml-parser/node_modules/jasmine/lib/jasmine.js:133:5)
9
+ at async /home/amit/code/git/temp/fast-xml-parser/node_modules/jasmine/lib/jasmine.js:223:9
10
+ at async Jasmine.withinGlobalSetup_ (/home/amit/code/git/temp/fast-xml-parser/node_modules/jasmine/lib/runner_base.js:420:7)
11
+ at async Jasmine.execute (/home/amit/code/git/temp/fast-xml-parser/node_modules/jasmine/lib/jasmine.js:222:7)
@@ -0,0 +1,26 @@
1
+ Randomized with seed 20147
2
+ Started
3
+ ..F.F
4
+
5
+ Failures:
6
+ 1) XMLParser v6 should parse only true numbers
7
+ Message:
8
+ Expected $.rootNode.intTag = 45 to equal '045'.
9
+ Stack:
10
+ at <Jasmine>
11
+ at UserContext.<anonymous> (file:///home/amit/code/git/temp/fast-xml-parser/spec/v6/xmlParser_spec.js:63:20)
12
+ at <Jasmine>
13
+
14
+ 2) XMLParser v6 should not parse values to primitive type
15
+ Message:
16
+ Expected $.rootNode.boolean = true to equal 'true'.
17
+ Expected $.rootNode.intTag = 45 to equal '045'.
18
+ Expected $.rootNode.floatTag = 65.34 to equal '65.34'.
19
+ Stack:
20
+ at <Jasmine>
21
+ at UserContext.<anonymous> (file:///home/amit/code/git/temp/fast-xml-parser/spec/v6/xmlParser_spec.js:120:20)
22
+ at <Jasmine>
23
+
24
+ 5 specs, 2 failures
25
+ Finished in 0.016 seconds
26
+ Randomized with seed 20147 (jasmine --random=true --seed=20147)
@@ -0,0 +1,17 @@
1
+ Randomized with seed 74872
2
+ Started
3
+ ..F..
4
+
5
+ Failures:
6
+ 1) XMLParser v6 should parse all values as string, int, boolean, float, hexadecimal
7
+ Message:
8
+ Expected $.rootNode.boolean = 'true' to equal true.
9
+ Expected $.rootNode.intTag = '045' to equal 45.
10
+ Stack:
11
+ at <Jasmine>
12
+ at UserContext.<anonymous> (file:///home/amit/code/git/temp/fast-xml-parser/spec/v6/xmlParser_spec.js:28:20)
13
+ at <Jasmine>
14
+
15
+ 5 specs, 1 failure
16
+ Finished in 0.014 seconds
17
+ Randomized with seed 74872 (jasmine --random=true --seed=74872)
@@ -0,0 +1,98 @@
1
+ Randomized with seed 51104
2
+ Started
3
+ TagName: tag ValueParsers: [
4
+ 'trim', 'join',
5
+ 'number', 'boolean',
6
+ 'currency', 'trim',
7
+ 'number', 'boolean',
8
+ 'currency'
9
+ ]
10
+ TagName: boolean ValueParsers: [
11
+ 'trim', 'join',
12
+ 'number', 'boolean',
13
+ 'currency', 'trim',
14
+ 'number', 'boolean',
15
+ 'currency'
16
+ ]
17
+ TagName: intTag ValueParsers: [
18
+ 'trim', 'join',
19
+ 'number', 'boolean',
20
+ 'currency', 'trim',
21
+ 'number', 'boolean',
22
+ 'currency'
23
+ ]
24
+ TagName: floatTag ValueParsers: [
25
+ 'trim', 'join',
26
+ 'number', 'boolean',
27
+ 'currency', 'trim',
28
+ 'number', 'boolean',
29
+ 'currency'
30
+ ]
31
+ TagName: hexadecimal ValueParsers: [
32
+ 'trim', 'join',
33
+ 'number', 'boolean',
34
+ 'currency', 'trim',
35
+ 'number', 'boolean',
36
+ 'currency'
37
+ ]
38
+ TagName: rootNode ValueParsers: [
39
+ 'trim', 'join',
40
+ 'number', 'boolean',
41
+ 'currency', 'trim',
42
+ 'number', 'boolean',
43
+ 'currency'
44
+ ]
45
+ .TagName: tag ValueParsers: []
46
+ TagName: boolean ValueParsers: []
47
+ TagName: intTag ValueParsers: []
48
+ TagName: floatTag ValueParsers: []
49
+ TagName: rootNode ValueParsers: []
50
+ .TagName: tag ValueParsers: []
51
+ TagName: rootNode ValueParsers: []
52
+ .TagName: floatTag0 ValueParsers: [ numParser { options: { leadingZeros: false } } ]
53
+ TagName: floatTag1 ValueParsers: [ numParser { options: { leadingZeros: false } } ]
54
+ TagName: floatTag2 ValueParsers: [ numParser { options: { leadingZeros: false } } ]
55
+ TagName: floatTag3 ValueParsers: [ numParser { options: { leadingZeros: false } } ]
56
+ TagName: rootNode ValueParsers: [ numParser { options: { leadingZeros: false } } ]
57
+ .TagName: tag ValueParsers: [
58
+ 'boolean',
59
+ numParser {
60
+ options: { hex: true, leadingZeros: false, eNotation: true }
61
+ }
62
+ ]
63
+ TagName: boolean ValueParsers: [
64
+ 'boolean',
65
+ numParser {
66
+ options: { hex: true, leadingZeros: false, eNotation: true }
67
+ }
68
+ ]
69
+ TagName: intTag ValueParsers: [
70
+ 'boolean',
71
+ numParser {
72
+ options: { hex: true, leadingZeros: false, eNotation: true }
73
+ }
74
+ ]
75
+ TagName: floatTag ValueParsers: [
76
+ 'boolean',
77
+ numParser {
78
+ options: { hex: true, leadingZeros: false, eNotation: true }
79
+ }
80
+ ]
81
+ TagName: long ValueParsers: [
82
+ 'boolean',
83
+ numParser {
84
+ options: { hex: true, leadingZeros: false, eNotation: true }
85
+ }
86
+ ]
87
+ TagName: rootNode ValueParsers: [
88
+ 'boolean',
89
+ numParser {
90
+ options: { hex: true, leadingZeros: false, eNotation: true }
91
+ }
92
+ ]
93
+ .
94
+
95
+
96
+ 5 specs, 0 failures
97
+ Finished in 0.015 seconds
98
+ Randomized with seed 51104 (jasmine --random=true --seed=51104)
@@ -0,0 +1,48 @@
1
+ Randomized with seed 51667
2
+ Started
3
+ ......FFF.F
4
+
5
+ Failures:
6
+ 1) XMLParser v6 should skip tag arguments
7
+ Message:
8
+ Expected $.rootNode.intTag = '45' to equal 45.
9
+ Expected $.rootNode.floatTag = '65.34' to equal 65.34.
10
+ Stack:
11
+ at <Jasmine>
12
+ at UserContext.<anonymous> (file:///home/amit/code/git/temp/fast-xml-parser/spec/v6/xmlParser_spec.js:165:20)
13
+ at <Jasmine>
14
+
15
+ 2) XMLParser v6 should ignore namespace and text node attributes
16
+ Message:
17
+ Expected object to have properties
18
+ node: Object({ tag: Object({ @_arg: 'value', #text: 'value' }), intTag: Object({ @_arg: 'value', @_arg2: 'value2', #text: 45 }), floatTag: 65.34, nsTag: Object({ @_attr: 'tns' }), nsTagNoAttr: '' })
19
+ Expected object not to have properties
20
+ root:node: Object({ tag: Object({ @_ns:arg: 'value', #text: 'value' }), intTag: Object({ @_ns:arg: 'value', @_ns:arg2: 'value2', #text: '45' }), floatTag: '65.34', nsTag: Object({ @_xmlns:tns-ns: 'urn:none', @_tns-ns:attr: 'tns' }), nsTagNoAttr: Object({ @_xmlns:tns-ns: 'urn:none' }) })
21
+ Stack:
22
+ at <Jasmine>
23
+ at UserContext.<anonymous> (file:///home/amit/code/git/temp/fast-xml-parser/spec/v6/xmlParser_spec.js:207:20)
24
+ at <Jasmine>
25
+
26
+ 3) XMLParser v6 should parse all values as string, int, boolean, float, hexadecimal
27
+ Message:
28
+ Expected $.rootNode.boolean = 'true' to equal true.
29
+ Expected $.rootNode.intTag = '045' to equal 45.
30
+ Expected $.rootNode.floatTag = '65.34' to equal 65.34.
31
+ Expected $.rootNode.hexadecimal = '0x15' to equal 21.
32
+ Stack:
33
+ at <Jasmine>
34
+ at UserContext.<anonymous> (file:///home/amit/code/git/temp/fast-xml-parser/spec/v6/xmlParser_spec.js:28:20)
35
+ at <Jasmine>
36
+
37
+ 4) XMLParser v6 should parse repeated nodes in array
38
+ Message:
39
+ Expected $.rootNode.tag[1] = '45' to equal 45.
40
+ Expected $.rootNode.tag[2] = '65.34' to equal 65.34.
41
+ Stack:
42
+ at <Jasmine>
43
+ at UserContext.<anonymous> (file:///home/amit/code/git/temp/fast-xml-parser/spec/v6/xmlParser_spec.js:259:20)
44
+ at <Jasmine>
45
+
46
+ 11 specs, 4 failures
47
+ Finished in 0.023 seconds
48
+ Randomized with seed 51667 (jasmine --random=true --seed=51667)
@@ -0,0 +1,30 @@
1
+ Randomized with seed 18744
2
+ Started
3
+ .....FF....
4
+
5
+ Failures:
6
+ 1) XMLParser v6 should parse nested nodes in nested properties
7
+ Message:
8
+ Expected $.rootNode.parenttag.tag[1] = '45' to equal 45.
9
+ Expected $.rootNode.parenttag.tag[2] = '65.34' to equal 65.34.
10
+ Stack:
11
+ at <Jasmine>
12
+ at UserContext.<anonymous> (file:///home/amit/code/git/temp/fast-xml-parser/spec/v6/xmlParser_spec.js:281:20)
13
+ at <Jasmine>
14
+
15
+ 2) XMLParser v6 should ignore namespace and text node attributes
16
+ Message:
17
+ ReferenceError: reportError is not defined
18
+ Stack:
19
+ at resolveNameSpace (file:///home/amit/code/git/temp/fast-xml-parser/src/v6/Xml2JsParser.js:232:12)
20
+ at Xml2JsParser.processTagName (file:///home/amit/code/git/temp/fast-xml-parser/src/v6/Xml2JsParser.js:185:12)
21
+ at Xml2JsParser.readClosingTag (file:///home/amit/code/git/temp/fast-xml-parser/src/v6/Xml2JsParser.js:87:26)
22
+ at Xml2JsParser.parseXml (file:///home/amit/code/git/temp/fast-xml-parser/src/v6/Xml2JsParser.js:69:16)
23
+ at Xml2JsParser.parse (file:///home/amit/code/git/temp/fast-xml-parser/src/v6/Xml2JsParser.js:35:10)
24
+ at XMLParser.parse (file:///home/amit/code/git/temp/fast-xml-parser/src/v6/XMLParser.js:34:23)
25
+ at UserContext.<anonymous> (file:///home/amit/code/git/temp/fast-xml-parser/spec/v6/xmlParser_spec.js:205:25)
26
+ at <Jasmine>
27
+
28
+ 11 specs, 2 failures
29
+ Finished in 0.02 seconds
30
+ Randomized with seed 18744 (jasmine --random=true --seed=18744)
@@ -0,0 +1,41 @@
1
+ Randomized with seed 42237
2
+ Started
3
+ .F.....FF..
4
+
5
+ Failures:
6
+ 1) XMLParser v6 should ignore namespace and text node attributes
7
+ Message:
8
+ Error: Multiple namespaces tag
9
+ Stack:
10
+ at resolveNameSpace (file:///home/amit/code/git/temp/fast-xml-parser/src/v6/Xml2JsParser.js:232:18)
11
+ at Xml2JsParser.processTagName (file:///home/amit/code/git/temp/fast-xml-parser/src/v6/Xml2JsParser.js:185:12)
12
+ at Xml2JsParser.readClosingTag (file:///home/amit/code/git/temp/fast-xml-parser/src/v6/Xml2JsParser.js:87:26)
13
+ at Xml2JsParser.parseXml (file:///home/amit/code/git/temp/fast-xml-parser/src/v6/Xml2JsParser.js:69:16)
14
+ at Xml2JsParser.parse (file:///home/amit/code/git/temp/fast-xml-parser/src/v6/Xml2JsParser.js:35:10)
15
+ at XMLParser.parse (file:///home/amit/code/git/temp/fast-xml-parser/src/v6/XMLParser.js:34:23)
16
+ at UserContext.<anonymous> (file:///home/amit/code/git/temp/fast-xml-parser/spec/v6/xmlParser_spec.js:205:25)
17
+ at <Jasmine>
18
+
19
+ 2) XMLParser v6 should parse all values as string, int, boolean, float, hexadecimal
20
+ Message:
21
+ Expected $.rootNode.boolean = 'true' to equal true.
22
+ Expected $.rootNode.intTag = '045' to equal 45.
23
+ Expected $.rootNode.floatTag = '65.34' to equal 65.34.
24
+ Expected $.rootNode.hexadecimal = '0x15' to equal 21.
25
+ Stack:
26
+ at <Jasmine>
27
+ at UserContext.<anonymous> (file:///home/amit/code/git/temp/fast-xml-parser/spec/v6/xmlParser_spec.js:28:20)
28
+ at <Jasmine>
29
+
30
+ 3) XMLParser v6 should parse nested nodes in nested properties
31
+ Message:
32
+ Expected $.rootNode.parenttag.tag[1] = '45' to equal 45.
33
+ Expected $.rootNode.parenttag.tag[2] = '65.34' to equal 65.34.
34
+ Stack:
35
+ at <Jasmine>
36
+ at UserContext.<anonymous> (file:///home/amit/code/git/temp/fast-xml-parser/spec/v6/xmlParser_spec.js:281:20)
37
+ at <Jasmine>
38
+
39
+ 11 specs, 3 failures
40
+ Finished in 0.02 seconds
41
+ Randomized with seed 42237 (jasmine --random=true --seed=42237)