cdk-docker-image-deployment 0.0.217 → 0.0.219

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 (74) hide show
  1. package/.jsii +3 -3
  2. package/lib/destination.js +1 -1
  3. package/lib/docker-image-deployment.js +1 -1
  4. package/lib/source.js +1 -1
  5. package/node_modules/aws-sdk/CHANGELOG.md +9 -1
  6. package/node_modules/aws-sdk/README.md +1 -1
  7. package/node_modules/aws-sdk/apis/connect-2017-08-08.min.json +196 -187
  8. package/node_modules/aws-sdk/apis/marketplace-catalog-2018-09-17.min.json +82 -15
  9. package/node_modules/aws-sdk/apis/mediaconvert-2017-08-29.min.json +56 -32
  10. package/node_modules/aws-sdk/apis/rekognition-2016-06-27.min.json +224 -138
  11. package/node_modules/aws-sdk/clients/connect.d.ts +15 -4
  12. package/node_modules/aws-sdk/clients/ecs.d.ts +24 -24
  13. package/node_modules/aws-sdk/clients/marketplacecatalog.d.ts +67 -7
  14. package/node_modules/aws-sdk/clients/mediaconvert.d.ts +20 -1
  15. package/node_modules/aws-sdk/clients/omics.d.ts +2 -2
  16. package/node_modules/aws-sdk/clients/rekognition.d.ts +114 -16
  17. package/node_modules/aws-sdk/dist/aws-sdk-core-react-native.js +1 -1
  18. package/node_modules/aws-sdk/dist/aws-sdk-react-native.js +2532 -875
  19. package/node_modules/aws-sdk/dist/aws-sdk.js +505 -343
  20. package/node_modules/aws-sdk/dist/aws-sdk.min.js +79 -79
  21. package/node_modules/aws-sdk/dist/xml2js.js +2579 -922
  22. package/node_modules/aws-sdk/lib/core.js +1 -1
  23. package/node_modules/aws-sdk/package.json +2 -2
  24. package/node_modules/xml2js/README.md +108 -7
  25. package/node_modules/xml2js/lib/parser.js +35 -7
  26. package/node_modules/xml2js/lib/xml2js.js +2 -0
  27. package/node_modules/xml2js/node_modules/xmlbuilder/CHANGELOG.md +47 -0
  28. package/node_modules/xml2js/node_modules/xmlbuilder/LICENSE +21 -21
  29. package/node_modules/xml2js/node_modules/xmlbuilder/README.md +86 -85
  30. package/node_modules/xml2js/node_modules/xmlbuilder/appveyor.yml +20 -0
  31. package/node_modules/xml2js/node_modules/xmlbuilder/lib/Derivation.js +10 -0
  32. package/node_modules/xml2js/node_modules/xmlbuilder/lib/DocumentPosition.js +12 -0
  33. package/node_modules/xml2js/node_modules/xmlbuilder/lib/NodeType.js +23 -0
  34. package/node_modules/xml2js/node_modules/xmlbuilder/lib/OperationType.js +11 -0
  35. package/node_modules/xml2js/node_modules/xmlbuilder/lib/Utility.js +11 -1
  36. package/node_modules/xml2js/node_modules/xmlbuilder/lib/WriterState.js +10 -0
  37. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLAttribute.js +86 -9
  38. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLCData.js +10 -6
  39. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLCharacterData.js +79 -0
  40. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLComment.js +10 -6
  41. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDOMConfiguration.js +64 -0
  42. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDOMErrorHandler.js +16 -0
  43. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDOMImplementation.js +32 -0
  44. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDOMStringList.js +28 -0
  45. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDTDAttList.js +16 -11
  46. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDTDElement.js +7 -4
  47. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDTDEntity.js +49 -8
  48. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDTDNotation.js +20 -5
  49. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDeclaration.js +5 -2
  50. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDocType.js +84 -5
  51. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDocument.js +199 -5
  52. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDocumentCB.js +165 -39
  53. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDocumentFragment.js +24 -0
  54. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDummy.js +31 -0
  55. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLElement.js +207 -20
  56. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLNamedNodeMap.js +58 -0
  57. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLNode.js +403 -50
  58. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLNodeFilter.js +48 -0
  59. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLNodeList.js +28 -0
  60. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLProcessingInstruction.js +19 -5
  61. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLRaw.js +6 -3
  62. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLStreamWriter.js +94 -197
  63. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLStringWriter.js +6 -305
  64. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLStringifier.js +109 -32
  65. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLText.js +43 -6
  66. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLTypeInfo.js +21 -0
  67. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLUserDataHandler.js +16 -0
  68. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLWriterBase.js +397 -59
  69. package/node_modules/xml2js/node_modules/xmlbuilder/lib/index.js +15 -3
  70. package/node_modules/xml2js/node_modules/xmlbuilder/package.json +5 -3
  71. package/node_modules/xml2js/node_modules/xmlbuilder/typings/index.d.ts +153 -0
  72. package/node_modules/xml2js/package.json +11 -5
  73. package/package.json +4 -4
  74. package/node_modules/xml2js/node_modules/xmlbuilder/.npmignore +0 -5
