xml-toolkit 1.0.30 → 1.0.31

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.
@@ -32,7 +32,7 @@ const XML_DECL = [
32
32
 
33
33
  const _declaration = o => {
34
34
 
35
- if (typeof o !== 'object' || o === null) return
35
+ if (typeof o !== 'object' || o === null) return ''
36
36
 
37
37
  let s = '<?xml'
38
38
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xml-toolkit",
3
- "version": "1.0.30",
3
+ "version": "1.0.31",
4
4
  "description": "Collection of classes for dealing with XML",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/test/test.js CHANGED
@@ -476,8 +476,8 @@ function test_013_soap () {
476
476
  detail
477
477
  })
478
478
 
479
- console.log (SOAP (1.1).message (f))
480
- console.log (SOAP (1.2).message (f))
479
+ console.log (SOAP (1.1).message (f, '', {declaration: {}}))
480
+ // console.log (SOAP (1.2).message (f))
481
481
 
482
482
  }
483
483
 
@@ -497,13 +497,13 @@ async function main () {
497
497
  // await test_003_emitter_sync ('ent.xml')
498
498
  // await test_003_emitter_sync ('soap.xml')
499
499
 
500
- await test_004_schemata ()
501
- await test_005_schemata ()
502
- await test_006_schemata ()
503
- test_007_wsdl ()
504
- await test_008_schemata ()
500
+ // await test_004_schemata ()
501
+ // await test_005_schemata ()
502
+ // await test_006_schemata ()
503
+ // test_007_wsdl ()
504
+ // await test_008_schemata ()
505
505
 
506
- test_009_schemata ('smev-message-exchange-service-1.1.xsd')
506
+ // test_009_schemata ('smev-message-exchange-service-1.1.xsd')
507
507
  // test_009_schemata ('sign.xsd')
508
508
 
509
509
  // test_010_node ()