@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.
- package/npm-shrinkwrap.json +6 -10
- package/package.json +1 -4
- package/node_modules/@zowe/cics-for-zowe-sdk/LICENSE +0 -277
- package/node_modules/@zowe/cics-for-zowe-sdk/README.md +0 -161
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/CicsCmci.constants.d.ts +0 -84
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/CicsCmci.constants.js +0 -91
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/CicsCmci.constants.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/CicsCmci.messages.d.ts +0 -17
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/CicsCmci.messages.js +0 -22
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/CicsCmci.messages.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/index.d.ts +0 -12
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/index.js +0 -29
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/index.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICMCIApiResponse.d.ts +0 -33
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICMCIApiResponse.js +0 -13
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICMCIApiResponse.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICMCIResponseResultSummary.d.ts +0 -28
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICMCIResponseResultSummary.js +0 -13
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICMCIResponseResultSummary.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICSDGroupParms.d.ts +0 -30
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICSDGroupParms.js +0 -13
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICSDGroupParms.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICacheParms.d.ts +0 -17
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICacheParms.js +0 -13
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICacheParms.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IGetResourceUriOptions.d.ts +0 -42
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IGetResourceUriOptions.js +0 -13
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IGetResourceUriOptions.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IProgramParms.d.ts +0 -30
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IProgramParms.js +0 -13
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IProgramParms.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResourceParms.d.ts +0 -17
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResourceParms.js +0 -13
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResourceParms.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResourceQueryParms.d.ts +0 -24
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResourceQueryParms.js +0 -13
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResourceQueryParms.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResultCacheParms.d.ts +0 -21
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResultCacheParms.js +0 -13
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResultCacheParms.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ITransactionParms.d.ts +0 -35
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ITransactionParms.js +0 -13
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ITransactionParms.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IURIMapParms.d.ts +0 -89
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IURIMapParms.js +0 -13
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IURIMapParms.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IWebServiceParms.d.ts +0 -55
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IWebServiceParms.js +0 -13
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IWebServiceParms.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/index.d.ts +0 -22
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/index.js +0 -39
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/index.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/index.d.ts +0 -15
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/index.js +0 -32
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/index.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/add-to-list/AddToList.d.ts +0 -23
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/add-to-list/AddToList.js +0 -57
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/add-to-list/AddToList.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/add-to-list/index.d.ts +0 -11
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/add-to-list/index.js +0 -28
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/add-to-list/index.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/cache/Cache.d.ts +0 -14
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/cache/Cache.js +0 -30
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/cache/Cache.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/cache/index.d.ts +0 -11
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/cache/index.js +0 -28
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/cache/index.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/define/Define.d.ts +0 -85
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/define/Define.js +0 -301
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/define/Define.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/define/index.d.ts +0 -11
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/define/index.js +0 -28
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/define/index.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/delete/Delete.d.ts +0 -58
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/delete/Delete.js +0 -120
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/delete/Delete.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/delete/index.d.ts +0 -11
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/delete/index.js +0 -28
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/delete/index.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/disable/Disable.d.ts +0 -24
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/disable/Disable.js +0 -53
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/disable/Disable.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/disable/index.d.ts +0 -11
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/disable/index.js +0 -28
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/disable/index.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/discard/Discard.d.ts +0 -35
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/discard/Discard.js +0 -77
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/discard/Discard.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/discard/index.d.ts +0 -11
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/discard/index.js +0 -28
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/discard/index.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/enable/Enable.d.ts +0 -24
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/enable/Enable.js +0 -53
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/enable/Enable.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/enable/index.d.ts +0 -11
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/enable/index.js +0 -28
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/enable/index.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/get/Get.d.ts +0 -23
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/get/Get.js +0 -41
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/get/Get.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/get/index.d.ts +0 -11
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/get/index.js +0 -28
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/get/index.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/index.d.ts +0 -21
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/index.js +0 -38
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/index.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/install/Install.d.ts +0 -48
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/install/Install.js +0 -123
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/install/Install.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/install/index.d.ts +0 -11
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/install/index.js +0 -28
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/install/index.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/remove-from-list/RemoveFromList.d.ts +0 -23
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/remove-from-list/RemoveFromList.js +0 -42
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/remove-from-list/RemoveFromList.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/remove-from-list/index.d.ts +0 -11
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/remove-from-list/index.js +0 -28
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/remove-from-list/index.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/set/Set.d.ts +0 -23
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/set/Set.js +0 -50
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/set/Set.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/set/index.d.ts +0 -11
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/set/index.js +0 -28
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/set/index.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/rest/CicsCmciRestClient.d.ts +0 -128
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/rest/CicsCmciRestClient.js +0 -220
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/rest/CicsCmciRestClient.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/rest/index.d.ts +0 -11
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/rest/index.js +0 -28
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/rest/index.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/utils/Utils.d.ts +0 -27
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/utils/Utils.js +0 -80
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/utils/Utils.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/utils/index.d.ts +0 -11
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/utils/index.js +0 -28
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/utils/index.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/package.json +0 -54
- package/node_modules/sax/LICENSE +0 -41
- package/node_modules/sax/README.md +0 -228
- package/node_modules/sax/lib/sax.js +0 -1597
- package/node_modules/sax/package.json +0 -29
- package/node_modules/xml2js/LICENSE +0 -19
- package/node_modules/xml2js/README.md +0 -507
- package/node_modules/xml2js/lib/bom.js +0 -12
- package/node_modules/xml2js/lib/builder.js +0 -127
- package/node_modules/xml2js/lib/defaults.js +0 -72
- package/node_modules/xml2js/lib/parser.js +0 -385
- package/node_modules/xml2js/lib/processors.js +0 -34
- package/node_modules/xml2js/lib/xml2js.js +0 -39
- package/node_modules/xml2js/node_modules/xmlbuilder/CHANGELOG.md +0 -470
- package/node_modules/xml2js/node_modules/xmlbuilder/LICENSE +0 -21
- package/node_modules/xml2js/node_modules/xmlbuilder/README.md +0 -86
- package/node_modules/xml2js/node_modules/xmlbuilder/appveyor.yml +0 -20
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/Derivation.js +0 -10
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/DocumentPosition.js +0 -12
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/NodeType.js +0 -23
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/OperationType.js +0 -11
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/Utility.js +0 -83
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/WriterState.js +0 -10
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLAttribute.js +0 -108
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLCData.js +0 -36
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLCharacterData.js +0 -79
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLComment.js +0 -36
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDOMConfiguration.js +0 -64
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDOMErrorHandler.js +0 -16
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDOMImplementation.js +0 -32
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDOMStringList.js +0 -28
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDTDAttList.js +0 -55
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDTDElement.js +0 -38
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDTDEntity.js +0 -97
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDTDNotation.js +0 -52
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDeclaration.js +0 -43
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDocType.js +0 -186
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDocument.js +0 -242
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDocumentCB.js +0 -528
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDocumentFragment.js +0 -24
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDummy.js +0 -31
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLElement.js +0 -298
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLNamedNodeMap.js +0 -58
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLNode.js +0 -785
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLNodeFilter.js +0 -48
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLNodeList.js +0 -28
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLProcessingInstruction.js +0 -49
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLRaw.js +0 -35
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLStreamWriter.js +0 -176
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLStringWriter.js +0 -35
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLStringifier.js +0 -240
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLText.js +0 -69
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLTypeInfo.js +0 -21
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLUserDataHandler.js +0 -16
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLWriterBase.js +0 -428
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/index.js +0 -65
- package/node_modules/xml2js/node_modules/xmlbuilder/package.json +0 -39
- package/node_modules/xml2js/node_modules/xmlbuilder/typings/index.d.ts +0 -153
- package/node_modules/xml2js/package.json +0 -93
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
// Generated by CoffeeScript 1.12.7
|
|
2
|
-
(function() {
|
|
3
|
-
var XMLNodeFilter;
|
|
4
|
-
|
|
5
|
-
module.exports = XMLNodeFilter = (function() {
|
|
6
|
-
function XMLNodeFilter() {}
|
|
7
|
-
|
|
8
|
-
XMLNodeFilter.prototype.FilterAccept = 1;
|
|
9
|
-
|
|
10
|
-
XMLNodeFilter.prototype.FilterReject = 2;
|
|
11
|
-
|
|
12
|
-
XMLNodeFilter.prototype.FilterSkip = 3;
|
|
13
|
-
|
|
14
|
-
XMLNodeFilter.prototype.ShowAll = 0xffffffff;
|
|
15
|
-
|
|
16
|
-
XMLNodeFilter.prototype.ShowElement = 0x1;
|
|
17
|
-
|
|
18
|
-
XMLNodeFilter.prototype.ShowAttribute = 0x2;
|
|
19
|
-
|
|
20
|
-
XMLNodeFilter.prototype.ShowText = 0x4;
|
|
21
|
-
|
|
22
|
-
XMLNodeFilter.prototype.ShowCDataSection = 0x8;
|
|
23
|
-
|
|
24
|
-
XMLNodeFilter.prototype.ShowEntityReference = 0x10;
|
|
25
|
-
|
|
26
|
-
XMLNodeFilter.prototype.ShowEntity = 0x20;
|
|
27
|
-
|
|
28
|
-
XMLNodeFilter.prototype.ShowProcessingInstruction = 0x40;
|
|
29
|
-
|
|
30
|
-
XMLNodeFilter.prototype.ShowComment = 0x80;
|
|
31
|
-
|
|
32
|
-
XMLNodeFilter.prototype.ShowDocument = 0x100;
|
|
33
|
-
|
|
34
|
-
XMLNodeFilter.prototype.ShowDocumentType = 0x200;
|
|
35
|
-
|
|
36
|
-
XMLNodeFilter.prototype.ShowDocumentFragment = 0x400;
|
|
37
|
-
|
|
38
|
-
XMLNodeFilter.prototype.ShowNotation = 0x800;
|
|
39
|
-
|
|
40
|
-
XMLNodeFilter.prototype.acceptNode = function(node) {
|
|
41
|
-
throw new Error("This DOM method is not implemented.");
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
return XMLNodeFilter;
|
|
45
|
-
|
|
46
|
-
})();
|
|
47
|
-
|
|
48
|
-
}).call(this);
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
// Generated by CoffeeScript 1.12.7
|
|
2
|
-
(function() {
|
|
3
|
-
var XMLNodeList;
|
|
4
|
-
|
|
5
|
-
module.exports = XMLNodeList = (function() {
|
|
6
|
-
function XMLNodeList(nodes) {
|
|
7
|
-
this.nodes = nodes;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
Object.defineProperty(XMLNodeList.prototype, 'length', {
|
|
11
|
-
get: function() {
|
|
12
|
-
return this.nodes.length || 0;
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
XMLNodeList.prototype.clone = function() {
|
|
17
|
-
return this.nodes = null;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
XMLNodeList.prototype.item = function(index) {
|
|
21
|
-
return this.nodes[index] || null;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
return XMLNodeList;
|
|
25
|
-
|
|
26
|
-
})();
|
|
27
|
-
|
|
28
|
-
}).call(this);
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
// Generated by CoffeeScript 1.12.7
|
|
2
|
-
(function() {
|
|
3
|
-
var NodeType, XMLCharacterData, XMLProcessingInstruction,
|
|
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
|
-
NodeType = require('./NodeType');
|
|
8
|
-
|
|
9
|
-
XMLCharacterData = require('./XMLCharacterData');
|
|
10
|
-
|
|
11
|
-
module.exports = XMLProcessingInstruction = (function(superClass) {
|
|
12
|
-
extend(XMLProcessingInstruction, superClass);
|
|
13
|
-
|
|
14
|
-
function XMLProcessingInstruction(parent, target, value) {
|
|
15
|
-
XMLProcessingInstruction.__super__.constructor.call(this, parent);
|
|
16
|
-
if (target == null) {
|
|
17
|
-
throw new Error("Missing instruction target. " + this.debugInfo());
|
|
18
|
-
}
|
|
19
|
-
this.type = NodeType.ProcessingInstruction;
|
|
20
|
-
this.target = this.stringify.insTarget(target);
|
|
21
|
-
this.name = this.target;
|
|
22
|
-
if (value) {
|
|
23
|
-
this.value = this.stringify.insValue(value);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
XMLProcessingInstruction.prototype.clone = function() {
|
|
28
|
-
return Object.create(this);
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
XMLProcessingInstruction.prototype.toString = function(options) {
|
|
32
|
-
return this.options.writer.processingInstruction(this, this.options.writer.filterOptions(options));
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
XMLProcessingInstruction.prototype.isEqualNode = function(node) {
|
|
36
|
-
if (!XMLProcessingInstruction.__super__.isEqualNode.apply(this, arguments).isEqualNode(node)) {
|
|
37
|
-
return false;
|
|
38
|
-
}
|
|
39
|
-
if (node.target !== this.target) {
|
|
40
|
-
return false;
|
|
41
|
-
}
|
|
42
|
-
return true;
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
return XMLProcessingInstruction;
|
|
46
|
-
|
|
47
|
-
})(XMLCharacterData);
|
|
48
|
-
|
|
49
|
-
}).call(this);
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
// Generated by CoffeeScript 1.12.7
|
|
2
|
-
(function() {
|
|
3
|
-
var NodeType, XMLNode, XMLRaw,
|
|
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
|
-
NodeType = require('./NodeType');
|
|
8
|
-
|
|
9
|
-
XMLNode = require('./XMLNode');
|
|
10
|
-
|
|
11
|
-
module.exports = XMLRaw = (function(superClass) {
|
|
12
|
-
extend(XMLRaw, superClass);
|
|
13
|
-
|
|
14
|
-
function XMLRaw(parent, text) {
|
|
15
|
-
XMLRaw.__super__.constructor.call(this, parent);
|
|
16
|
-
if (text == null) {
|
|
17
|
-
throw new Error("Missing raw text. " + this.debugInfo());
|
|
18
|
-
}
|
|
19
|
-
this.type = NodeType.Raw;
|
|
20
|
-
this.value = this.stringify.raw(text);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
XMLRaw.prototype.clone = function() {
|
|
24
|
-
return Object.create(this);
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
XMLRaw.prototype.toString = function(options) {
|
|
28
|
-
return this.options.writer.raw(this, this.options.writer.filterOptions(options));
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
return XMLRaw;
|
|
32
|
-
|
|
33
|
-
})(XMLNode);
|
|
34
|
-
|
|
35
|
-
}).call(this);
|
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
// Generated by CoffeeScript 1.12.7
|
|
2
|
-
(function() {
|
|
3
|
-
var NodeType, WriterState, XMLStreamWriter, XMLWriterBase,
|
|
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
|
-
NodeType = require('./NodeType');
|
|
8
|
-
|
|
9
|
-
XMLWriterBase = require('./XMLWriterBase');
|
|
10
|
-
|
|
11
|
-
WriterState = require('./WriterState');
|
|
12
|
-
|
|
13
|
-
module.exports = XMLStreamWriter = (function(superClass) {
|
|
14
|
-
extend(XMLStreamWriter, superClass);
|
|
15
|
-
|
|
16
|
-
function XMLStreamWriter(stream, options) {
|
|
17
|
-
this.stream = stream;
|
|
18
|
-
XMLStreamWriter.__super__.constructor.call(this, options);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
XMLStreamWriter.prototype.endline = function(node, options, level) {
|
|
22
|
-
if (node.isLastRootNode && options.state === WriterState.CloseTag) {
|
|
23
|
-
return '';
|
|
24
|
-
} else {
|
|
25
|
-
return XMLStreamWriter.__super__.endline.call(this, node, options, level);
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
XMLStreamWriter.prototype.document = function(doc, options) {
|
|
30
|
-
var child, i, j, k, len, len1, ref, ref1, results;
|
|
31
|
-
ref = doc.children;
|
|
32
|
-
for (i = j = 0, len = ref.length; j < len; i = ++j) {
|
|
33
|
-
child = ref[i];
|
|
34
|
-
child.isLastRootNode = i === doc.children.length - 1;
|
|
35
|
-
}
|
|
36
|
-
options = this.filterOptions(options);
|
|
37
|
-
ref1 = doc.children;
|
|
38
|
-
results = [];
|
|
39
|
-
for (k = 0, len1 = ref1.length; k < len1; k++) {
|
|
40
|
-
child = ref1[k];
|
|
41
|
-
results.push(this.writeChildNode(child, options, 0));
|
|
42
|
-
}
|
|
43
|
-
return results;
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
XMLStreamWriter.prototype.attribute = function(att, options, level) {
|
|
47
|
-
return this.stream.write(XMLStreamWriter.__super__.attribute.call(this, att, options, level));
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
XMLStreamWriter.prototype.cdata = function(node, options, level) {
|
|
51
|
-
return this.stream.write(XMLStreamWriter.__super__.cdata.call(this, node, options, level));
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
XMLStreamWriter.prototype.comment = function(node, options, level) {
|
|
55
|
-
return this.stream.write(XMLStreamWriter.__super__.comment.call(this, node, options, level));
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
XMLStreamWriter.prototype.declaration = function(node, options, level) {
|
|
59
|
-
return this.stream.write(XMLStreamWriter.__super__.declaration.call(this, node, options, level));
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
XMLStreamWriter.prototype.docType = function(node, options, level) {
|
|
63
|
-
var child, j, len, ref;
|
|
64
|
-
level || (level = 0);
|
|
65
|
-
this.openNode(node, options, level);
|
|
66
|
-
options.state = WriterState.OpenTag;
|
|
67
|
-
this.stream.write(this.indent(node, options, level));
|
|
68
|
-
this.stream.write('<!DOCTYPE ' + node.root().name);
|
|
69
|
-
if (node.pubID && node.sysID) {
|
|
70
|
-
this.stream.write(' PUBLIC "' + node.pubID + '" "' + node.sysID + '"');
|
|
71
|
-
} else if (node.sysID) {
|
|
72
|
-
this.stream.write(' SYSTEM "' + node.sysID + '"');
|
|
73
|
-
}
|
|
74
|
-
if (node.children.length > 0) {
|
|
75
|
-
this.stream.write(' [');
|
|
76
|
-
this.stream.write(this.endline(node, options, level));
|
|
77
|
-
options.state = WriterState.InsideTag;
|
|
78
|
-
ref = node.children;
|
|
79
|
-
for (j = 0, len = ref.length; j < len; j++) {
|
|
80
|
-
child = ref[j];
|
|
81
|
-
this.writeChildNode(child, options, level + 1);
|
|
82
|
-
}
|
|
83
|
-
options.state = WriterState.CloseTag;
|
|
84
|
-
this.stream.write(']');
|
|
85
|
-
}
|
|
86
|
-
options.state = WriterState.CloseTag;
|
|
87
|
-
this.stream.write(options.spaceBeforeSlash + '>');
|
|
88
|
-
this.stream.write(this.endline(node, options, level));
|
|
89
|
-
options.state = WriterState.None;
|
|
90
|
-
return this.closeNode(node, options, level);
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
XMLStreamWriter.prototype.element = function(node, options, level) {
|
|
94
|
-
var att, child, childNodeCount, firstChildNode, j, len, name, prettySuppressed, ref, ref1;
|
|
95
|
-
level || (level = 0);
|
|
96
|
-
this.openNode(node, options, level);
|
|
97
|
-
options.state = WriterState.OpenTag;
|
|
98
|
-
this.stream.write(this.indent(node, options, level) + '<' + node.name);
|
|
99
|
-
ref = node.attribs;
|
|
100
|
-
for (name in ref) {
|
|
101
|
-
if (!hasProp.call(ref, name)) continue;
|
|
102
|
-
att = ref[name];
|
|
103
|
-
this.attribute(att, options, level);
|
|
104
|
-
}
|
|
105
|
-
childNodeCount = node.children.length;
|
|
106
|
-
firstChildNode = childNodeCount === 0 ? null : node.children[0];
|
|
107
|
-
if (childNodeCount === 0 || node.children.every(function(e) {
|
|
108
|
-
return (e.type === NodeType.Text || e.type === NodeType.Raw) && e.value === '';
|
|
109
|
-
})) {
|
|
110
|
-
if (options.allowEmpty) {
|
|
111
|
-
this.stream.write('>');
|
|
112
|
-
options.state = WriterState.CloseTag;
|
|
113
|
-
this.stream.write('</' + node.name + '>');
|
|
114
|
-
} else {
|
|
115
|
-
options.state = WriterState.CloseTag;
|
|
116
|
-
this.stream.write(options.spaceBeforeSlash + '/>');
|
|
117
|
-
}
|
|
118
|
-
} else if (options.pretty && childNodeCount === 1 && (firstChildNode.type === NodeType.Text || firstChildNode.type === NodeType.Raw) && (firstChildNode.value != null)) {
|
|
119
|
-
this.stream.write('>');
|
|
120
|
-
options.state = WriterState.InsideTag;
|
|
121
|
-
options.suppressPrettyCount++;
|
|
122
|
-
prettySuppressed = true;
|
|
123
|
-
this.writeChildNode(firstChildNode, options, level + 1);
|
|
124
|
-
options.suppressPrettyCount--;
|
|
125
|
-
prettySuppressed = false;
|
|
126
|
-
options.state = WriterState.CloseTag;
|
|
127
|
-
this.stream.write('</' + node.name + '>');
|
|
128
|
-
} else {
|
|
129
|
-
this.stream.write('>' + this.endline(node, options, level));
|
|
130
|
-
options.state = WriterState.InsideTag;
|
|
131
|
-
ref1 = node.children;
|
|
132
|
-
for (j = 0, len = ref1.length; j < len; j++) {
|
|
133
|
-
child = ref1[j];
|
|
134
|
-
this.writeChildNode(child, options, level + 1);
|
|
135
|
-
}
|
|
136
|
-
options.state = WriterState.CloseTag;
|
|
137
|
-
this.stream.write(this.indent(node, options, level) + '</' + node.name + '>');
|
|
138
|
-
}
|
|
139
|
-
this.stream.write(this.endline(node, options, level));
|
|
140
|
-
options.state = WriterState.None;
|
|
141
|
-
return this.closeNode(node, options, level);
|
|
142
|
-
};
|
|
143
|
-
|
|
144
|
-
XMLStreamWriter.prototype.processingInstruction = function(node, options, level) {
|
|
145
|
-
return this.stream.write(XMLStreamWriter.__super__.processingInstruction.call(this, node, options, level));
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
XMLStreamWriter.prototype.raw = function(node, options, level) {
|
|
149
|
-
return this.stream.write(XMLStreamWriter.__super__.raw.call(this, node, options, level));
|
|
150
|
-
};
|
|
151
|
-
|
|
152
|
-
XMLStreamWriter.prototype.text = function(node, options, level) {
|
|
153
|
-
return this.stream.write(XMLStreamWriter.__super__.text.call(this, node, options, level));
|
|
154
|
-
};
|
|
155
|
-
|
|
156
|
-
XMLStreamWriter.prototype.dtdAttList = function(node, options, level) {
|
|
157
|
-
return this.stream.write(XMLStreamWriter.__super__.dtdAttList.call(this, node, options, level));
|
|
158
|
-
};
|
|
159
|
-
|
|
160
|
-
XMLStreamWriter.prototype.dtdElement = function(node, options, level) {
|
|
161
|
-
return this.stream.write(XMLStreamWriter.__super__.dtdElement.call(this, node, options, level));
|
|
162
|
-
};
|
|
163
|
-
|
|
164
|
-
XMLStreamWriter.prototype.dtdEntity = function(node, options, level) {
|
|
165
|
-
return this.stream.write(XMLStreamWriter.__super__.dtdEntity.call(this, node, options, level));
|
|
166
|
-
};
|
|
167
|
-
|
|
168
|
-
XMLStreamWriter.prototype.dtdNotation = function(node, options, level) {
|
|
169
|
-
return this.stream.write(XMLStreamWriter.__super__.dtdNotation.call(this, node, options, level));
|
|
170
|
-
};
|
|
171
|
-
|
|
172
|
-
return XMLStreamWriter;
|
|
173
|
-
|
|
174
|
-
})(XMLWriterBase);
|
|
175
|
-
|
|
176
|
-
}).call(this);
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
// Generated by CoffeeScript 1.12.7
|
|
2
|
-
(function() {
|
|
3
|
-
var XMLStringWriter, XMLWriterBase,
|
|
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
|
-
XMLWriterBase = require('./XMLWriterBase');
|
|
8
|
-
|
|
9
|
-
module.exports = XMLStringWriter = (function(superClass) {
|
|
10
|
-
extend(XMLStringWriter, superClass);
|
|
11
|
-
|
|
12
|
-
function XMLStringWriter(options) {
|
|
13
|
-
XMLStringWriter.__super__.constructor.call(this, options);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
XMLStringWriter.prototype.document = function(doc, options) {
|
|
17
|
-
var child, i, len, r, ref;
|
|
18
|
-
options = this.filterOptions(options);
|
|
19
|
-
r = '';
|
|
20
|
-
ref = doc.children;
|
|
21
|
-
for (i = 0, len = ref.length; i < len; i++) {
|
|
22
|
-
child = ref[i];
|
|
23
|
-
r += this.writeChildNode(child, options, 0);
|
|
24
|
-
}
|
|
25
|
-
if (options.pretty && r.slice(-options.newline.length) === options.newline) {
|
|
26
|
-
r = r.slice(0, -options.newline.length);
|
|
27
|
-
}
|
|
28
|
-
return r;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
return XMLStringWriter;
|
|
32
|
-
|
|
33
|
-
})(XMLWriterBase);
|
|
34
|
-
|
|
35
|
-
}).call(this);
|
|
@@ -1,240 +0,0 @@
|
|
|
1
|
-
// Generated by CoffeeScript 1.12.7
|
|
2
|
-
(function() {
|
|
3
|
-
var XMLStringifier,
|
|
4
|
-
bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
|
|
5
|
-
hasProp = {}.hasOwnProperty;
|
|
6
|
-
|
|
7
|
-
module.exports = XMLStringifier = (function() {
|
|
8
|
-
function XMLStringifier(options) {
|
|
9
|
-
this.assertLegalName = bind(this.assertLegalName, this);
|
|
10
|
-
this.assertLegalChar = bind(this.assertLegalChar, this);
|
|
11
|
-
var key, ref, value;
|
|
12
|
-
options || (options = {});
|
|
13
|
-
this.options = options;
|
|
14
|
-
if (!this.options.version) {
|
|
15
|
-
this.options.version = '1.0';
|
|
16
|
-
}
|
|
17
|
-
ref = options.stringify || {};
|
|
18
|
-
for (key in ref) {
|
|
19
|
-
if (!hasProp.call(ref, key)) continue;
|
|
20
|
-
value = ref[key];
|
|
21
|
-
this[key] = value;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
XMLStringifier.prototype.name = function(val) {
|
|
26
|
-
if (this.options.noValidation) {
|
|
27
|
-
return val;
|
|
28
|
-
}
|
|
29
|
-
return this.assertLegalName('' + val || '');
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
XMLStringifier.prototype.text = function(val) {
|
|
33
|
-
if (this.options.noValidation) {
|
|
34
|
-
return val;
|
|
35
|
-
}
|
|
36
|
-
return this.assertLegalChar(this.textEscape('' + val || ''));
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
XMLStringifier.prototype.cdata = function(val) {
|
|
40
|
-
if (this.options.noValidation) {
|
|
41
|
-
return val;
|
|
42
|
-
}
|
|
43
|
-
val = '' + val || '';
|
|
44
|
-
val = val.replace(']]>', ']]]]><![CDATA[>');
|
|
45
|
-
return this.assertLegalChar(val);
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
XMLStringifier.prototype.comment = function(val) {
|
|
49
|
-
if (this.options.noValidation) {
|
|
50
|
-
return val;
|
|
51
|
-
}
|
|
52
|
-
val = '' + val || '';
|
|
53
|
-
if (val.match(/--/)) {
|
|
54
|
-
throw new Error("Comment text cannot contain double-hypen: " + val);
|
|
55
|
-
}
|
|
56
|
-
return this.assertLegalChar(val);
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
XMLStringifier.prototype.raw = function(val) {
|
|
60
|
-
if (this.options.noValidation) {
|
|
61
|
-
return val;
|
|
62
|
-
}
|
|
63
|
-
return '' + val || '';
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
XMLStringifier.prototype.attValue = function(val) {
|
|
67
|
-
if (this.options.noValidation) {
|
|
68
|
-
return val;
|
|
69
|
-
}
|
|
70
|
-
return this.assertLegalChar(this.attEscape(val = '' + val || ''));
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
XMLStringifier.prototype.insTarget = function(val) {
|
|
74
|
-
if (this.options.noValidation) {
|
|
75
|
-
return val;
|
|
76
|
-
}
|
|
77
|
-
return this.assertLegalChar('' + val || '');
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
XMLStringifier.prototype.insValue = function(val) {
|
|
81
|
-
if (this.options.noValidation) {
|
|
82
|
-
return val;
|
|
83
|
-
}
|
|
84
|
-
val = '' + val || '';
|
|
85
|
-
if (val.match(/\?>/)) {
|
|
86
|
-
throw new Error("Invalid processing instruction value: " + val);
|
|
87
|
-
}
|
|
88
|
-
return this.assertLegalChar(val);
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
XMLStringifier.prototype.xmlVersion = function(val) {
|
|
92
|
-
if (this.options.noValidation) {
|
|
93
|
-
return val;
|
|
94
|
-
}
|
|
95
|
-
val = '' + val || '';
|
|
96
|
-
if (!val.match(/1\.[0-9]+/)) {
|
|
97
|
-
throw new Error("Invalid version number: " + val);
|
|
98
|
-
}
|
|
99
|
-
return val;
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
XMLStringifier.prototype.xmlEncoding = function(val) {
|
|
103
|
-
if (this.options.noValidation) {
|
|
104
|
-
return val;
|
|
105
|
-
}
|
|
106
|
-
val = '' + val || '';
|
|
107
|
-
if (!val.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/)) {
|
|
108
|
-
throw new Error("Invalid encoding: " + val);
|
|
109
|
-
}
|
|
110
|
-
return this.assertLegalChar(val);
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
XMLStringifier.prototype.xmlStandalone = function(val) {
|
|
114
|
-
if (this.options.noValidation) {
|
|
115
|
-
return val;
|
|
116
|
-
}
|
|
117
|
-
if (val) {
|
|
118
|
-
return "yes";
|
|
119
|
-
} else {
|
|
120
|
-
return "no";
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
XMLStringifier.prototype.dtdPubID = function(val) {
|
|
125
|
-
if (this.options.noValidation) {
|
|
126
|
-
return val;
|
|
127
|
-
}
|
|
128
|
-
return this.assertLegalChar('' + val || '');
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
XMLStringifier.prototype.dtdSysID = function(val) {
|
|
132
|
-
if (this.options.noValidation) {
|
|
133
|
-
return val;
|
|
134
|
-
}
|
|
135
|
-
return this.assertLegalChar('' + val || '');
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
XMLStringifier.prototype.dtdElementValue = function(val) {
|
|
139
|
-
if (this.options.noValidation) {
|
|
140
|
-
return val;
|
|
141
|
-
}
|
|
142
|
-
return this.assertLegalChar('' + val || '');
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
XMLStringifier.prototype.dtdAttType = function(val) {
|
|
146
|
-
if (this.options.noValidation) {
|
|
147
|
-
return val;
|
|
148
|
-
}
|
|
149
|
-
return this.assertLegalChar('' + val || '');
|
|
150
|
-
};
|
|
151
|
-
|
|
152
|
-
XMLStringifier.prototype.dtdAttDefault = function(val) {
|
|
153
|
-
if (this.options.noValidation) {
|
|
154
|
-
return val;
|
|
155
|
-
}
|
|
156
|
-
return this.assertLegalChar('' + val || '');
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
XMLStringifier.prototype.dtdEntityValue = function(val) {
|
|
160
|
-
if (this.options.noValidation) {
|
|
161
|
-
return val;
|
|
162
|
-
}
|
|
163
|
-
return this.assertLegalChar('' + val || '');
|
|
164
|
-
};
|
|
165
|
-
|
|
166
|
-
XMLStringifier.prototype.dtdNData = function(val) {
|
|
167
|
-
if (this.options.noValidation) {
|
|
168
|
-
return val;
|
|
169
|
-
}
|
|
170
|
-
return this.assertLegalChar('' + val || '');
|
|
171
|
-
};
|
|
172
|
-
|
|
173
|
-
XMLStringifier.prototype.convertAttKey = '@';
|
|
174
|
-
|
|
175
|
-
XMLStringifier.prototype.convertPIKey = '?';
|
|
176
|
-
|
|
177
|
-
XMLStringifier.prototype.convertTextKey = '#text';
|
|
178
|
-
|
|
179
|
-
XMLStringifier.prototype.convertCDataKey = '#cdata';
|
|
180
|
-
|
|
181
|
-
XMLStringifier.prototype.convertCommentKey = '#comment';
|
|
182
|
-
|
|
183
|
-
XMLStringifier.prototype.convertRawKey = '#raw';
|
|
184
|
-
|
|
185
|
-
XMLStringifier.prototype.assertLegalChar = function(str) {
|
|
186
|
-
var regex, res;
|
|
187
|
-
if (this.options.noValidation) {
|
|
188
|
-
return str;
|
|
189
|
-
}
|
|
190
|
-
regex = '';
|
|
191
|
-
if (this.options.version === '1.0') {
|
|
192
|
-
regex = /[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
|
|
193
|
-
if (res = str.match(regex)) {
|
|
194
|
-
throw new Error("Invalid character in string: " + str + " at index " + res.index);
|
|
195
|
-
}
|
|
196
|
-
} else if (this.options.version === '1.1') {
|
|
197
|
-
regex = /[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
|
|
198
|
-
if (res = str.match(regex)) {
|
|
199
|
-
throw new Error("Invalid character in string: " + str + " at index " + res.index);
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
return str;
|
|
203
|
-
};
|
|
204
|
-
|
|
205
|
-
XMLStringifier.prototype.assertLegalName = function(str) {
|
|
206
|
-
var regex;
|
|
207
|
-
if (this.options.noValidation) {
|
|
208
|
-
return str;
|
|
209
|
-
}
|
|
210
|
-
this.assertLegalChar(str);
|
|
211
|
-
regex = /^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/;
|
|
212
|
-
if (!str.match(regex)) {
|
|
213
|
-
throw new Error("Invalid character in name");
|
|
214
|
-
}
|
|
215
|
-
return str;
|
|
216
|
-
};
|
|
217
|
-
|
|
218
|
-
XMLStringifier.prototype.textEscape = function(str) {
|
|
219
|
-
var ampregex;
|
|
220
|
-
if (this.options.noValidation) {
|
|
221
|
-
return str;
|
|
222
|
-
}
|
|
223
|
-
ampregex = this.options.noDoubleEncoding ? /(?!&\S+;)&/g : /&/g;
|
|
224
|
-
return str.replace(ampregex, '&').replace(/</g, '<').replace(/>/g, '>').replace(/\r/g, '
');
|
|
225
|
-
};
|
|
226
|
-
|
|
227
|
-
XMLStringifier.prototype.attEscape = function(str) {
|
|
228
|
-
var ampregex;
|
|
229
|
-
if (this.options.noValidation) {
|
|
230
|
-
return str;
|
|
231
|
-
}
|
|
232
|
-
ampregex = this.options.noDoubleEncoding ? /(?!&\S+;)&/g : /&/g;
|
|
233
|
-
return str.replace(ampregex, '&').replace(/</g, '<').replace(/"/g, '"').replace(/\t/g, '	').replace(/\n/g, '
').replace(/\r/g, '
');
|
|
234
|
-
};
|
|
235
|
-
|
|
236
|
-
return XMLStringifier;
|
|
237
|
-
|
|
238
|
-
})();
|
|
239
|
-
|
|
240
|
-
}).call(this);
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
// Generated by CoffeeScript 1.12.7
|
|
2
|
-
(function() {
|
|
3
|
-
var NodeType, XMLCharacterData, XMLText,
|
|
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
|
-
NodeType = require('./NodeType');
|
|
8
|
-
|
|
9
|
-
XMLCharacterData = require('./XMLCharacterData');
|
|
10
|
-
|
|
11
|
-
module.exports = XMLText = (function(superClass) {
|
|
12
|
-
extend(XMLText, superClass);
|
|
13
|
-
|
|
14
|
-
function XMLText(parent, text) {
|
|
15
|
-
XMLText.__super__.constructor.call(this, parent);
|
|
16
|
-
if (text == null) {
|
|
17
|
-
throw new Error("Missing element text. " + this.debugInfo());
|
|
18
|
-
}
|
|
19
|
-
this.name = "#text";
|
|
20
|
-
this.type = NodeType.Text;
|
|
21
|
-
this.value = this.stringify.text(text);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
Object.defineProperty(XMLText.prototype, 'isElementContentWhitespace', {
|
|
25
|
-
get: function() {
|
|
26
|
-
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
Object.defineProperty(XMLText.prototype, 'wholeText', {
|
|
31
|
-
get: function() {
|
|
32
|
-
var next, prev, str;
|
|
33
|
-
str = '';
|
|
34
|
-
prev = this.previousSibling;
|
|
35
|
-
while (prev) {
|
|
36
|
-
str = prev.data + str;
|
|
37
|
-
prev = prev.previousSibling;
|
|
38
|
-
}
|
|
39
|
-
str += this.data;
|
|
40
|
-
next = this.nextSibling;
|
|
41
|
-
while (next) {
|
|
42
|
-
str = str + next.data;
|
|
43
|
-
next = next.nextSibling;
|
|
44
|
-
}
|
|
45
|
-
return str;
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
XMLText.prototype.clone = function() {
|
|
50
|
-
return Object.create(this);
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
XMLText.prototype.toString = function(options) {
|
|
54
|
-
return this.options.writer.text(this, this.options.writer.filterOptions(options));
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
XMLText.prototype.splitText = function(offset) {
|
|
58
|
-
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
XMLText.prototype.replaceWholeText = function(content) {
|
|
62
|
-
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
return XMLText;
|
|
66
|
-
|
|
67
|
-
})(XMLCharacterData);
|
|
68
|
-
|
|
69
|
-
}).call(this);
|