@@ -0,0 +1,11 @@
1
+ // Generated by CoffeeScript 1.12.7
2
+ (function() {
3
+ module.exports = {
4
+ Clones: 1,
5
+ Imported: 2,
6
+ Deleted: 3,
7
+ Renamed: 4,
8
+ Adopted: 5
9
+ };
10
+
11
+ }).call(this);
@@ -1,6 +1,6 @@
1
1
  // Generated by CoffeeScript 1.12.7
2
2
  (function() {
3
- var assign, isArray, isEmpty, isFunction, isObject, isPlainObject,
3
+ var assign, getValue, isArray, isEmpty, isFunction, isObject, isPlainObject,
4
4
  slice = [].slice,
5
5
  hasProp = {}.hasOwnProperty;
6
6
 
@@ -58,6 +58,14 @@
58
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
59
  };
60
60
 
61
+ getValue = function(obj) {
62
+ if (isFunction(obj.valueOf)) {
63
+ return obj.valueOf();
64
+ } else {
65
+ return obj;
66
+ }
67
+ };
68
+
61
69
  module.exports.assign = assign;
62
70
 
63
71
  module.exports.isFunction = isFunction;
@@ -70,4 +78,6 @@
70
78
 
71
79
  module.exports.isPlainObject = isPlainObject;
72
80
 
81
+ module.exports.getValue = getValue;
82
+
73
83
  }).call(this);
@@ -0,0 +1,10 @@
1
+ // Generated by CoffeeScript 1.12.7
2
+ (function() {
3
+ module.exports = {
4
+ None: 0,
5
+ OpenTag: 1,
6
+ InsideTag: 2,
7
+ CloseTag: 3
8
+ };
9
+
10
+ }).call(this);
@@ -1,27 +1,104 @@
1
1
  // Generated by CoffeeScript 1.12.7
