@zowe/cics-for-zowe-cli 6.0.0 → 6.2.3

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.
Files changed (171) hide show
  1. package/npm-shrinkwrap.json +33 -37
  2. package/package.json +3 -7
  3. package/node_modules/@zowe/cics-for-zowe-sdk/LICENSE +0 -277
  4. package/node_modules/@zowe/cics-for-zowe-sdk/README.md +0 -161
  5. package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/CicsCmci.constants.d.ts +0 -16
  6. package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/CicsCmci.constants.js +0 -83
  7. package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/CicsCmci.constants.js.map +0 -1
  8. package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/CicsCmci.messages.d.ts +0 -17
  9. package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/CicsCmci.messages.js +0 -22
  10. package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/CicsCmci.messages.js.map +0 -1
  11. package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/index.d.ts +0 -12
  12. package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/index.js +0 -29
  13. package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/index.js.map +0 -1
  14. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICMCIApiResponse.d.ts +0 -33
  15. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICMCIApiResponse.js +0 -13
  16. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICMCIApiResponse.js.map +0 -1
  17. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICMCIResponseResultSummary.d.ts +0 -28
  18. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICMCIResponseResultSummary.js +0 -13
  19. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICMCIResponseResultSummary.js.map +0 -1
  20. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICSDGroupParms.d.ts +0 -30
  21. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICSDGroupParms.js +0 -13
  22. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICSDGroupParms.js.map +0 -1
  23. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IProgramParms.d.ts +0 -30
  24. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IProgramParms.js +0 -13
  25. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IProgramParms.js.map +0 -1
  26. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResourceParms.d.ts +0 -41
  27. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResourceParms.js +0 -13
  28. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResourceParms.js.map +0 -1
  29. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ITransactionParms.d.ts +0 -35
  30. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ITransactionParms.js +0 -13
  31. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ITransactionParms.js.map +0 -1
  32. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IURIMapParms.d.ts +0 -89
  33. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IURIMapParms.js +0 -13
  34. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IURIMapParms.js.map +0 -1
  35. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IWebServiceParms.d.ts +0 -55
  36. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IWebServiceParms.js +0 -13
  37. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IWebServiceParms.js.map +0 -1
  38. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/index.d.ts +0 -18
  39. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/index.js +0 -35
  40. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/index.js.map +0 -1
  41. package/node_modules/@zowe/cics-for-zowe-sdk/lib/index.d.ts +0 -14
  42. package/node_modules/@zowe/cics-for-zowe-sdk/lib/index.js +0 -31
  43. package/node_modules/@zowe/cics-for-zowe-sdk/lib/index.js.map +0 -1
  44. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/add-to-list/AddToList.d.ts +0 -23
  45. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/add-to-list/AddToList.js +0 -54
  46. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/add-to-list/AddToList.js.map +0 -1
  47. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/add-to-list/index.d.ts +0 -11
  48. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/add-to-list/index.js +0 -28
  49. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/add-to-list/index.js.map +0 -1
  50. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/define/Define.d.ts +0 -85
  51. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/define/Define.js +0 -290
  52. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/define/Define.js.map +0 -1
  53. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/define/index.d.ts +0 -11
  54. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/define/index.js +0 -28
  55. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/define/index.js.map +0 -1
  56. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/delete/Delete.d.ts +0 -58
  57. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/delete/Delete.js +0 -107
  58. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/delete/Delete.js.map +0 -1
  59. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/delete/index.d.ts +0 -11
  60. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/delete/index.js +0 -28
  61. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/delete/index.js.map +0 -1
  62. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/disable/Disable.d.ts +0 -24
  63. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/disable/Disable.js +0 -50
  64. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/disable/Disable.js.map +0 -1
  65. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/disable/index.d.ts +0 -11
  66. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/disable/index.js +0 -28
  67. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/disable/index.js.map +0 -1
  68. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/discard/Discard.d.ts +0 -35
  69. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/discard/Discard.js +0 -70
  70. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/discard/Discard.js.map +0 -1
  71. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/discard/index.d.ts +0 -11
  72. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/discard/index.js +0 -28
  73. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/discard/index.js.map +0 -1
  74. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/enable/Enable.d.ts +0 -24
  75. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/enable/Enable.js +0 -50
  76. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/enable/Enable.js.map +0 -1
  77. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/enable/index.d.ts +0 -11
  78. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/enable/index.js +0 -28
  79. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/enable/index.js.map +0 -1
  80. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/get/Get.d.ts +0 -23
  81. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/get/Get.js +0 -45
  82. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/get/Get.js.map +0 -1
  83. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/get/index.d.ts +0 -11
  84. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/get/index.js +0 -28
  85. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/get/index.js.map +0 -1
  86. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/index.d.ts +0 -20
  87. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/index.js +0 -37
  88. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/index.js.map +0 -1
  89. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/install/Install.d.ts +0 -48
  90. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/install/Install.js +0 -113
  91. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/install/Install.js.map +0 -1
  92. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/install/index.d.ts +0 -11
  93. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/install/index.js +0 -28
  94. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/install/index.js.map +0 -1
  95. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/remove-from-list/RemoveFromList.d.ts +0 -23
  96. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/remove-from-list/RemoveFromList.js +0 -39
  97. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/remove-from-list/RemoveFromList.js.map +0 -1
  98. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/remove-from-list/index.d.ts +0 -11
  99. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/remove-from-list/index.js +0 -28
  100. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/remove-from-list/index.js.map +0 -1
  101. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/set/Set.d.ts +0 -23
  102. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/set/Set.js +0 -47
  103. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/set/Set.js.map +0 -1
  104. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/set/index.d.ts +0 -11
  105. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/set/index.js +0 -28
  106. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/set/index.js.map +0 -1
  107. package/node_modules/@zowe/cics-for-zowe-sdk/lib/rest/CicsCmciRestClient.d.ts +0 -128
  108. package/node_modules/@zowe/cics-for-zowe-sdk/lib/rest/CicsCmciRestClient.js +0 -220
  109. package/node_modules/@zowe/cics-for-zowe-sdk/lib/rest/CicsCmciRestClient.js.map +0 -1
  110. package/node_modules/@zowe/cics-for-zowe-sdk/lib/rest/index.d.ts +0 -11
  111. package/node_modules/@zowe/cics-for-zowe-sdk/lib/rest/index.js +0 -28
  112. package/node_modules/@zowe/cics-for-zowe-sdk/lib/rest/index.js.map +0 -1
  113. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xml2js/LICENSE +0 -19
  114. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xml2js/README.md +0 -507
  115. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xml2js/lib/bom.js +0 -12
  116. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xml2js/lib/builder.js +0 -127
  117. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xml2js/lib/defaults.js +0 -72
  118. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xml2js/lib/parser.js +0 -385
  119. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xml2js/lib/processors.js +0 -34
  120. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xml2js/lib/xml2js.js +0 -39
  121. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xml2js/package.json +0 -93
  122. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/CHANGELOG.md +0 -470
  123. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/LICENSE +0 -21
  124. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/README.md +0 -86
  125. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/appveyor.yml +0 -20
  126. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/lib/Derivation.js +0 -10
  127. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/lib/DocumentPosition.js +0 -12
  128. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/lib/NodeType.js +0 -23
  129. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/lib/OperationType.js +0 -11
  130. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/lib/Utility.js +0 -83
  131. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/lib/WriterState.js +0 -10
  132. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/lib/XMLAttribute.js +0 -108
  133. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/lib/XMLCData.js +0 -36
  134. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/lib/XMLCharacterData.js +0 -79
  135. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/lib/XMLComment.js +0 -36
  136. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/lib/XMLDOMConfiguration.js +0 -64
  137. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/lib/XMLDOMErrorHandler.js +0 -16
  138. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/lib/XMLDOMImplementation.js +0 -32
  139. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/lib/XMLDOMStringList.js +0 -28
  140. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/lib/XMLDTDAttList.js +0 -55
  141. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/lib/XMLDTDElement.js +0 -38
  142. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/lib/XMLDTDEntity.js +0 -97
  143. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/lib/XMLDTDNotation.js +0 -52
  144. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/lib/XMLDeclaration.js +0 -43
  145. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/lib/XMLDocType.js +0 -186
  146. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/lib/XMLDocument.js +0 -242
  147. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/lib/XMLDocumentCB.js +0 -528
  148. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/lib/XMLDocumentFragment.js +0 -24
  149. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/lib/XMLDummy.js +0 -31
  150. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/lib/XMLElement.js +0 -298
  151. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/lib/XMLNamedNodeMap.js +0 -58
  152. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/lib/XMLNode.js +0 -785
  153. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/lib/XMLNodeFilter.js +0 -48
  154. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/lib/XMLNodeList.js +0 -28
  155. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/lib/XMLProcessingInstruction.js +0 -49
  156. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/lib/XMLRaw.js +0 -35
  157. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/lib/XMLStreamWriter.js +0 -176
  158. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/lib/XMLStringWriter.js +0 -35
  159. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/lib/XMLStringifier.js +0 -240
  160. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/lib/XMLText.js +0 -69
  161. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/lib/XMLTypeInfo.js +0 -21
  162. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/lib/XMLUserDataHandler.js +0 -16
  163. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/lib/XMLWriterBase.js +0 -428
  164. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/lib/index.js +0 -65
  165. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/package.json +0 -39
  166. package/node_modules/@zowe/cics-for-zowe-sdk/node_modules/xmlbuilder/typings/index.d.ts +0 -153
  167. package/node_modules/@zowe/cics-for-zowe-sdk/package.json +0 -54
  168. package/node_modules/sax/LICENSE +0 -41
  169. package/node_modules/sax/README.md +0 -228
  170. package/node_modules/sax/lib/sax.js +0 -1597
  171. package/node_modules/sax/package.json +0 -29
