xml-toolkit 1.0.31 → 1.0.33
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/lib/XMLMarshaller.js +1 -1
- package/package.json +4 -2
- package/test/20040.wsdl +0 -1812
- package/test/20186.wsdl +0 -114
- package/test/30017.xsd +0 -62
- package/test/30282.xsd +0 -29
- package/test/E05a.xml +0 -5
- package/test/F9ASyncService.xsd +0 -33
- package/test/F9ASyncService_1.wsdl +0 -72
- package/test/F9ASyncService_1.xsd +0 -43
- package/test/F9ASyncService_1_2.xsd +0 -42
- package/test/F9SyncService.xsd +0 -19
- package/test/F9SyncService_1.xsd +0 -33
- package/test/F9SyncService_1_2.xsd +0 -42
- package/test/commons/dom-gosuslugi-ru-smev3-common.xsd +0 -465
- package/test/commons/fns-common-types.xsd +0 -1993
- package/test/commons/fns-dohflna-types.xsd +0 -524
- package/test/commons/pfr-common-types-1.0.0.xsd +0 -29
- package/test/commons/smev-supplementary-commons-1.0.1.xsd +0 -689
- package/test/commons/smev-supplementary-commons.xsd +0 -689
- package/test/dom-gosuslugi-ru-smev3-debt-responses.xsd +0 -776
- package/test/ent.xml +0 -6
- package/test/fns-dohflna-ru-root.xsd +0 -299
- package/test/fns-inn-singular-ru-root.xsd +0 -62
- package/test/fns-innfdrfio-root.xsd +0 -89
- package/test/not-sa01.xml +0 -10
- package/test/not-sa02.xml +0 -30
- package/test/param_types.xml +0 -1
- package/test/sign.xsd +0 -71
- package/test/smev-message-exchange-basic-1.1.xsd +0 -380
- package/test/smev-message-exchange-faults-1.1.xsd +0 -365
- package/test/smev-message-exchange-service-1.1.xsd +0 -643
- package/test/smev-message-exchange-types-1.1.xsd +0 -697
- package/test/snils-by-additionalData-1.0.1.xsd +0 -29
- package/test/soap.xml +0 -40
- package/test/supplementary/fns-common-types.xsd +0 -430
- package/test/supplementary/smev-supplementary-commons.xsd +0 -689
- package/test/test.js +0 -520
package/lib/XMLMarshaller.js
CHANGED
|
@@ -247,7 +247,7 @@ const XMLMarshaller = class {
|
|
|
247
247
|
|
|
248
248
|
case 'simpleType':
|
|
249
249
|
|
|
250
|
-
if (data !== null && typeof data === 'object') data = data [null]
|
|
250
|
+
if (data !== null && typeof data === 'object' && !(data instanceof Date)) data = data [null]
|
|
251
251
|
|
|
252
252
|
if (data != null) this.appendScalar (node, data)
|
|
253
253
|
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xml-toolkit",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.0.33",
|
|
4
|
+
"description": "XML parser, marshaller, SOAP adapter",
|
|
5
5
|
"main": "index.js",
|
|
6
|
+
"files": ["/lib"],
|
|
6
7
|
"scripts": {
|
|
7
8
|
"test": "node test/test.js"
|
|
8
9
|
},
|
|
@@ -14,6 +15,7 @@
|
|
|
14
15
|
"xml",
|
|
15
16
|
"soap",
|
|
16
17
|
"xsd",
|
|
18
|
+
"wsdl",
|
|
17
19
|
"sax"
|
|
18
20
|
],
|
|
19
21
|
"author": "Dmitry Ovsyanko",
|