@zowe/cics-for-zowe-cli 6.2.2 → 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 (195) hide show
  1. package/npm-shrinkwrap.json +6 -10
  2. package/package.json +1 -4
  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 -84
  6. package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/CicsCmci.constants.js +0 -91
  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/ICacheParms.d.ts +0 -17
  24. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICacheParms.js +0 -13
  25. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICacheParms.js.map +0 -1
  26. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IGetResourceUriOptions.d.ts +0 -42
  27. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IGetResourceUriOptions.js +0 -13
  28. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IGetResourceUriOptions.js.map +0 -1
  29. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IProgramParms.d.ts +0 -30
  30. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IProgramParms.js +0 -13
  31. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IProgramParms.js.map +0 -1
  32. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResourceParms.d.ts +0 -17
  33. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResourceParms.js +0 -13
  34. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResourceParms.js.map +0 -1
  35. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResourceQueryParms.d.ts +0 -24
  36. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResourceQueryParms.js +0 -13
  37. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResourceQueryParms.js.map +0 -1
  38. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResultCacheParms.d.ts +0 -21
  39. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResultCacheParms.js +0 -13
  40. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResultCacheParms.js.map +0 -1
  41. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ITransactionParms.d.ts +0 -35
  42. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ITransactionParms.js +0 -13
  43. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ITransactionParms.js.map +0 -1
  44. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IURIMapParms.d.ts +0 -89
  45. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IURIMapParms.js +0 -13
  46. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IURIMapParms.js.map +0 -1
  47. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IWebServiceParms.d.ts +0 -55
  48. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IWebServiceParms.js +0 -13
  49. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IWebServiceParms.js.map +0 -1
  50. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/index.d.ts +0 -22
  51. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/index.js +0 -39
  52. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/index.js.map +0 -1
  53. package/node_modules/@zowe/cics-for-zowe-sdk/lib/index.d.ts +0 -15
  54. package/node_modules/@zowe/cics-for-zowe-sdk/lib/index.js +0 -32
  55. package/node_modules/@zowe/cics-for-zowe-sdk/lib/index.js.map +0 -1
  56. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/add-to-list/AddToList.d.ts +0 -23
  57. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/add-to-list/AddToList.js +0 -57
  58. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/add-to-list/AddToList.js.map +0 -1
  59. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/add-to-list/index.d.ts +0 -11
  60. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/add-to-list/index.js +0 -28
  61. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/add-to-list/index.js.map +0 -1
  62. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/cache/Cache.d.ts +0 -14
  63. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/cache/Cache.js +0 -30
  64. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/cache/Cache.js.map +0 -1
  65. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/cache/index.d.ts +0 -11
  66. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/cache/index.js +0 -28
  67. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/cache/index.js.map +0 -1
  68. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/define/Define.d.ts +0 -85
  69. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/define/Define.js +0 -301
  70. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/define/Define.js.map +0 -1
  71. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/define/index.d.ts +0 -11
  72. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/define/index.js +0 -28
  73. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/define/index.js.map +0 -1
  74. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/delete/Delete.d.ts +0 -58
  75. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/delete/Delete.js +0 -120
  76. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/delete/Delete.js.map +0 -1
  77. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/delete/index.d.ts +0 -11
  78. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/delete/index.js +0 -28
  79. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/delete/index.js.map +0 -1
  80. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/disable/Disable.d.ts +0 -24
  81. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/disable/Disable.js +0 -53
  82. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/disable/Disable.js.map +0 -1
  83. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/disable/index.d.ts +0 -11
  84. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/disable/index.js +0 -28
  85. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/disable/index.js.map +0 -1
  86. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/discard/Discard.d.ts +0 -35
  87. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/discard/Discard.js +0 -77
  88. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/discard/Discard.js.map +0 -1
  89. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/discard/index.d.ts +0 -11
  90. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/discard/index.js +0 -28
  91. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/discard/index.js.map +0 -1
  92. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/enable/Enable.d.ts +0 -24
  93. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/enable/Enable.js +0 -53
  94. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/enable/Enable.js.map +0 -1
  95. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/enable/index.d.ts +0 -11
  96. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/enable/index.js +0 -28
  97. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/enable/index.js.map +0 -1
  98. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/get/Get.d.ts +0 -23
  99. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/get/Get.js +0 -41
  100. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/get/Get.js.map +0 -1
  101. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/get/index.d.ts +0 -11
  102. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/get/index.js +0 -28
  103. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/get/index.js.map +0 -1
  104. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/index.d.ts +0 -21
  105. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/index.js +0 -38
  106. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/index.js.map +0 -1
  107. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/install/Install.d.ts +0 -48
  108. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/install/Install.js +0 -123
  109. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/install/Install.js.map +0 -1
  110. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/install/index.d.ts +0 -11
  111. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/install/index.js +0 -28
  112. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/install/index.js.map +0 -1
  113. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/remove-from-list/RemoveFromList.d.ts +0 -23
  114. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/remove-from-list/RemoveFromList.js +0 -42
  115. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/remove-from-list/RemoveFromList.js.map +0 -1
  116. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/remove-from-list/index.d.ts +0 -11
  117. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/remove-from-list/index.js +0 -28
  118. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/remove-from-list/index.js.map +0 -1
  119. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/set/Set.d.ts +0 -23
  120. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/set/Set.js +0 -50
  121. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/set/Set.js.map +0 -1
  122. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/set/index.d.ts +0 -11
  123. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/set/index.js +0 -28
  124. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/set/index.js.map +0 -1
  125. package/node_modules/@zowe/cics-for-zowe-sdk/lib/rest/CicsCmciRestClient.d.ts +0 -128
  126. package/node_modules/@zowe/cics-for-zowe-sdk/lib/rest/CicsCmciRestClient.js +0 -220
  127. package/node_modules/@zowe/cics-for-zowe-sdk/lib/rest/CicsCmciRestClient.js.map +0 -1
  128. package/node_modules/@zowe/cics-for-zowe-sdk/lib/rest/index.d.ts +0 -11
  129. package/node_modules/@zowe/cics-for-zowe-sdk/lib/rest/index.js +0 -28
  130. package/node_modules/@zowe/cics-for-zowe-sdk/lib/rest/index.js.map +0 -1
  131. package/node_modules/@zowe/cics-for-zowe-sdk/lib/utils/Utils.d.ts +0 -27
  132. package/node_modules/@zowe/cics-for-zowe-sdk/lib/utils/Utils.js +0 -80
  133. package/node_modules/@zowe/cics-for-zowe-sdk/lib/utils/Utils.js.map +0 -1
  134. package/node_modules/@zowe/cics-for-zowe-sdk/lib/utils/index.d.ts +0 -11
  135. package/node_modules/@zowe/cics-for-zowe-sdk/lib/utils/index.js +0 -28
  136. package/node_modules/@zowe/cics-for-zowe-sdk/lib/utils/index.js.map +0 -1
  137. package/node_modules/@zowe/cics-for-zowe-sdk/package.json +0 -54
  138. package/node_modules/sax/LICENSE +0 -41
  139. package/node_modules/sax/README.md +0 -228
  140. package/node_modules/sax/lib/sax.js +0 -1597
  141. package/node_modules/sax/package.json +0 -29
  142. package/node_modules/xml2js/LICENSE +0 -19
  143. package/node_modules/xml2js/README.md +0 -507
  144. package/node_modules/xml2js/lib/bom.js +0 -12
  145. package/node_modules/xml2js/lib/builder.js +0 -127
  146. package/node_modules/xml2js/lib/defaults.js +0 -72
  147. package/node_modules/xml2js/lib/parser.js +0 -385
  148. package/node_modules/xml2js/lib/processors.js +0 -34
  149. package/node_modules/xml2js/lib/xml2js.js +0 -39
  150. package/node_modules/xml2js/node_modules/xmlbuilder/CHANGELOG.md +0 -470
  151. package/node_modules/xml2js/node_modules/xmlbuilder/LICENSE +0 -21
  152. package/node_modules/xml2js/node_modules/xmlbuilder/README.md +0 -86
  153. package/node_modules/xml2js/node_modules/xmlbuilder/appveyor.yml +0 -20
  154. package/node_modules/xml2js/node_modules/xmlbuilder/lib/Derivation.js +0 -10
  155. package/node_modules/xml2js/node_modules/xmlbuilder/lib/DocumentPosition.js +0 -12
  156. package/node_modules/xml2js/node_modules/xmlbuilder/lib/NodeType.js +0 -23
  157. package/node_modules/xml2js/node_modules/xmlbuilder/lib/OperationType.js +0 -11
  158. package/node_modules/xml2js/node_modules/xmlbuilder/lib/Utility.js +0 -83
  159. package/node_modules/xml2js/node_modules/xmlbuilder/lib/WriterState.js +0 -10
  160. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLAttribute.js +0 -108
  161. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLCData.js +0 -36
  162. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLCharacterData.js +0 -79
  163. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLComment.js +0 -36
  164. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDOMConfiguration.js +0 -64
  165. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDOMErrorHandler.js +0 -16
  166. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDOMImplementation.js +0 -32
  167. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDOMStringList.js +0 -28
  168. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDTDAttList.js +0 -55
  169. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDTDElement.js +0 -38
  170. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDTDEntity.js +0 -97
  171. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDTDNotation.js +0 -52
  172. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDeclaration.js +0 -43
  173. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDocType.js +0 -186
  174. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDocument.js +0 -242
  175. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDocumentCB.js +0 -528
  176. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDocumentFragment.js +0 -24
  177. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDummy.js +0 -31
  178. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLElement.js +0 -298
  179. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLNamedNodeMap.js +0 -58
  180. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLNode.js +0 -785
  181. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLNodeFilter.js +0 -48
  182. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLNodeList.js +0 -28
  183. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLProcessingInstruction.js +0 -49
  184. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLRaw.js +0 -35
  185. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLStreamWriter.js +0 -176
  186. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLStringWriter.js +0 -35
  187. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLStringifier.js +0 -240
  188. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLText.js +0 -69
  189. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLTypeInfo.js +0 -21
  190. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLUserDataHandler.js +0 -16
  191. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLWriterBase.js +0 -428
  192. package/node_modules/xml2js/node_modules/xmlbuilder/lib/index.js +0 -65
  193. package/node_modules/xml2js/node_modules/xmlbuilder/package.json +0 -39
  194. package/node_modules/xml2js/node_modules/xmlbuilder/typings/index.d.ts +0 -153
  195. package/node_modules/xml2js/package.json +0 -93
