@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,83 +0,0 @@
|
|
|
1
|
-
// Generated by CoffeeScript 1.12.7
|
|
2
|
-
(function() {
|
|
3
|
-
var assign, getValue, isArray, isEmpty, isFunction, isObject, isPlainObject,
|
|
4
|
-
slice = [].slice,
|
|
5
|
-
hasProp = {}.hasOwnProperty;
|
|
6
|
-
|
|
7
|
-
assign = function() {
|
|
8
|
-
var i, key, len, source, sources, target;
|
|
9
|
-
target = arguments[0], sources = 2 <= arguments.length ? slice.call(arguments, 1) : [];
|
|
10
|
-
if (isFunction(Object.assign)) {
|
|
11
|
-
Object.assign.apply(null, arguments);
|
|
12
|
-
} else {
|
|
13
|
-
for (i = 0, len = sources.length; i < len; i++) {
|
|
14
|
-
source = sources[i];
|
|
15
|
-
if (source != null) {
|
|
16
|
-
for (key in source) {
|
|
17
|
-
if (!hasProp.call(source, key)) continue;
|
|
18
|
-
target[key] = source[key];
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
return target;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
isFunction = function(val) {
|
|
27
|
-
return !!val && Object.prototype.toString.call(val) === '[object Function]';
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
isObject = function(val) {
|
|
31
|
-
var ref;
|
|
32
|
-
return !!val && ((ref = typeof val) === 'function' || ref === 'object');
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
isArray = function(val) {
|
|
36
|
-
if (isFunction(Array.isArray)) {
|
|
37
|
-
return Array.isArray(val);
|
|
38
|
-
} else {
|
|
39
|
-
return Object.prototype.toString.call(val) === '[object Array]';
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
isEmpty = function(val) {
|
|
44
|
-
var key;
|
|
45
|
-
if (isArray(val)) {
|
|
46
|
-
return !val.length;
|
|
47
|
-
} else {
|
|
48
|
-
for (key in val) {
|
|
49
|
-
if (!hasProp.call(val, key)) continue;
|
|
50
|
-
return false;
|
|
51
|
-
}
|
|
52
|
-
return true;
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
isPlainObject = function(val) {
|
|
57
|
-
var ctor, proto;
|
|
58
|
-
return isObject(val) && (proto = Object.getPrototypeOf(val)) && (ctor = proto.constructor) && (typeof ctor === 'function') && (ctor instanceof ctor) && (Function.prototype.toString.call(ctor) === Function.prototype.toString.call(Object));
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
getValue = function(obj) {
|
|
62
|
-
if (isFunction(obj.valueOf)) {
|
|
63
|
-
return obj.valueOf();
|
|
64
|
-
} else {
|
|
65
|
-
return obj;
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
module.exports.assign = assign;
|
|
70
|
-
|
|
71
|
-
module.exports.isFunction = isFunction;
|
|
72
|
-
|
|
73
|
-
module.exports.isObject = isObject;
|
|
74
|
-
|
|
75
|
-
module.exports.isArray = isArray;
|
|
76
|
-
|
|
77
|
-
module.exports.isEmpty = isEmpty;
|
|
78
|
-
|
|
79
|
-
module.exports.isPlainObject = isPlainObject;
|
|
80
|
-
|
|
81
|
-
module.exports.getValue = getValue;
|
|
82
|
-
|
|
83
|
-
}).call(this);
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
// Generated by CoffeeScript 1.12.7
|
|
2
|
-
(function() {
|
|
3
|
-
var NodeType, XMLAttribute, XMLNode;
|
|
4
|
-
|
|
5
|
-
NodeType = require('./NodeType');
|
|
6
|
-
|
|
7
|
-
XMLNode = require('./XMLNode');
|
|
8
|
-
|
|
9
|
-
module.exports = XMLAttribute = (function() {
|
|
10
|
-
function XMLAttribute(parent, name, value) {
|
|
11
|
-
this.parent = parent;
|
|
12
|
-
if (this.parent) {
|
|
13
|
-
this.options = this.parent.options;
|
|
14
|
-
this.stringify = this.parent.stringify;
|
|
15
|
-
}
|
|
16
|
-
if (name == null) {
|
|
17
|
-
throw new Error("Missing attribute name. " + this.debugInfo(name));
|
|
18
|
-
}
|
|
19
|
-
this.name = this.stringify.name(name);
|
|
20
|
-
this.value = this.stringify.attValue(value);
|
|
21
|
-
this.type = NodeType.Attribute;
|
|
22
|
-
this.isId = false;
|
|
23
|
-
this.schemaTypeInfo = null;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
Object.defineProperty(XMLAttribute.prototype, 'nodeType', {
|
|
27
|
-
get: function() {
|
|
28
|
-
return this.type;
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
Object.defineProperty(XMLAttribute.prototype, 'ownerElement', {
|
|
33
|
-
get: function() {
|
|
34
|
-
return this.parent;
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
Object.defineProperty(XMLAttribute.prototype, 'textContent', {
|
|
39
|
-
get: function() {
|
|
40
|
-
return this.value;
|
|
41
|
-
},
|
|
42
|
-
set: function(value) {
|
|
43
|
-
return this.value = value || '';
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
Object.defineProperty(XMLAttribute.prototype, 'namespaceURI', {
|
|
48
|
-
get: function() {
|
|
49
|
-
return '';
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
Object.defineProperty(XMLAttribute.prototype, 'prefix', {
|
|
54
|
-
get: function() {
|
|
55
|
-
return '';
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
Object.defineProperty(XMLAttribute.prototype, 'localName', {
|
|
60
|
-
get: function() {
|
|
61
|
-
return this.name;
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
|
|
65
|
-
Object.defineProperty(XMLAttribute.prototype, 'specified', {
|
|
66
|
-
get: function() {
|
|
67
|
-
return true;
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
XMLAttribute.prototype.clone = function() {
|
|
72
|
-
return Object.create(this);
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
XMLAttribute.prototype.toString = function(options) {
|
|
76
|
-
return this.options.writer.attribute(this, this.options.writer.filterOptions(options));
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
XMLAttribute.prototype.debugInfo = function(name) {
|
|
80
|
-
name = name || this.name;
|
|
81
|
-
if (name == null) {
|
|
82
|
-
return "parent: <" + this.parent.name + ">";
|
|
83
|
-
} else {
|
|
84
|
-
return "attribute: {" + name + "}, parent: <" + this.parent.name + ">";
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
XMLAttribute.prototype.isEqualNode = function(node) {
|
|
89
|
-
if (node.namespaceURI !== this.namespaceURI) {
|
|
90
|
-
return false;
|
|
91
|
-
}
|
|
92
|
-
if (node.prefix !== this.prefix) {
|
|
93
|
-
return false;
|
|
94
|
-
}
|
|
95
|
-
if (node.localName !== this.localName) {
|
|
96
|
-
return false;
|
|
97
|
-
}
|
|
98
|
-
if (node.value !== this.value) {
|
|
99
|
-
return false;
|
|
100
|
-
}
|
|
101
|
-
return true;
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
return XMLAttribute;
|
|
105
|
-
|
|
106
|
-
})();
|
|
107
|
-
|
|
108
|
-
}).call(this);
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
// Generated by CoffeeScript 1.12.7
|
|
2
|
-
(function() {
|
|
3
|
-
var NodeType, XMLCData, XMLCharacterData,
|
|
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 = XMLCData = (function(superClass) {
|
|
12
|
-
extend(XMLCData, superClass);
|
|
13
|
-
|
|
14
|
-
function XMLCData(parent, text) {
|
|
15
|
-
XMLCData.__super__.constructor.call(this, parent);
|
|
16
|
-
if (text == null) {
|
|
17
|
-
throw new Error("Missing CDATA text. " + this.debugInfo());
|
|
18
|
-
}
|
|
19
|
-
this.name = "#cdata-section";
|
|
20
|
-
this.type = NodeType.CData;
|
|
21
|
-
this.value = this.stringify.cdata(text);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
XMLCData.prototype.clone = function() {
|
|
25
|
-
return Object.create(this);
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
XMLCData.prototype.toString = function(options) {
|
|
29
|
-
return this.options.writer.cdata(this, this.options.writer.filterOptions(options));
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
return XMLCData;
|
|
33
|
-
|
|
34
|
-
})(XMLCharacterData);
|
|
35
|
-
|
|
36
|
-
}).call(this);
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
// Generated by CoffeeScript 1.12.7
|
|
2
|
-
(function() {
|
|
3
|
-
var XMLCharacterData, 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
|
-
module.exports = XMLCharacterData = (function(superClass) {
|
|
10
|
-
extend(XMLCharacterData, superClass);
|
|
11
|
-
|
|
12
|
-
function XMLCharacterData(parent) {
|
|
13
|
-
XMLCharacterData.__super__.constructor.call(this, parent);
|
|
14
|
-
this.value = '';
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
Object.defineProperty(XMLCharacterData.prototype, 'data', {
|
|
18
|
-
get: function() {
|
|
19
|
-
return this.value;
|
|
20
|
-
},
|
|
21
|
-
set: function(value) {
|
|
22
|
-
return this.value = value || '';
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
Object.defineProperty(XMLCharacterData.prototype, 'length', {
|
|
27
|
-
get: function() {
|
|
28
|
-
return this.value.length;
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
Object.defineProperty(XMLCharacterData.prototype, 'textContent', {
|
|
33
|
-
get: function() {
|
|
34
|
-
return this.value;
|
|
35
|
-
},
|
|
36
|
-
set: function(value) {
|
|
37
|
-
return this.value = value || '';
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
XMLCharacterData.prototype.clone = function() {
|
|
42
|
-
return Object.create(this);
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
XMLCharacterData.prototype.substringData = function(offset, count) {
|
|
46
|
-
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
XMLCharacterData.prototype.appendData = function(arg) {
|
|
50
|
-
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
XMLCharacterData.prototype.insertData = function(offset, arg) {
|
|
54
|
-
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
XMLCharacterData.prototype.deleteData = function(offset, count) {
|
|
58
|
-
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
XMLCharacterData.prototype.replaceData = function(offset, count, arg) {
|
|
62
|
-
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
XMLCharacterData.prototype.isEqualNode = function(node) {
|
|
66
|
-
if (!XMLCharacterData.__super__.isEqualNode.apply(this, arguments).isEqualNode(node)) {
|
|
67
|
-
return false;
|
|
68
|
-
}
|
|
69
|
-
if (node.data !== this.data) {
|
|
70
|
-
return false;
|
|
71
|
-
}
|
|
72
|
-
return true;
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
return XMLCharacterData;
|
|
76
|
-
|
|
77
|
-
})(XMLNode);
|
|
78
|
-
|
|
79
|
-
}).call(this);
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
// Generated by CoffeeScript 1.12.7
|
|
2
|
-
(function() {
|
|
3
|
-
var NodeType, XMLCharacterData, XMLComment,
|
|
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 = XMLComment = (function(superClass) {
|
|
12
|
-
extend(XMLComment, superClass);
|
|
13
|
-
|
|
14
|
-
function XMLComment(parent, text) {
|
|
15
|
-
XMLComment.__super__.constructor.call(this, parent);
|
|
16
|
-
if (text == null) {
|
|
17
|
-
throw new Error("Missing comment text. " + this.debugInfo());
|
|
18
|
-
}
|
|
19
|
-
this.name = "#comment";
|
|
20
|
-
this.type = NodeType.Comment;
|
|
21
|
-
this.value = this.stringify.comment(text);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
XMLComment.prototype.clone = function() {
|
|
25
|
-
return Object.create(this);
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
XMLComment.prototype.toString = function(options) {
|
|
29
|
-
return this.options.writer.comment(this, this.options.writer.filterOptions(options));
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
return XMLComment;
|
|
33
|
-
|
|
34
|
-
})(XMLCharacterData);
|
|
35
|
-
|
|
36
|
-
}).call(this);
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
// Generated by CoffeeScript 1.12.7
|
|
2
|
-
(function() {
|
|
3
|
-
var XMLDOMConfiguration, XMLDOMErrorHandler, XMLDOMStringList;
|
|
4
|
-
|
|
5
|
-
XMLDOMErrorHandler = require('./XMLDOMErrorHandler');
|
|
6
|
-
|
|
7
|
-
XMLDOMStringList = require('./XMLDOMStringList');
|
|
8
|
-
|
|
9
|
-
module.exports = XMLDOMConfiguration = (function() {
|
|
10
|
-
function XMLDOMConfiguration() {
|
|
11
|
-
var clonedSelf;
|
|
12
|
-
this.defaultParams = {
|
|
13
|
-
"canonical-form": false,
|
|
14
|
-
"cdata-sections": false,
|
|
15
|
-
"comments": false,
|
|
16
|
-
"datatype-normalization": false,
|
|
17
|
-
"element-content-whitespace": true,
|
|
18
|
-
"entities": true,
|
|
19
|
-
"error-handler": new XMLDOMErrorHandler(),
|
|
20
|
-
"infoset": true,
|
|
21
|
-
"validate-if-schema": false,
|
|
22
|
-
"namespaces": true,
|
|
23
|
-
"namespace-declarations": true,
|
|
24
|
-
"normalize-characters": false,
|
|
25
|
-
"schema-location": '',
|
|
26
|
-
"schema-type": '',
|
|
27
|
-
"split-cdata-sections": true,
|
|
28
|
-
"validate": false,
|
|
29
|
-
"well-formed": true
|
|
30
|
-
};
|
|
31
|
-
this.params = clonedSelf = Object.create(this.defaultParams);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
Object.defineProperty(XMLDOMConfiguration.prototype, 'parameterNames', {
|
|
35
|
-
get: function() {
|
|
36
|
-
return new XMLDOMStringList(Object.keys(this.defaultParams));
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
XMLDOMConfiguration.prototype.getParameter = function(name) {
|
|
41
|
-
if (this.params.hasOwnProperty(name)) {
|
|
42
|
-
return this.params[name];
|
|
43
|
-
} else {
|
|
44
|
-
return null;
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
XMLDOMConfiguration.prototype.canSetParameter = function(name, value) {
|
|
49
|
-
return true;
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
XMLDOMConfiguration.prototype.setParameter = function(name, value) {
|
|
53
|
-
if (value != null) {
|
|
54
|
-
return this.params[name] = value;
|
|
55
|
-
} else {
|
|
56
|
-
return delete this.params[name];
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
return XMLDOMConfiguration;
|
|
61
|
-
|
|
62
|
-
})();
|
|
63
|
-
|
|
64
|
-
}).call(this);
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// Generated by CoffeeScript 1.12.7
|
|
2
|
-
(function() {
|
|
3
|
-
var XMLDOMErrorHandler;
|
|
4
|
-
|
|
5
|
-
module.exports = XMLDOMErrorHandler = (function() {
|
|
6
|
-
function XMLDOMErrorHandler() {}
|
|
7
|
-
|
|
8
|
-
XMLDOMErrorHandler.prototype.handleError = function(error) {
|
|
9
|
-
throw new Error(error);
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
return XMLDOMErrorHandler;
|
|
13
|
-
|
|
14
|
-
})();
|
|
15
|
-
|
|
16
|
-
}).call(this);
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
// Generated by CoffeeScript 1.12.7
|
|
2
|
-
(function() {
|
|
3
|
-
var XMLDOMImplementation;
|
|
4
|
-
|
|
5
|
-
module.exports = XMLDOMImplementation = (function() {
|
|
6
|
-
function XMLDOMImplementation() {}
|
|
7
|
-
|
|
8
|
-
XMLDOMImplementation.prototype.hasFeature = function(feature, version) {
|
|
9
|
-
return true;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
XMLDOMImplementation.prototype.createDocumentType = function(qualifiedName, publicId, systemId) {
|
|
13
|
-
throw new Error("This DOM method is not implemented.");
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
XMLDOMImplementation.prototype.createDocument = function(namespaceURI, qualifiedName, doctype) {
|
|
17
|
-
throw new Error("This DOM method is not implemented.");
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
XMLDOMImplementation.prototype.createHTMLDocument = function(title) {
|
|
21
|
-
throw new Error("This DOM method is not implemented.");
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
XMLDOMImplementation.prototype.getFeature = function(feature, version) {
|
|
25
|
-
throw new Error("This DOM method is not implemented.");
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
return XMLDOMImplementation;
|
|
29
|
-
|
|
30
|
-
})();
|
|
31
|
-
|
|
32
|
-
}).call(this);
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
// Generated by CoffeeScript 1.12.7
|
|
2
|
-
(function() {
|
|
3
|
-
var XMLDOMStringList;
|
|
4
|
-
|
|
5
|
-
module.exports = XMLDOMStringList = (function() {
|
|
6
|
-
function XMLDOMStringList(arr) {
|
|
7
|
-
this.arr = arr || [];
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
Object.defineProperty(XMLDOMStringList.prototype, 'length', {
|
|
11
|
-
get: function() {
|
|
12
|
-
return this.arr.length;
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
XMLDOMStringList.prototype.item = function(index) {
|
|
17
|
-
return this.arr[index] || null;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
XMLDOMStringList.prototype.contains = function(str) {
|
|
21
|
-
return this.arr.indexOf(str) !== -1;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
return XMLDOMStringList;
|
|
25
|
-
|
|
26
|
-
})();
|
|
27
|
-
|
|
28
|
-
}).call(this);
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
// Generated by CoffeeScript 1.12.7
|
|
2
|
-
(function() {
|
|
3
|
-
var NodeType, XMLDTDAttList, 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 = XMLDTDAttList = (function(superClass) {
|
|
12
|
-
extend(XMLDTDAttList, superClass);
|
|
13
|
-
|
|
14
|
-
function XMLDTDAttList(parent, elementName, attributeName, attributeType, defaultValueType, defaultValue) {
|
|
15
|
-
XMLDTDAttList.__super__.constructor.call(this, parent);
|
|
16
|
-
if (elementName == null) {
|
|
17
|
-
throw new Error("Missing DTD element name. " + this.debugInfo());
|
|
18
|
-
}
|
|
19
|
-
if (attributeName == null) {
|
|
20
|
-
throw new Error("Missing DTD attribute name. " + this.debugInfo(elementName));
|
|
21
|
-
}
|
|
22
|
-
if (!attributeType) {
|
|
23
|
-
throw new Error("Missing DTD attribute type. " + this.debugInfo(elementName));
|
|
24
|
-
}
|
|
25
|
-
if (!defaultValueType) {
|
|
26
|
-
throw new Error("Missing DTD attribute default. " + this.debugInfo(elementName));
|
|
27
|
-
}
|
|
28
|
-
if (defaultValueType.indexOf('#') !== 0) {
|
|
29
|
-
defaultValueType = '#' + defaultValueType;
|
|
30
|
-
}
|
|
31
|
-
if (!defaultValueType.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/)) {
|
|
32
|
-
throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. " + this.debugInfo(elementName));
|
|
33
|
-
}
|
|
34
|
-
if (defaultValue && !defaultValueType.match(/^(#FIXED|#DEFAULT)$/)) {
|
|
35
|
-
throw new Error("Default value only applies to #FIXED or #DEFAULT. " + this.debugInfo(elementName));
|
|
36
|
-
}
|
|
37
|
-
this.elementName = this.stringify.name(elementName);
|
|
38
|
-
this.type = NodeType.AttributeDeclaration;
|
|
39
|
-
this.attributeName = this.stringify.name(attributeName);
|
|
40
|
-
this.attributeType = this.stringify.dtdAttType(attributeType);
|
|
41
|
-
if (defaultValue) {
|
|
42
|
-
this.defaultValue = this.stringify.dtdAttDefault(defaultValue);
|
|
43
|
-
}
|
|
44
|
-
this.defaultValueType = defaultValueType;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
XMLDTDAttList.prototype.toString = function(options) {
|
|
48
|
-
return this.options.writer.dtdAttList(this, this.options.writer.filterOptions(options));
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
return XMLDTDAttList;
|
|
52
|
-
|
|
53
|
-
})(XMLNode);
|
|
54
|
-
|
|
55
|
-
}).call(this);
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
// Generated by CoffeeScript 1.12.7
|
|
2
|
-
(function() {
|
|
3
|
-
var NodeType, XMLDTDElement, 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 = XMLDTDElement = (function(superClass) {
|
|
12
|
-
extend(XMLDTDElement, superClass);
|
|
13
|
-
|
|
14
|
-
function XMLDTDElement(parent, name, value) {
|
|
15
|
-
XMLDTDElement.__super__.constructor.call(this, parent);
|
|
16
|
-
if (name == null) {
|
|
17
|
-
throw new Error("Missing DTD element name. " + this.debugInfo());
|
|
18
|
-
}
|
|
19
|
-
if (!value) {
|
|
20
|
-
value = '(#PCDATA)';
|
|
21
|
-
}
|
|
22
|
-
if (Array.isArray(value)) {
|
|
23
|
-
value = '(' + value.join(',') + ')';
|
|
24
|
-
}
|
|
25
|
-
this.name = this.stringify.name(name);
|
|
26
|
-
this.type = NodeType.ElementDeclaration;
|
|
27
|
-
this.value = this.stringify.dtdElementValue(value);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
XMLDTDElement.prototype.toString = function(options) {
|
|
31
|
-
return this.options.writer.dtdElement(this, this.options.writer.filterOptions(options));
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
return XMLDTDElement;
|
|
35
|
-
|
|
36
|
-
})(XMLNode);
|
|
37
|
-
|
|
38
|
-
}).call(this);
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
// Generated by CoffeeScript 1.12.7
|
|
2
|
-
(function() {
|
|
3
|
-
var NodeType, XMLDTDEntity, XMLNode, isObject,
|
|
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
|
-
isObject = require('./Utility').isObject;
|
|
8
|
-
|
|
9
|
-
XMLNode = require('./XMLNode');
|
|
10
|
-
|
|
11
|
-
NodeType = require('./NodeType');
|
|
12
|
-
|
|
13
|
-
module.exports = XMLDTDEntity = (function(superClass) {
|
|
14
|
-
extend(XMLDTDEntity, superClass);
|
|
15
|
-
|
|
16
|
-
function XMLDTDEntity(parent, pe, name, value) {
|
|
17
|
-
XMLDTDEntity.__super__.constructor.call(this, parent);
|
|
18
|
-
if (name == null) {
|
|
19
|
-
throw new Error("Missing DTD entity name. " + this.debugInfo(name));
|
|
20
|
-
}
|
|
21
|
-
if (value == null) {
|
|
22
|
-
throw new Error("Missing DTD entity value. " + this.debugInfo(name));
|
|
23
|
-
}
|
|
24
|
-
this.pe = !!pe;
|
|
25
|
-
this.name = this.stringify.name(name);
|
|
26
|
-
this.type = NodeType.EntityDeclaration;
|
|
27
|
-
if (!isObject(value)) {
|
|
28
|
-
this.value = this.stringify.dtdEntityValue(value);
|
|
29
|
-
this.internal = true;
|
|
30
|
-
} else {
|
|
31
|
-
if (!value.pubID && !value.sysID) {
|
|
32
|
-
throw new Error("Public and/or system identifiers are required for an external entity. " + this.debugInfo(name));
|
|
33
|
-
}
|
|
34
|
-
if (value.pubID && !value.sysID) {
|
|
35
|
-
throw new Error("System identifier is required for a public external entity. " + this.debugInfo(name));
|
|
36
|
-
}
|
|
37
|
-
this.internal = false;
|
|
38
|
-
if (value.pubID != null) {
|
|
39
|
-
this.pubID = this.stringify.dtdPubID(value.pubID);
|
|
40
|
-
}
|
|
41
|
-
if (value.sysID != null) {
|
|
42
|
-
this.sysID = this.stringify.dtdSysID(value.sysID);
|
|
43
|
-
}
|
|
44
|
-
if (value.nData != null) {
|
|
45
|
-
this.nData = this.stringify.dtdNData(value.nData);
|
|
46
|
-
}
|
|
47
|
-
if (this.pe && this.nData) {
|
|
48
|
-
throw new Error("Notation declaration is not allowed in a parameter entity. " + this.debugInfo(name));
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
Object.defineProperty(XMLDTDEntity.prototype, 'publicId', {
|
|
54
|
-
get: function() {
|
|
55
|
-
return this.pubID;
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
Object.defineProperty(XMLDTDEntity.prototype, 'systemId', {
|
|
60
|
-
get: function() {
|
|
61
|
-
return this.sysID;
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
|
|
65
|
-
Object.defineProperty(XMLDTDEntity.prototype, 'notationName', {
|
|
66
|
-
get: function() {
|
|
67
|
-
return this.nData || null;
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
Object.defineProperty(XMLDTDEntity.prototype, 'inputEncoding', {
|
|
72
|
-
get: function() {
|
|
73
|
-
return null;
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
|
|
77
|
-
Object.defineProperty(XMLDTDEntity.prototype, 'xmlEncoding', {
|
|
78
|
-
get: function() {
|
|
79
|
-
return null;
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
|
|
83
|
-
Object.defineProperty(XMLDTDEntity.prototype, 'xmlVersion', {
|
|
84
|
-
get: function() {
|
|
85
|
-
return null;
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
|
|
89
|
-
XMLDTDEntity.prototype.toString = function(options) {
|
|
90
|
-
return this.options.writer.dtdEntity(this, this.options.writer.filterOptions(options));
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
return XMLDTDEntity;
|
|
94
|
-
|
|
95
|
-
})(XMLNode);
|
|
96
|
-
|
|
97
|
-
}).call(this);
|