@@ -1,528 +0,0 @@
1
- // Generated by CoffeeScript 1.12.7
2
- (function() {
3
- var NodeType, WriterState, XMLAttribute, XMLCData, XMLComment, XMLDTDAttList, XMLDTDElement, XMLDTDEntity, XMLDTDNotation, XMLDeclaration, XMLDocType, XMLDocument, XMLDocumentCB, XMLElement, XMLProcessingInstruction, XMLRaw, XMLStringWriter, XMLStringifier, XMLText, getValue, isFunction, isObject, isPlainObject, ref,
4
- hasProp = {}.hasOwnProperty;
5
-
6
- ref = require('./Utility'), isObject = ref.isObject, isFunction = ref.isFunction, isPlainObject = ref.isPlainObject, getValue = ref.getValue;
7
-
8
- NodeType = require('./NodeType');
9
-
10
- XMLDocument = require('./XMLDocument');
11
-
12
- XMLElement = require('./XMLElement');
13
-
14
- XMLCData = require('./XMLCData');
15
-
16
- XMLComment = require('./XMLComment');
17
-
18
- XMLRaw = require('./XMLRaw');
19
-
20
- XMLText = require('./XMLText');
21
-
22
- XMLProcessingInstruction = require('./XMLProcessingInstruction');
23
-
24
- XMLDeclaration = require('./XMLDeclaration');
25
-
26
- XMLDocType = require('./XMLDocType');
27
-
28
- XMLDTDAttList = require('./XMLDTDAttList');
29
-
30
- XMLDTDEntity = require('./XMLDTDEntity');
31
-
32
- XMLDTDElement = require('./XMLDTDElement');
33
-
34
- XMLDTDNotation = require('./XMLDTDNotation');
35
-
36
- XMLAttribute = require('./XMLAttribute');
37
-
38
- XMLStringifier = require('./XMLStringifier');
39
-
40
- XMLStringWriter = require('./XMLStringWriter');
41
-
42
- WriterState = require('./WriterState');
43
-
44
- module.exports = XMLDocumentCB = (function() {
45
- function XMLDocumentCB(options, onData, onEnd) {
46
- var writerOptions;
47
- this.name = "?xml";
48
- this.type = NodeType.Document;
49
- options || (options = {});
50
- writerOptions = {};
51
- if (!options.writer) {
52
- options.writer = new XMLStringWriter();
53
- } else if (isPlainObject(options.writer)) {
54
- writerOptions = options.writer;
55
- options.writer = new XMLStringWriter();
56
- }
57
- this.options = options;
58
- this.writer = options.writer;
59
- this.writerOptions = this.writer.filterOptions(writerOptions);
60
- this.stringify = new XMLStringifier(options);
61
- this.onDataCallback = onData || function() {};
62
- this.onEndCallback = onEnd || function() {};
63
- this.currentNode = null;
64
- this.currentLevel = -1;
65
- this.openTags = {};
66
- this.documentStarted = false;
67
- this.documentCompleted = false;
68
- this.root = null;
69
- }
70
-
71
- XMLDocumentCB.prototype.createChildNode = function(node) {
72
- var att, attName, attributes, child, i, len, ref1, ref2;
73
- switch (node.type) {
74
- case NodeType.CData:
75
- this.cdata(node.value);
76
- break;
77
- case NodeType.Comment:
78
- this.comment(node.value);
79
- break;
80
- case NodeType.Element:
81
- attributes = {};
82
- ref1 = node.attribs;
83
- for (attName in ref1) {
84
- if (!hasProp.call(ref1, attName)) continue;
85
- att = ref1[attName];
86
- attributes[attName] = att.value;
87
- }
88
- this.node(node.name, attributes);
89
- break;
90
- case NodeType.Dummy:
91
- this.dummy();
92
- break;
93
- case NodeType.Raw:
94
- this.raw(node.value);
95
- break;
96
- case NodeType.Text:
97
- this.text(node.value);
98
- break;
99
- case NodeType.ProcessingInstruction:
100
- this.instruction(node.target, node.value);
101
- break;
102
- default:
103
- throw new Error("This XML node type is not supported in a JS object: " + node.constructor.name);
104
- }
105
- ref2 = node.children;
106
- for (i = 0, len = ref2.length; i < len; i++) {
107
- child = ref2[i];
108
- this.createChildNode(child);
109
- if (child.type === NodeType.Element) {
110
- this.up();
111
- }
112
- }
113
- return this;
114
- };
115
-
116
- XMLDocumentCB.prototype.dummy = function() {
117
- return this;
118
- };
119
-
120
- XMLDocumentCB.prototype.node = function(name, attributes, text) {
121
- var ref1;
122
- if (name == null) {
123
- throw new Error("Missing node name.");
124
- }
125
- if (this.root && this.currentLevel === -1) {
126
- throw new Error("Document can only have one root node. " + this.debugInfo(name));
127
- }
128
- this.openCurrent();
129
- name = getValue(name);
130
- if (attributes == null) {
131
- attributes = {};
132
- }
133
- attributes = getValue(attributes);
134
- if (!isObject(attributes)) {
135
- ref1 = [attributes, text], text = ref1[0], attributes = ref1[1];
136
- }
137
- this.currentNode = new XMLElement(this, name, attributes);
138
- this.currentNode.children = false;
139
- this.currentLevel++;
140
- this.openTags[this.currentLevel] = this.currentNode;
141
- if (text != null) {
142
- this.text(text);
143
- }
144
- return this;
145
- };
146
-
147
- XMLDocumentCB.prototype.element = function(name, attributes, text) {
148
- var child, i, len, oldValidationFlag, ref1, root;
149
- if (this.currentNode && this.currentNode.type === NodeType.DocType) {
150
- this.dtdElement.apply(this, arguments);
151
- } else {
152
- if (Array.isArray(name) || isObject(name) || isFunction(name)) {
153
- oldValidationFlag = this.options.noValidation;
154
- this.options.noValidation = true;
155
- root = new XMLDocument(this.options).element('TEMP_ROOT');
156
- root.element(name);
157
- this.options.noValidation = oldValidationFlag;
158
- ref1 = root.children;
159
- for (i = 0, len = ref1.length; i < len; i++) {
160
- child = ref1[i];
161
- this.createChildNode(child);
162
- if (child.type === NodeType.Element) {
163
- this.up();
164
- }
165
- }
166
- } else {
167
- this.node(name, attributes, text);
168
- }
169
- }
170
- return this;
171
- };
172
-
173
- XMLDocumentCB.prototype.attribute = function(name, value) {
174
- var attName, attValue;
175
- if (!this.currentNode || this.currentNode.children) {
176
- throw new Error("att() can only be used immediately after an ele() call in callback mode. " + this.debugInfo(name));
177
- }
178
- if (name != null) {
179
- name = getValue(name);
180
- }
181
- if (isObject(name)) {
182
- for (attName in name) {
183
- if (!hasProp.call(name, attName)) continue;
184
- attValue = name[attName];
185
- this.attribute(attName, attValue);
186
- }
187
- } else {
188
- if (isFunction(value)) {
189
- value = value.apply();
190
- }
191
- if (this.options.keepNullAttributes && (value == null)) {
192
- this.currentNode.attribs[name] = new XMLAttribute(this, name, "");
193
- } else if (value != null) {
194
- this.currentNode.attribs[name] = new XMLAttribute(this, name, value);
195
- }
196
- }
197
- return this;
198
- };
199
-
200
- XMLDocumentCB.prototype.text = function(value) {
201
- var node;
202
- this.openCurrent();
203
- node = new XMLText(this, value);
204
- this.onData(this.writer.text(node, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1);
205
- return this;
206
- };
207
-
208
- XMLDocumentCB.prototype.cdata = function(value) {
209
- var node;
210
- this.openCurrent();
211
- node = new XMLCData(this, value);
212
- this.onData(this.writer.cdata(node, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1);
213
- return this;
214
- };
215
-
216
- XMLDocumentCB.prototype.comment = function(value) {
217
- var node;
218
- this.openCurrent();
219
- node = new XMLComment(this, value);
220
- this.onData(this.writer.comment(node, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1);
221
- return this;
222
- };
223
-
224
- XMLDocumentCB.prototype.raw = function(value) {
225
- var node;
226
- this.openCurrent();
227
- node = new XMLRaw(this, value);
228
- this.onData(this.writer.raw(node, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1);
229
- return this;
230
- };
231
-
232
- XMLDocumentCB.prototype.instruction = function(target, value) {
233
- var i, insTarget, insValue, len, node;
234
- this.openCurrent();
235
- if (target != null) {
236
- target = getValue(target);
237
- }
238
- if (value != null) {
239
- value = getValue(value);
240
- }
241
- if (Array.isArray(target)) {
242
- for (i = 0, len = target.length; i < len; i++) {
243
- insTarget = target[i];
244
- this.instruction(insTarget);
245
- }
246
- } else if (isObject(target)) {
247
- for (insTarget in target) {
248
- if (!hasProp.call(target, insTarget)) continue;
249
- insValue = target[insTarget];
250
- this.instruction(insTarget, insValue);
251
- }
252
- } else {
253
- if (isFunction(value)) {
254
- value = value.apply();
255
- }
256
- node = new XMLProcessingInstruction(this, target, value);
257
- this.onData(this.writer.processingInstruction(node, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1);
258
- }
259
- return this;
260
- };
261
-
262
- XMLDocumentCB.prototype.declaration = function(version, encoding, standalone) {
263
- var node;
264
- this.openCurrent();
265
- if (this.documentStarted) {
266
- throw new Error("declaration() must be the first node.");
267
- }
268
- node = new XMLDeclaration(this, version, encoding, standalone);
269
- this.onData(this.writer.declaration(node, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1);
270
- return this;
271
- };
272
-
273
- XMLDocumentCB.prototype.doctype = function(root, pubID, sysID) {
274
- this.openCurrent();
275
- if (root == null) {
276
- throw new Error("Missing root node name.");
277
- }
278
- if (this.root) {
279
- throw new Error("dtd() must come before the root node.");
280
- }
281
- this.currentNode = new XMLDocType(this, pubID, sysID);
282
- this.currentNode.rootNodeName = root;
283
- this.currentNode.children = false;
284
- this.currentLevel++;
285
- this.openTags[this.currentLevel] = this.currentNode;
286
- return this;
287
- };
288
-
289
- XMLDocumentCB.prototype.dtdElement = function(name, value) {
290
- var node;
291
- this.openCurrent();
292
- node = new XMLDTDElement(this, name, value);
293
- this.onData(this.writer.dtdElement(node, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1);
294
- return this;
295
- };
296
-
297
- XMLDocumentCB.prototype.attList = function(elementName, attributeName, attributeType, defaultValueType, defaultValue) {
298
- var node;
299
- this.openCurrent();
300
- node = new XMLDTDAttList(this, elementName, attributeName, attributeType, defaultValueType, defaultValue);
301
- this.onData(this.writer.dtdAttList(node, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1);
302
- return this;
303
- };
304
-
305
- XMLDocumentCB.prototype.entity = function(name, value) {
306
- var node;
307
- this.openCurrent();
308
- node = new XMLDTDEntity(this, false, name, value);
309
- this.onData(this.writer.dtdEntity(node, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1);
310
- return this;
311
- };
312
-
313
- XMLDocumentCB.prototype.pEntity = function(name, value) {
314
- var node;
315
- this.openCurrent();
316
- node = new XMLDTDEntity(this, true, name, value);
317
- this.onData(this.writer.dtdEntity(node, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1);
318
- return this;
319
- };
320
-
321
- XMLDocumentCB.prototype.notation = function(name, value) {
322
- var node;
323
- this.openCurrent();
324
- node = new XMLDTDNotation(this, name, value);
325
- this.onData(this.writer.dtdNotation(node, this.writerOptions, this.currentLevel + 1), this.currentLevel + 1);
326
- return this;
327
- };
328
-
329
- XMLDocumentCB.prototype.up = function() {
330
- if (this.currentLevel < 0) {
331
- throw new Error("The document node has no parent.");
332
- }
333
- if (this.currentNode) {
334
- if (this.currentNode.children) {
335
- this.closeNode(this.currentNode);
336
- } else {
337
- this.openNode(this.currentNode);
338
- }
339
- this.currentNode = null;
340
- } else {
341
- this.closeNode(this.openTags[this.currentLevel]);
342
- }
343
- delete this.openTags[this.currentLevel];
344
- this.currentLevel--;
345
- return this;
346
- };
347
-
348
- XMLDocumentCB.prototype.end = function() {
349
- while (this.currentLevel >= 0) {
350
- this.up();
351
- }
352
- return this.onEnd();
353
- };
354
-
355
- XMLDocumentCB.prototype.openCurrent = function() {
356
- if (this.currentNode) {
357
- this.currentNode.children = true;
358
- return this.openNode(this.currentNode);
359
- }
360
- };
361
-
362
- XMLDocumentCB.prototype.openNode = function(node) {
363
- var att, chunk, name, ref1;
364
- if (!node.isOpen) {
365
- if (!this.root && this.currentLevel === 0 && node.type === NodeType.Element) {
366
- this.root = node;
367
- }
368
- chunk = '';
369
- if (node.type === NodeType.Element) {
370
- this.writerOptions.state = WriterState.OpenTag;
371
- chunk = this.writer.indent(node, this.writerOptions, this.currentLevel) + '<' + node.name;
372
- ref1 = node.attribs;
373
- for (name in ref1) {
374
- if (!hasProp.call(ref1, name)) continue;
375
- att = ref1[name];
376
- chunk += this.writer.attribute(att, this.writerOptions, this.currentLevel);
377
- }
378
- chunk += (node.children ? '>' : '/>') + this.writer.endline(node, this.writerOptions, this.currentLevel);
379
- this.writerOptions.state = WriterState.InsideTag;
380
- } else {
381
- this.writerOptions.state = WriterState.OpenTag;
382
- chunk = this.writer.indent(node, this.writerOptions, this.currentLevel) + '<!DOCTYPE ' + node.rootNodeName;
383
- if (node.pubID && node.sysID) {
384
- chunk += ' PUBLIC "' + node.pubID + '" "' + node.sysID + '"';
385
- } else if (node.sysID) {
386
- chunk += ' SYSTEM "' + node.sysID + '"';
387
- }
388
- if (node.children) {
389
- chunk += ' [';
390
- this.writerOptions.state = WriterState.InsideTag;
391
- } else {
392
- this.writerOptions.state = WriterState.CloseTag;
393
- chunk += '>';
394
- }
395
- chunk += this.writer.endline(node, this.writerOptions, this.currentLevel);
396
- }
397
- this.onData(chunk, this.currentLevel);
398
- return node.isOpen = true;
399
- }
400
- };
401
-
402
- XMLDocumentCB.prototype.closeNode = function(node) {
403
- var chunk;
404
- if (!node.isClosed) {
405
- chunk = '';
406
- this.writerOptions.state = WriterState.CloseTag;
407
- if (node.type === NodeType.Element) {
408
- chunk = this.writer.indent(node, this.writerOptions, this.currentLevel) + '</' + node.name + '>' + this.writer.endline(node, this.writerOptions, this.currentLevel);
409
- } else {
410
- chunk = this.writer.indent(node, this.writerOptions, this.currentLevel) + ']>' + this.writer.endline(node, this.writerOptions, this.currentLevel);
411
- }
412
- this.writerOptions.state = WriterState.None;
413
- this.onData(chunk, this.currentLevel);
414
- return node.isClosed = true;
415
- }
416
- };
417
-
418
- XMLDocumentCB.prototype.onData = function(chunk, level) {
419
- this.documentStarted = true;
420
- return this.onDataCallback(chunk, level + 1);
421
- };
422
-
423
- XMLDocumentCB.prototype.onEnd = function() {
424
- this.documentCompleted = true;
425
- return this.onEndCallback();
426
- };
427
-
428
- XMLDocumentCB.prototype.debugInfo = function(name) {
429
- if (name == null) {
430
- return "";
431
- } else {
432
- return "node: <" + name + ">";
433
- }
434
- };
435
-
436
- XMLDocumentCB.prototype.ele = function() {
437
- return this.element.apply(this, arguments);
438
- };
439
-
440
- XMLDocumentCB.prototype.nod = function(name, attributes, text) {
441
- return this.node(name, attributes, text);
442
- };
443
-
444
- XMLDocumentCB.prototype.txt = function(value) {
445
- return this.text(value);
446
- };
447
-
448
- XMLDocumentCB.prototype.dat = function(value) {
449
- return this.cdata(value);
450
- };
451
-
452
- XMLDocumentCB.prototype.com = function(value) {
453
- return this.comment(value);
454
- };
455
-
456
- XMLDocumentCB.prototype.ins = function(target, value) {
457
- return this.instruction(target, value);
458
- };
459
-
460
- XMLDocumentCB.prototype.dec = function(version, encoding, standalone) {
461
- return this.declaration(version, encoding, standalone);
462
- };
463
-
464
- XMLDocumentCB.prototype.dtd = function(root, pubID, sysID) {
465
- return this.doctype(root, pubID, sysID);
466
- };
467
-
468
- XMLDocumentCB.prototype.e = function(name, attributes, text) {
469
- return this.element(name, attributes, text);
470
- };
471
-
472
- XMLDocumentCB.prototype.n = function(name, attributes, text) {
473
- return this.node(name, attributes, text);
474
- };
475
-
476
- XMLDocumentCB.prototype.t = function(value) {
477
- return this.text(value);
478
- };
479
-
480
- XMLDocumentCB.prototype.d = function(value) {
481
- return this.cdata(value);
482
- };
483
-
484
- XMLDocumentCB.prototype.c = function(value) {
485
- return this.comment(value);
486
- };
487
-
488
- XMLDocumentCB.prototype.r = function(value) {
489
- return this.raw(value);
490
- };
491
-
492
- XMLDocumentCB.prototype.i = function(target, value) {
493
- return this.instruction(target, value);
494
- };
495
-
496
- XMLDocumentCB.prototype.att = function() {
497
- if (this.currentNode && this.currentNode.type === NodeType.DocType) {
498
- return this.attList.apply(this, arguments);
499
- } else {
500
- return this.attribute.apply(this, arguments);
501
- }
502
- };
503
-
504
- XMLDocumentCB.prototype.a = function() {
505
- if (this.currentNode && this.currentNode.type === NodeType.DocType) {
506
- return this.attList.apply(this, arguments);
507
- } else {
508
- return this.attribute.apply(this, arguments);
509
- }
510
- };
511
-
512
- XMLDocumentCB.prototype.ent = function(name, value) {
513
- return this.entity(name, value);
514
- };
515
-
516
- XMLDocumentCB.prototype.pent = function(name, value) {
517
- return this.pEntity(name, value);
518
- };
519
-
520
- XMLDocumentCB.prototype.not = function(name, value) {
521
- return this.notation(name, value);
522
- };
523
-
524
- return XMLDocumentCB;
525
-
526
- })();
527
-
528
- }).call(this);
@@ -1,24 +0,0 @@
1
- // Generated by CoffeeScript 1.12.7
2
- (function() {
3
- var NodeType, XMLDocumentFragment, XMLNode,
4
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
5
- hasProp = {}.hasOwnProperty;
6
-
7
- XMLNode = require('./XMLNode');
8
-
9
- NodeType = require('./NodeType');
10
-
11
- module.exports = XMLDocumentFragment = (function(superClass) {
12
- extend(XMLDocumentFragment, superClass);
13
-
14
- function XMLDocumentFragment() {
15
- XMLDocumentFragment.__super__.constructor.call(this, null);
16
- this.name = "#document-fragment";
17
- this.type = NodeType.DocumentFragment;
18
- }
19
-
20
- return XMLDocumentFragment;
21
-
22
- })(XMLNode);
23
-
24
- }).call(this);
@@ -1,31 +0,0 @@
1
- // Generated by CoffeeScript 1.12.7
2
- (function() {
3
- var NodeType, XMLDummy, XMLNode,
4
- extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
5
- hasProp = {}.hasOwnProperty;
6
-
7
- XMLNode = require('./XMLNode');
8
-
9
- NodeType = require('./NodeType');
10
-
11
- module.exports = XMLDummy = (function(superClass) {
12
- extend(XMLDummy, superClass);
13
-
14
- function XMLDummy(parent) {
15
- XMLDummy.__super__.constructor.call(this, parent);
16
- this.type = NodeType.Dummy;
17
- }
18
-
19
- XMLDummy.prototype.clone = function() {
20
- return Object.create(this);
21
- };
22
-
23
- XMLDummy.prototype.toString = function(options) {
24
- return '';
25
- };
26
-
27
- return XMLDummy;
28
-
29
- })(XMLNode);
30
-
31
- }).call(this);