2
2
  (function() {
3
- var XMLAttribute;
3
+ var NodeType, XMLAttribute, XMLNode;
4
+
5
+ NodeType = require('./NodeType');
6
+
7
+ XMLNode = require('./XMLNode');
4
8
 
5
9
  module.exports = XMLAttribute = (function() {
6
10
  function XMLAttribute(parent, name, value) {
7
- this.options = parent.options;
8
- this.stringify = parent.stringify;
9
- if (name == null) {
10
- throw new Error("Missing attribute name of element " + parent.name);
11
+ this.parent = parent;
12
+ if (this.parent) {
13
+ this.options = this.parent.options;
14
+ this.stringify = this.parent.stringify;
11
15
  }
12
- if (value == null) {
13
- throw new Error("Missing attribute value for attribute " + name + " of element " + parent.name);
16
+ if (name == null) {
17
+ throw new Error("Missing attribute name. " + this.debugInfo(name));
14
18
  }
15
- this.name = this.stringify.attName(name);
19
+ this.name = this.stringify.name(name);
16
20
  this.value = this.stringify.attValue(value);
21
+ this.type = NodeType.Attribute;
22
+ this.isId = false;
23
+ this.schemaTypeInfo = null;
17
24
  }
18
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
+
19
71
  XMLAttribute.prototype.clone = function() {
20
72
  return Object.create(this);
21
73
  };
22
74
 
23
75
  XMLAttribute.prototype.toString = function(options) {
24
- return this.options.writer.set(options).attribute(this);
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;
25
102
  };
26
103
 
27
104
  return XMLAttribute;
@@ -1,10 +1,12 @@
1
1
  // Generated by CoffeeScript 1.12.7
2
2
  (function() {
3
- var XMLCData, XMLNode,
3
+ var NodeType, XMLCData, XMLCharacterData,
4
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
5
  hasProp = {}.hasOwnProperty;
6
6
 
7
- XMLNode = require('./XMLNode');
7
+ NodeType = require('./NodeType');
8
+
9
+ XMLCharacterData = require('./XMLCharacterData');
8
10
 
9
11
  module.exports = XMLCData = (function(superClass) {
10
12
  extend(XMLCData, superClass);
@@ -12,9 +14,11 @@
12
14
  function XMLCData(parent, text) {
13
15
  XMLCData.__super__.constructor.call(this, parent);
14
16
  if (text == null) {
15
- throw new Error("Missing CDATA text");
17
+ throw new Error("Missing CDATA text. " + this.debugInfo());
16
18
  }
17
- this.text = this.stringify.cdata(text);
19
+ this.name = "#cdata-section";
20
+ this.type = NodeType.CData;
21
+ this.value = this.stringify.cdata(text);
18
22
  }
19
23
 
20
24
  XMLCData.prototype.clone = function() {
@@ -22,11 +26,11 @@
22
26
  };
23
27
 
24
28
  XMLCData.prototype.toString = function(options) {
25
- return this.options.writer.set(options).cdata(this);
29
+ return this.options.writer.cdata(this, this.options.writer.filterOptions(options));
26
30
  };
27
31
 
28
32
  return XMLCData;
29
33
 
30
- })(XMLNode);
34
+ })(XMLCharacterData);
31
35
 
32
36
  }).call(this);
@@ -0,0 +1,79 @@
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,10 +1,12 @@
1
1
  // Generated by CoffeeScript 1.12.7
2
2
  (function() {
3
- var XMLComment, XMLNode,
3
+ var NodeType, XMLCharacterData, XMLComment,
4
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
5
  hasProp = {}.hasOwnProperty;
6
6
 
7
- XMLNode = require('./XMLNode');
7
+ NodeType = require('./NodeType');
8
+
9
+ XMLCharacterData = require('./XMLCharacterData');
8
10
 
9
11
  module.exports = XMLComment = (function(superClass) {
10
12
  extend(XMLComment, superClass);
@@ -12,9 +14,11 @@
12
14
  function XMLComment(parent, text) {
13
15
  XMLComment.__super__.constructor.call(this, parent);
14
16
  if (text == null) {
15
- throw new Error("Missing comment text");
17
+ throw new Error("Missing comment text. " + this.debugInfo());
16
18
  }
17
- this.text = this.stringify.comment(text);
19
+ this.name = "#comment";
20
+ this.type = NodeType.Comment;
21
+ this.value = this.stringify.comment(text);
18
22
  }
19
23
 
20
24
  XMLComment.prototype.clone = function() {
@@ -22,11 +26,11 @@
22
26
  };
23
27
 
24
28
  XMLComment.prototype.toString = function(options) {
25
- return this.options.writer.set(options).comment(this);
29
+ return this.options.writer.comment(this, this.options.writer.filterOptions(options));
26
30
  };
27
31
 
28
32
  return XMLComment;
29
33
 
30
- })(XMLNode);
34
+ })(XMLCharacterData);
31
35
 
32
36
  }).call(this);
@@ -0,0 +1,64 @@
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);
@@ -0,0 +1,16 @@
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);
@@ -0,0 +1,32 @@
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);
@@ -0,0 +1,28 @@
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,46 +1,51 @@
1
1
  // Generated by CoffeeScript 1.12.7