@@ -1,785 +0,0 @@
1
- // Generated by CoffeeScript 1.12.7
2
- (function() {
3
- var DocumentPosition, NodeType, XMLCData, XMLComment, XMLDeclaration, XMLDocType, XMLDummy, XMLElement, XMLNamedNodeMap, XMLNode, XMLNodeList, XMLProcessingInstruction, XMLRaw, XMLText, getValue, isEmpty, isFunction, isObject, ref1,
4
- hasProp = {}.hasOwnProperty;
5
-
6
- ref1 = require('./Utility'), isObject = ref1.isObject, isFunction = ref1.isFunction, isEmpty = ref1.isEmpty, getValue = ref1.getValue;
7
-
8
- XMLElement = null;
9
-
10
- XMLCData = null;
11
-
12
- XMLComment = null;
13
-
14
- XMLDeclaration = null;
15
-
16
- XMLDocType = null;
17
-
18
- XMLRaw = null;
19
-
20
- XMLText = null;
21
-
22
- XMLProcessingInstruction = null;
23
-
24
- XMLDummy = null;
25
-
26
- NodeType = null;
27
-
28
- XMLNodeList = null;
29
-
30
- XMLNamedNodeMap = null;
31
-
32
- DocumentPosition = null;
33
-
34
- module.exports = XMLNode = (function() {
35
- function XMLNode(parent1) {
36
- this.parent = parent1;
37
- if (this.parent) {
38
- this.options = this.parent.options;
39
- this.stringify = this.parent.stringify;
40
- }
41
- this.value = null;
42
- this.children = [];
43
- this.baseURI = null;
44
- if (!XMLElement) {
45
- XMLElement = require('./XMLElement');
46
- XMLCData = require('./XMLCData');
47
- XMLComment = require('./XMLComment');
48
- XMLDeclaration = require('./XMLDeclaration');
49
- XMLDocType = require('./XMLDocType');
50
- XMLRaw = require('./XMLRaw');
51
- XMLText = require('./XMLText');
52
- XMLProcessingInstruction = require('./XMLProcessingInstruction');
53
- XMLDummy = require('./XMLDummy');
54
- NodeType = require('./NodeType');
55
- XMLNodeList = require('./XMLNodeList');
56
- XMLNamedNodeMap = require('./XMLNamedNodeMap');
57
- DocumentPosition = require('./DocumentPosition');
58
- }
59
- }
60
-
61
- Object.defineProperty(XMLNode.prototype, 'nodeName', {
62
- get: function() {
63
- return this.name;
64
- }
65
- });
66
-
67
- Object.defineProperty(XMLNode.prototype, 'nodeType', {
68
- get: function() {
69
- return this.type;
70
- }
71
- });
72
-
73
- Object.defineProperty(XMLNode.prototype, 'nodeValue', {
74
- get: function() {
75
- return this.value;
76
- }
77
- });
78
-
79
- Object.defineProperty(XMLNode.prototype, 'parentNode', {
80
- get: function() {
81
- return this.parent;
82
- }
83
- });
84
-
85
- Object.defineProperty(XMLNode.prototype, 'childNodes', {
86
- get: function() {
87
- if (!this.childNodeList || !this.childNodeList.nodes) {
88
- this.childNodeList = new XMLNodeList(this.children);
89
- }
90
- return this.childNodeList;
91
- }
92
- });
93
-
94
- Object.defineProperty(XMLNode.prototype, 'firstChild', {
95
- get: function() {
96
- return this.children[0] || null;
97
- }
98
- });
99
-
100
- Object.defineProperty(XMLNode.prototype, 'lastChild', {
101
- get: function() {
102
- return this.children[this.children.length - 1] || null;
103
- }
104
- });
105
-
106
- Object.defineProperty(XMLNode.prototype, 'previousSibling', {
107
- get: function() {
108
- var i;
109
- i = this.parent.children.indexOf(this);
110
- return this.parent.children[i - 1] || null;
111
- }
112
- });
113
-
114
- Object.defineProperty(XMLNode.prototype, 'nextSibling', {
115
- get: function() {
116
- var i;
117
- i = this.parent.children.indexOf(this);
118
- return this.parent.children[i + 1] || null;
119
- }
120
- });
121
-
122
- Object.defineProperty(XMLNode.prototype, 'ownerDocument', {
123
- get: function() {
124
- return this.document() || null;
125
- }
126
- });
127
-
128
- Object.defineProperty(XMLNode.prototype, 'textContent', {
129
- get: function() {
130
- var child, j, len, ref2, str;
131
- if (this.nodeType === NodeType.Element || this.nodeType === NodeType.DocumentFragment) {
132
- str = '';
133
- ref2 = this.children;
134
- for (j = 0, len = ref2.length; j < len; j++) {
135
- child = ref2[j];
136
- if (child.textContent) {
137
- str += child.textContent;
138
- }
139
- }
140
- return str;
141
- } else {
142
- return null;
143
- }
144
- },
145
- set: function(value) {
146
- throw new Error("This DOM method is not implemented." + this.debugInfo());
147
- }
148
- });
149
-
150
- XMLNode.prototype.setParent = function(parent) {
151
- var child, j, len, ref2, results;
152
- this.parent = parent;
153
- if (parent) {
154
- this.options = parent.options;
155
- this.stringify = parent.stringify;
156
- }
157
- ref2 = this.children;
158
- results = [];
159
- for (j = 0, len = ref2.length; j < len; j++) {
160
- child = ref2[j];
161
- results.push(child.setParent(this));
162
- }
163
- return results;
164
- };
165
-
166
- XMLNode.prototype.element = function(name, attributes, text) {
167
- var childNode, item, j, k, key, lastChild, len, len1, ref2, ref3, val;
168
- lastChild = null;
169
- if (attributes === null && (text == null)) {
170
- ref2 = [{}, null], attributes = ref2[0], text = ref2[1];
171
- }
172
- if (attributes == null) {
173
- attributes = {};
174
- }
175
- attributes = getValue(attributes);
176
- if (!isObject(attributes)) {
177
- ref3 = [attributes, text], text = ref3[0], attributes = ref3[1];
178
- }
179
- if (name != null) {
180
- name = getValue(name);
181
- }
182
- if (Array.isArray(name)) {
183
- for (j = 0, len = name.length; j < len; j++) {
184
- item = name[j];
185
- lastChild = this.element(item);
186
- }
187
- } else if (isFunction(name)) {
188
- lastChild = this.element(name.apply());
189
- } else if (isObject(name)) {
190
- for (key in name) {
191
- if (!hasProp.call(name, key)) continue;
192
- val = name[key];
193
- if (isFunction(val)) {
194
- val = val.apply();
195
- }
196
- if (!this.options.ignoreDecorators && this.stringify.convertAttKey && key.indexOf(this.stringify.convertAttKey) === 0) {
197
- lastChild = this.attribute(key.substr(this.stringify.convertAttKey.length), val);
198
- } else if (!this.options.separateArrayItems && Array.isArray(val) && isEmpty(val)) {
199
- lastChild = this.dummy();
200
- } else if (isObject(val) && isEmpty(val)) {
201
- lastChild = this.element(key);
202
- } else if (!this.options.keepNullNodes && (val == null)) {
203
- lastChild = this.dummy();
204
- } else if (!this.options.separateArrayItems && Array.isArray(val)) {
205
- for (k = 0, len1 = val.length; k < len1; k++) {
206
- item = val[k];
207
- childNode = {};
208
- childNode[key] = item;
209
- lastChild = this.element(childNode);
210
- }
211
- } else if (isObject(val)) {
212
- if (!this.options.ignoreDecorators && this.stringify.convertTextKey && key.indexOf(this.stringify.convertTextKey) === 0) {
213
- lastChild = this.element(val);
214
- } else {
215
- lastChild = this.element(key);
216
- lastChild.element(val);
217
- }
218
- } else {
219
- lastChild = this.element(key, val);
220
- }
221
- }
222
- } else if (!this.options.keepNullNodes && text === null) {
223
- lastChild = this.dummy();
224
- } else {
225
- if (!this.options.ignoreDecorators && this.stringify.convertTextKey && name.indexOf(this.stringify.convertTextKey) === 0) {
226
- lastChild = this.text(text);
227
- } else if (!this.options.ignoreDecorators && this.stringify.convertCDataKey && name.indexOf(this.stringify.convertCDataKey) === 0) {
228
- lastChild = this.cdata(text);
229
- } else if (!this.options.ignoreDecorators && this.stringify.convertCommentKey && name.indexOf(this.stringify.convertCommentKey) === 0) {
230
- lastChild = this.comment(text);
231
- } else if (!this.options.ignoreDecorators && this.stringify.convertRawKey && name.indexOf(this.stringify.convertRawKey) === 0) {
232
- lastChild = this.raw(text);
233
- } else if (!this.options.ignoreDecorators && this.stringify.convertPIKey && name.indexOf(this.stringify.convertPIKey) === 0) {
234
- lastChild = this.instruction(name.substr(this.stringify.convertPIKey.length), text);
235
- } else {
236
- lastChild = this.node(name, attributes, text);
237
- }
238
- }
239
- if (lastChild == null) {
240
- throw new Error("Could not create any elements with: " + name + ". " + this.debugInfo());
241
- }
242
- return lastChild;
243
- };
244
-
245
- XMLNode.prototype.insertBefore = function(name, attributes, text) {
246
- var child, i, newChild, refChild, removed;
247
- if (name != null ? name.type : void 0) {
248
- newChild = name;
249
- refChild = attributes;
250
- newChild.setParent(this);
251
- if (refChild) {
252
- i = children.indexOf(refChild);
253
- removed = children.splice(i);
254
- children.push(newChild);
255
- Array.prototype.push.apply(children, removed);
256
- } else {
257
- children.push(newChild);
258
- }
259
- return newChild;
260
- } else {
261
- if (this.isRoot) {
262
- throw new Error("Cannot insert elements at root level. " + this.debugInfo(name));
263
- }
264
- i = this.parent.children.indexOf(this);
265
- removed = this.parent.children.splice(i);
266
- child = this.parent.element(name, attributes, text);
267
- Array.prototype.push.apply(this.parent.children, removed);
268
- return child;
269
- }
270
- };
271
-
272
- XMLNode.prototype.insertAfter = function(name, attributes, text) {
273
- var child, i, removed;
274
- if (this.isRoot) {
275
- throw new Error("Cannot insert elements at root level. " + this.debugInfo(name));
276
- }
277
- i = this.parent.children.indexOf(this);
278
- removed = this.parent.children.splice(i + 1);
279
- child = this.parent.element(name, attributes, text);
280
- Array.prototype.push.apply(this.parent.children, removed);
281
- return child;
282
- };
283
-
284
- XMLNode.prototype.remove = function() {
285
- var i, ref2;
286
- if (this.isRoot) {
287
- throw new Error("Cannot remove the root element. " + this.debugInfo());
288
- }
289
- i = this.parent.children.indexOf(this);
290
- [].splice.apply(this.parent.children, [i, i - i + 1].concat(ref2 = [])), ref2;
291
- return this.parent;
292
- };
293
-
294
- XMLNode.prototype.node = function(name, attributes, text) {
295
- var child, ref2;
296
- if (name != null) {
297
- name = getValue(name);
298
- }
299
- attributes || (attributes = {});
300
- attributes = getValue(attributes);
301
- if (!isObject(attributes)) {
302
- ref2 = [attributes, text], text = ref2[0], attributes = ref2[1];
303
- }
304
- child = new XMLElement(this, name, attributes);
305
- if (text != null) {
306
- child.text(text);
307
- }
308
- this.children.push(child);
309
- return child;
310
- };
311
-
312
- XMLNode.prototype.text = function(value) {
313
- var child;
314
- if (isObject(value)) {
315
- this.element(value);
316
- }
317
- child = new XMLText(this, value);
318
- this.children.push(child);
319
- return this;
320
- };
321
-
322
- XMLNode.prototype.cdata = function(value) {
323
- var child;
324
- child = new XMLCData(this, value);
325
- this.children.push(child);
326
- return this;
327
- };
328
-
329
- XMLNode.prototype.comment = function(value) {
330
- var child;
331
- child = new XMLComment(this, value);
332
- this.children.push(child);
333
- return this;
334
- };
335
-
336
- XMLNode.prototype.commentBefore = function(value) {
337
- var child, i, removed;
338
- i = this.parent.children.indexOf(this);
339
- removed = this.parent.children.splice(i);
340
- child = this.parent.comment(value);
341
- Array.prototype.push.apply(this.parent.children, removed);
342
- return this;
343
- };
344
-
345
- XMLNode.prototype.commentAfter = function(value) {
346
- var child, i, removed;
347
- i = this.parent.children.indexOf(this);
348
- removed = this.parent.children.splice(i + 1);
349
- child = this.parent.comment(value);
350
- Array.prototype.push.apply(this.parent.children, removed);
351
- return this;
352
- };
353
-
354
- XMLNode.prototype.raw = function(value) {
355
- var child;
356
- child = new XMLRaw(this, value);
357
- this.children.push(child);
358
- return this;
359
- };
360
-
361
- XMLNode.prototype.dummy = function() {
362
- var child;
363
- child = new XMLDummy(this);
364
- return child;
365
- };
366
-
367
- XMLNode.prototype.instruction = function(target, value) {
368
- var insTarget, insValue, instruction, j, len;
369
- if (target != null) {
370
- target = getValue(target);
371
- }
372
- if (value != null) {
373
- value = getValue(value);
374
- }
375
- if (Array.isArray(target)) {
376
- for (j = 0, len = target.length; j < len; j++) {
377
- insTarget = target[j];
378
- this.instruction(insTarget);
379
- }
380
- } else if (isObject(target)) {
381
- for (insTarget in target) {
382
- if (!hasProp.call(target, insTarget)) continue;
383
- insValue = target[insTarget];
384
- this.instruction(insTarget, insValue);
385
- }
386
- } else {
387
- if (isFunction(value)) {
388
- value = value.apply();
389
- }
390
- instruction = new XMLProcessingInstruction(this, target, value);
391
- this.children.push(instruction);
392
- }
393
- return this;
394
- };
395
-
396
- XMLNode.prototype.instructionBefore = function(target, value) {
397
- var child, i, removed;
398
- i = this.parent.children.indexOf(this);
399
- removed = this.parent.children.splice(i);
400
- child = this.parent.instruction(target, value);
401
- Array.prototype.push.apply(this.parent.children, removed);
402
- return this;
403
- };
404
-
405
- XMLNode.prototype.instructionAfter = function(target, value) {
406
- var child, i, removed;
407
- i = this.parent.children.indexOf(this);
408
- removed = this.parent.children.splice(i + 1);
409
- child = this.parent.instruction(target, value);
410
- Array.prototype.push.apply(this.parent.children, removed);
411
- return this;
412
- };
413
-
414
- XMLNode.prototype.declaration = function(version, encoding, standalone) {
415
- var doc, xmldec;
416
- doc = this.document();
417
- xmldec = new XMLDeclaration(doc, version, encoding, standalone);
418
- if (doc.children.length === 0) {
419
- doc.children.unshift(xmldec);
420
- } else if (doc.children[0].type === NodeType.Declaration) {
421
- doc.children[0] = xmldec;
422
- } else {
423
- doc.children.unshift(xmldec);
424
- }
425
- return doc.root() || doc;
426
- };
427
-
428
- XMLNode.prototype.dtd = function(pubID, sysID) {
429
- var child, doc, doctype, i, j, k, len, len1, ref2, ref3;
430
- doc = this.document();
431
- doctype = new XMLDocType(doc, pubID, sysID);
432
- ref2 = doc.children;
433
- for (i = j = 0, len = ref2.length; j < len; i = ++j) {
434
- child = ref2[i];
435
- if (child.type === NodeType.DocType) {
436
- doc.children[i] = doctype;
437
- return doctype;
438
- }
439
- }
440
- ref3 = doc.children;
441
- for (i = k = 0, len1 = ref3.length; k < len1; i = ++k) {
442
- child = ref3[i];
443
- if (child.isRoot) {
444
- doc.children.splice(i, 0, doctype);
445
- return doctype;
446
- }
447
- }
448
- doc.children.push(doctype);
449
- return doctype;
450
- };
451
-
452
- XMLNode.prototype.up = function() {
453
- if (this.isRoot) {
454
- throw new Error("The root node has no parent. Use doc() if you need to get the document object.");
455
- }
456
- return this.parent;
457
- };
458
-
459
- XMLNode.prototype.root = function() {
460
- var node;
461
- node = this;
462
- while (node) {
463
- if (node.type === NodeType.Document) {
464
- return node.rootObject;
465
- } else if (node.isRoot) {
466
- return node;
467
- } else {
468
- node = node.parent;
469
- }
470
- }
471
- };
472
-
473
- XMLNode.prototype.document = function() {
474
- var node;
475
- node = this;
476
- while (node) {
477
- if (node.type === NodeType.Document) {
478
- return node;
479
- } else {
480
- node = node.parent;
481
- }
482
- }
483
- };
484
-
485
- XMLNode.prototype.end = function(options) {
486
- return this.document().end(options);
487
- };
488
-
489
- XMLNode.prototype.prev = function() {
490
- var i;
491
- i = this.parent.children.indexOf(this);
492
- if (i < 1) {
493
- throw new Error("Already at the first node. " + this.debugInfo());
494
- }
495
- return this.parent.children[i - 1];
496
- };
497
-
498
- XMLNode.prototype.next = function() {
499
- var i;
500
- i = this.parent.children.indexOf(this);
501
- if (i === -1 || i === this.parent.children.length - 1) {
502
- throw new Error("Already at the last node. " + this.debugInfo());
503
- }
504
- return this.parent.children[i + 1];
505
- };
506
-
507
- XMLNode.prototype.importDocument = function(doc) {
508
- var clonedRoot;
509
- clonedRoot = doc.root().clone();
510
- clonedRoot.parent = this;
511
- clonedRoot.isRoot = false;
512
- this.children.push(clonedRoot);
513
- return this;
514
- };
515
-
516
- XMLNode.prototype.debugInfo = function(name) {
517
- var ref2, ref3;
518
- name = name || this.name;
519
- if ((name == null) && !((ref2 = this.parent) != null ? ref2.name : void 0)) {
520
- return "";
521
- } else if (name == null) {
522
- return "parent: <" + this.parent.name + ">";
523
- } else if (!((ref3 = this.parent) != null ? ref3.name : void 0)) {
524
- return "node: <" + name + ">";
525
- } else {
526
- return "node: <" + name + ">, parent: <" + this.parent.name + ">";
527
- }
528
- };
529
-
530
- XMLNode.prototype.ele = function(name, attributes, text) {
531
- return this.element(name, attributes, text);
532
- };
533
-
534
- XMLNode.prototype.nod = function(name, attributes, text) {
535
- return this.node(name, attributes, text);
536
- };
537
-
538
- XMLNode.prototype.txt = function(value) {
539
- return this.text(value);
540
- };
541
-
542
- XMLNode.prototype.dat = function(value) {
543
- return this.cdata(value);
544
- };
545
-
546
- XMLNode.prototype.com = function(value) {
547
- return this.comment(value);
548
- };
549
-
550
- XMLNode.prototype.ins = function(target, value) {
551
- return this.instruction(target, value);
552
- };
553
-
554
- XMLNode.prototype.doc = function() {
555
- return this.document();
556
- };
557
-
558
- XMLNode.prototype.dec = function(version, encoding, standalone) {
559
- return this.declaration(version, encoding, standalone);
560
- };
561
-
562
- XMLNode.prototype.e = function(name, attributes, text) {
563
- return this.element(name, attributes, text);
564
- };
565
-
566
- XMLNode.prototype.n = function(name, attributes, text) {
567
- return this.node(name, attributes, text);
568
- };
569
-
570
- XMLNode.prototype.t = function(value) {
571
- return this.text(value);
572
- };
573
-
574
- XMLNode.prototype.d = function(value) {
575
- return this.cdata(value);
576
- };
577
-
578
- XMLNode.prototype.c = function(value) {
579
- return this.comment(value);
580
- };
581
-
582
- XMLNode.prototype.r = function(value) {
583
- return this.raw(value);
584
- };
585
-
586
- XMLNode.prototype.i = function(target, value) {
587
- return this.instruction(target, value);
588
- };
589
-
590
- XMLNode.prototype.u = function() {
591
- return this.up();
592
- };
593
-
594
- XMLNode.prototype.importXMLBuilder = function(doc) {
595
- return this.importDocument(doc);
596
- };
597
-
598
- XMLNode.prototype.replaceChild = function(newChild, oldChild) {
599
- throw new Error("This DOM method is not implemented." + this.debugInfo());
600
- };
601
-
602
- XMLNode.prototype.removeChild = function(oldChild) {
603
- throw new Error("This DOM method is not implemented." + this.debugInfo());
604
- };
605
-
606
- XMLNode.prototype.appendChild = function(newChild) {
607
- throw new Error("This DOM method is not implemented." + this.debugInfo());
608
- };
609
-
610
- XMLNode.prototype.hasChildNodes = function() {
611
- return this.children.length !== 0;
612
- };
613
-
614
- XMLNode.prototype.cloneNode = function(deep) {
615
- throw new Error("This DOM method is not implemented." + this.debugInfo());
616
- };
617
-
618
- XMLNode.prototype.normalize = function() {
619
- throw new Error("This DOM method is not implemented." + this.debugInfo());
620
- };
621
-
622
- XMLNode.prototype.isSupported = function(feature, version) {
623
- return true;
624
- };
625
-
626
- XMLNode.prototype.hasAttributes = function() {
627
- return this.attribs.length !== 0;
628
- };
629
-
630
- XMLNode.prototype.compareDocumentPosition = function(other) {
631
- var ref, res;
632
- ref = this;
633
- if (ref === other) {
634
- return 0;
635
- } else if (this.document() !== other.document()) {
636
- res = DocumentPosition.Disconnected | DocumentPosition.ImplementationSpecific;
637
- if (Math.random() < 0.5) {
638
- res |= DocumentPosition.Preceding;
639
- } else {
640
- res |= DocumentPosition.Following;
641
- }
642
- return res;
643
- } else if (ref.isAncestor(other)) {
644
- return DocumentPosition.Contains | DocumentPosition.Preceding;
645
- } else if (ref.isDescendant(other)) {
646
- return DocumentPosition.Contains | DocumentPosition.Following;
647
- } else if (ref.isPreceding(other)) {
648
- return DocumentPosition.Preceding;
649
- } else {
650
- return DocumentPosition.Following;
651
- }
652
- };
653
-
654
- XMLNode.prototype.isSameNode = function(other) {
655
- throw new Error("This DOM method is not implemented." + this.debugInfo());
656
- };
657
-
658
- XMLNode.prototype.lookupPrefix = function(namespaceURI) {
659
- throw new Error("This DOM method is not implemented." + this.debugInfo());
660
- };
661
-
662
- XMLNode.prototype.isDefaultNamespace = function(namespaceURI) {
663
- throw new Error("This DOM method is not implemented." + this.debugInfo());
664
- };
665
-
666
- XMLNode.prototype.lookupNamespaceURI = function(prefix) {
667
- throw new Error("This DOM method is not implemented." + this.debugInfo());
668
- };
669
-
670
- XMLNode.prototype.isEqualNode = function(node) {
671
- var i, j, ref2;
672
- if (node.nodeType !== this.nodeType) {
673
- return false;
674
- }
675
- if (node.children.length !== this.children.length) {
676
- return false;
677
- }
678
- for (i = j = 0, ref2 = this.children.length - 1; 0 <= ref2 ? j <= ref2 : j >= ref2; i = 0 <= ref2 ? ++j : --j) {
679
- if (!this.children[i].isEqualNode(node.children[i])) {
680
- return false;
681
- }
682
- }
683
- return true;
684
- };
685
-
686
- XMLNode.prototype.getFeature = function(feature, version) {
687
- throw new Error("This DOM method is not implemented." + this.debugInfo());
688
- };
689
-
690
- XMLNode.prototype.setUserData = function(key, data, handler) {
691
- throw new Error("This DOM method is not implemented." + this.debugInfo());
692
- };
693
-
694
- XMLNode.prototype.getUserData = function(key) {
695
- throw new Error("This DOM method is not implemented." + this.debugInfo());
696
- };
697
-
698
- XMLNode.prototype.contains = function(other) {
699
- if (!other) {
700
- return false;
701
- }
702
- return other === this || this.isDescendant(other);
703
- };
704
-
705
- XMLNode.prototype.isDescendant = function(node) {
706
- var child, isDescendantChild, j, len, ref2;
707
- ref2 = this.children;
708
- for (j = 0, len = ref2.length; j < len; j++) {
709
- child = ref2[j];
710
- if (node === child) {
711
- return true;
712
- }
713
- isDescendantChild = child.isDescendant(node);
714
- if (isDescendantChild) {
715
- return true;
716
- }
717
- }
718
- return false;
719
- };
720
-
721
- XMLNode.prototype.isAncestor = function(node) {
722
- return node.isDescendant(this);
723
- };
724
-
725
- XMLNode.prototype.isPreceding = function(node) {
726
- var nodePos, thisPos;
727
- nodePos = this.treePosition(node);
728
- thisPos = this.treePosition(this);
729
- if (nodePos === -1 || thisPos === -1) {
730
- return false;
731
- } else {
732
- return nodePos < thisPos;
733
- }
734
- };
735
-
736
- XMLNode.prototype.isFollowing = function(node) {
737
- var nodePos, thisPos;
738
- nodePos = this.treePosition(node);
739
- thisPos = this.treePosition(this);
740
- if (nodePos === -1 || thisPos === -1) {
741
- return false;
742
- } else {
743
- return nodePos > thisPos;
744
- }
745
- };
746
-
747
- XMLNode.prototype.treePosition = function(node) {
748
- var found, pos;
749
- pos = 0;
750
- found = false;
751
- this.foreachTreeNode(this.document(), function(childNode) {
752
- pos++;
753
- if (!found && childNode === node) {
754
- return found = true;
755
- }
756
- });
757
- if (found) {
758
- return pos;
759
- } else {
760
- return -1;
761
- }
762
- };
763
-
764
- XMLNode.prototype.foreachTreeNode = function(node, func) {
765
- var child, j, len, ref2, res;
766
- node || (node = this.document());
767
- ref2 = node.children;
768
- for (j = 0, len = ref2.length; j < len; j++) {
769
- child = ref2[j];
770
- if (res = func(child)) {
771
- return res;
772
- } else {
773
- res = this.foreachTreeNode(child, func);
774
- if (res) {
775
- return res;
776
- }
777
- }
778
- }
779
- };
780
-
781
- return XMLNode;
782
-
783
- })();
784
-
785
- }).call(this);