2
2
  (function() {
3
- var XMLDTDAttList, XMLNode,
3
+ var NodeType, XMLDTDAttList, XMLNode,
4
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
5
  hasProp = {}.hasOwnProperty;
6
6
 
7
7
  XMLNode = require('./XMLNode');
8
8
 
9
+ NodeType = require('./NodeType');
10
+
9
11
  module.exports = XMLDTDAttList = (function(superClass) {
10
12
  extend(XMLDTDAttList, superClass);
11
13
 
12
14
  function XMLDTDAttList(parent, elementName, attributeName, attributeType, defaultValueType, defaultValue) {
13
15
  XMLDTDAttList.__super__.constructor.call(this, parent);
14
16
  if (elementName == null) {
15
- throw new Error("Missing DTD element name");
17
+ throw new Error("Missing DTD element name. " + this.debugInfo());
16
18
  }
17
19
  if (attributeName == null) {
18
- throw new Error("Missing DTD attribute name");
20
+ throw new Error("Missing DTD attribute name. " + this.debugInfo(elementName));
19
21
  }
20
22
  if (!attributeType) {
21
- throw new Error("Missing DTD attribute type");
23
+ throw new Error("Missing DTD attribute type. " + this.debugInfo(elementName));
22
24
  }
23
25
  if (!defaultValueType) {
24
- throw new Error("Missing DTD attribute default");
26
+ throw new Error("Missing DTD attribute default. " + this.debugInfo(elementName));
25
27
  }
26
28
  if (defaultValueType.indexOf('#') !== 0) {
27
29
  defaultValueType = '#' + defaultValueType;
28
30
  }
29
31
  if (!defaultValueType.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/)) {
30
- throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT");
32
+ throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. " + this.debugInfo(elementName));
31
33
  }
32
34
  if (defaultValue && !defaultValueType.match(/^(#FIXED|#DEFAULT)$/)) {
33
- throw new Error("Default value only applies to #FIXED or #DEFAULT");
35
+ throw new Error("Default value only applies to #FIXED or #DEFAULT. " + this.debugInfo(elementName));
34
36
  }
35
- this.elementName = this.stringify.eleName(elementName);
36
- this.attributeName = this.stringify.attName(attributeName);
37
+ this.elementName = this.stringify.name(elementName);
38
+ this.type = NodeType.AttributeDeclaration;
39
+ this.attributeName = this.stringify.name(attributeName);
37
40
  this.attributeType = this.stringify.dtdAttType(attributeType);
38
- this.defaultValue = this.stringify.dtdAttDefault(defaultValue);
41
+ if (defaultValue) {
42
+ this.defaultValue = this.stringify.dtdAttDefault(defaultValue);
43
+ }
39
44
  this.defaultValueType = defaultValueType;
40
45
  }
41
46
 
42
47
  XMLDTDAttList.prototype.toString = function(options) {
43
- return this.options.writer.set(options).dtdAttList(this);
48
+ return this.options.writer.dtdAttList(this, this.options.writer.filterOptions(options));
44
49
  };
45
50
 
46
51
  return XMLDTDAttList;
@@ -1,18 +1,20 @@
1
1
  // Generated by CoffeeScript 1.12.7
2
2
  (function() {
3
- var XMLDTDElement, XMLNode,
3
+ var NodeType, XMLDTDElement, XMLNode,
4
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
5
  hasProp = {}.hasOwnProperty;
6
6
 
7
7
  XMLNode = require('./XMLNode');
8
8
 
9
+ NodeType = require('./NodeType');
10
+
9
11
  module.exports = XMLDTDElement = (function(superClass) {
10
12
  extend(XMLDTDElement, superClass);
11
13
 
12
14
  function XMLDTDElement(parent, name, value) {
13
15
  XMLDTDElement.__super__.constructor.call(this, parent);
14
16
  if (name == null) {
15
- throw new Error("Missing DTD element name");
17
+ throw new Error("Missing DTD element name. " + this.debugInfo());
16
18
  }
17
19
  if (!value) {
18
20
  value = '(#PCDATA)';
@@ -20,12 +22,13 @@
20
22
  if (Array.isArray(value)) {
21
23
  value = '(' + value.join(',') + ')';
22
24
  }
23
- this.name = this.stringify.eleName(name);
25
+ this.name = this.stringify.name(name);
26
+ this.type = NodeType.ElementDeclaration;
24
27
  this.value = this.stringify.dtdElementValue(value);
25
28
  }
26
29
 
27
30
  XMLDTDElement.prototype.toString = function(options) {
28
- return this.options.writer.set(options).dtdElement(this);
31
+ return this.options.writer.dtdElement(this, this.options.writer.filterOptions(options));
29
32
  };
30
33
 
31
34
  return XMLDTDElement;
@@ -1,6 +1,6 @@
1
1
  // Generated by CoffeeScript 1.12.7
2
2
  (function() {
3
- var XMLDTDEntity, XMLNode, isObject,
3
+ var NodeType, XMLDTDEntity, XMLNode, isObject,
4
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
5
  hasProp = {}.hasOwnProperty;
6
6
 
@@ -8,28 +8,33 @@
8
8
 
9
9
  XMLNode = require('./XMLNode');
10
10
 
11
+ NodeType = require('./NodeType');
12
+
11
13
  module.exports = XMLDTDEntity = (function(superClass) {
12
14
  extend(XMLDTDEntity, superClass);
13
15
 
14
16
  function XMLDTDEntity(parent, pe, name, value) {
15
17
  XMLDTDEntity.__super__.constructor.call(this, parent);
16
18
  if (name == null) {
17
- throw new Error("Missing entity name");
19
+ throw new Error("Missing DTD entity name. " + this.debugInfo(name));
18
20
  }
19
21
  if (value == null) {
20
- throw new Error("Missing entity value");
22
+ throw new Error("Missing DTD entity value. " + this.debugInfo(name));
21
23
  }
22
24
  this.pe = !!pe;
23
- this.name = this.stringify.eleName(name);
25
+ this.name = this.stringify.name(name);
26
+ this.type = NodeType.EntityDeclaration;
24
27
  if (!isObject(value)) {
25
28
  this.value = this.stringify.dtdEntityValue(value);
29
+ this.internal = true;
26
30
  } else {
27
31
  if (!value.pubID && !value.sysID) {
28
- throw new Error("Public and/or system identifiers are required for an external entity");
32
+ throw new Error("Public and/or system identifiers are required for an external entity. " + this.debugInfo(name));
29
33
  }
30
34
  if (value.pubID && !value.sysID) {
31
- throw new Error("System identifier is required for a public external entity");
35
+ throw new Error("System identifier is required for a public external entity. " + this.debugInfo(name));
32
36
  }
37
+ this.internal = false;
33
38
  if (value.pubID != null) {
34
39
  this.pubID = this.stringify.dtdPubID(value.pubID);
35
40
  }
@@ -40,13 +45,49 @@
40
45
  this.nData = this.stringify.dtdNData(value.nData);
41
46
  }
42
47
  if (this.pe && this.nData) {
43
- throw new Error("Notation declaration is not allowed in a parameter entity");
48
+ throw new Error("Notation declaration is not allowed in a parameter entity. " + this.debugInfo(name));
44
49
  }
45
50
  }
46
51
  }
47
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
+
48
89
  XMLDTDEntity.prototype.toString = function(options) {
49
- return this.options.writer.set(options).dtdEntity(this);
90
+ return this.options.writer.dtdEntity(this, this.options.writer.filterOptions(options));
50
91
  };
51
92
 
52
93
  return XMLDTDEntity;