cdk-comprehend-s3olap 2.0.121 → 2.0.122

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 (79) hide show
  1. package/.jsii +4 -4
  2. package/lib/cdk-comprehend-s3olap.js +2 -2
  3. package/lib/comprehend-lambdas.js +2 -2
  4. package/lib/iam-roles.js +4 -4
  5. package/node_modules/@esbuild/linux-x64/bin/esbuild +0 -0
  6. package/node_modules/@esbuild/linux-x64/package.json +1 -1
  7. package/node_modules/aws-sdk/CHANGELOG.md +9 -1
  8. package/node_modules/aws-sdk/README.md +1 -1
  9. package/node_modules/aws-sdk/apis/connect-2017-08-08.min.json +196 -187
  10. package/node_modules/aws-sdk/apis/marketplace-catalog-2018-09-17.min.json +82 -15
  11. package/node_modules/aws-sdk/apis/mediaconvert-2017-08-29.min.json +56 -32
  12. package/node_modules/aws-sdk/apis/rekognition-2016-06-27.min.json +224 -138
  13. package/node_modules/aws-sdk/clients/connect.d.ts +15 -4
  14. package/node_modules/aws-sdk/clients/ecs.d.ts +24 -24
  15. package/node_modules/aws-sdk/clients/marketplacecatalog.d.ts +67 -7
  16. package/node_modules/aws-sdk/clients/mediaconvert.d.ts +20 -1
  17. package/node_modules/aws-sdk/clients/omics.d.ts +2 -2
  18. package/node_modules/aws-sdk/clients/rekognition.d.ts +114 -16
  19. package/node_modules/aws-sdk/dist/aws-sdk-core-react-native.js +1 -1
  20. package/node_modules/aws-sdk/dist/aws-sdk-react-native.js +2532 -875
  21. package/node_modules/aws-sdk/dist/aws-sdk.js +505 -343
  22. package/node_modules/aws-sdk/dist/aws-sdk.min.js +79 -79
  23. package/node_modules/aws-sdk/dist/xml2js.js +2579 -922
  24. package/node_modules/aws-sdk/lib/core.js +1 -1
  25. package/node_modules/aws-sdk/package.json +2 -2
  26. package/node_modules/esbuild/bin/esbuild +1 -1
  27. package/node_modules/esbuild/lib/main.js +8 -8
  28. package/node_modules/esbuild/package.json +23 -23
  29. package/node_modules/xml2js/README.md +108 -7
  30. package/node_modules/xml2js/lib/parser.js +35 -7
  31. package/node_modules/xml2js/lib/xml2js.js +2 -0
  32. package/node_modules/xml2js/node_modules/xmlbuilder/CHANGELOG.md +47 -0
  33. package/node_modules/xml2js/node_modules/xmlbuilder/LICENSE +21 -21
  34. package/node_modules/xml2js/node_modules/xmlbuilder/README.md +86 -85
  35. package/node_modules/xml2js/node_modules/xmlbuilder/appveyor.yml +20 -0
  36. package/node_modules/xml2js/node_modules/xmlbuilder/lib/Derivation.js +10 -0
  37. package/node_modules/xml2js/node_modules/xmlbuilder/lib/DocumentPosition.js +12 -0
  38. package/node_modules/xml2js/node_modules/xmlbuilder/lib/NodeType.js +23 -0
  39. package/node_modules/xml2js/node_modules/xmlbuilder/lib/OperationType.js +11 -0
  40. package/node_modules/xml2js/node_modules/xmlbuilder/lib/Utility.js +11 -1
  41. package/node_modules/xml2js/node_modules/xmlbuilder/lib/WriterState.js +10 -0
  42. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLAttribute.js +86 -9
  43. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLCData.js +10 -6
  44. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLCharacterData.js +79 -0
  45. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLComment.js +10 -6
  46. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDOMConfiguration.js +64 -0
  47. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDOMErrorHandler.js +16 -0
  48. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDOMImplementation.js +32 -0
  49. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDOMStringList.js +28 -0
  50. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDTDAttList.js +16 -11
  51. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDTDElement.js +7 -4
  52. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDTDEntity.js +49 -8
  53. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDTDNotation.js +20 -5
  54. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDeclaration.js +5 -2
  55. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDocType.js +84 -5
  56. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDocument.js +199 -5
  57. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDocumentCB.js +165 -39
  58. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDocumentFragment.js +24 -0
  59. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDummy.js +31 -0
  60. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLElement.js +207 -20
  61. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLNamedNodeMap.js +58 -0
  62. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLNode.js +403 -50
  63. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLNodeFilter.js +48 -0
  64. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLNodeList.js +28 -0
  65. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLProcessingInstruction.js +19 -5
  66. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLRaw.js +6 -3
  67. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLStreamWriter.js +94 -197
  68. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLStringWriter.js +6 -305
  69. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLStringifier.js +109 -32
  70. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLText.js +43 -6
  71. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLTypeInfo.js +21 -0
  72. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLUserDataHandler.js +16 -0
  73. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLWriterBase.js +397 -59
  74. package/node_modules/xml2js/node_modules/xmlbuilder/lib/index.js +15 -3
  75. package/node_modules/xml2js/node_modules/xmlbuilder/package.json +5 -3
  76. package/node_modules/xml2js/node_modules/xmlbuilder/typings/index.d.ts +153 -0
  77. package/node_modules/xml2js/package.json +11 -5
  78. package/package.json +4 -4
  79. package/node_modules/xml2js/node_modules/xmlbuilder/.npmignore +0 -5
@@ -1,10 +1,12 @@
1
1
  // Generated by CoffeeScript 1.12.7
2
2
  (function() {
3
- var XMLNode, XMLProcessingInstruction,
3
+ var NodeType, XMLCharacterData, XMLProcessingInstruction,
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 = XMLProcessingInstruction = (function(superClass) {
10
12
  extend(XMLProcessingInstruction, superClass);
@@ -12,9 +14,11 @@
12
14
  function XMLProcessingInstruction(parent, target, value) {
13
15
  XMLProcessingInstruction.__super__.constructor.call(this, parent);
14
16
  if (target == null) {
15
- throw new Error("Missing instruction target");
17
+ throw new Error("Missing instruction target. " + this.debugInfo());
16
18
  }
19
+ this.type = NodeType.ProcessingInstruction;
17
20
  this.target = this.stringify.insTarget(target);
21
+ this.name = this.target;
18
22
  if (value) {
19
23
  this.value = this.stringify.insValue(value);
20
24
  }
@@ -25,11 +29,21 @@
25
29
  };
26
30
 
27
31
  XMLProcessingInstruction.prototype.toString = function(options) {
28
- return this.options.writer.set(options).processingInstruction(this);
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;
29
43
  };
30
44
 
31
45
  return XMLProcessingInstruction;
32
46
 
33
- })(XMLNode);
47
+ })(XMLCharacterData);
34
48
 
35
49
  }).call(this);
@@ -1,9 +1,11 @@
1
1
  // Generated by CoffeeScript 1.12.7
2
2
  (function() {
3
- var XMLNode, XMLRaw,
3
+ var NodeType, XMLNode, XMLRaw,
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
+ NodeType = require('./NodeType');
8
+
7
9
  XMLNode = require('./XMLNode');
8
10
 
9
11
  module.exports = XMLRaw = (function(superClass) {
@@ -12,8 +14,9 @@
12
14
  function XMLRaw(parent, text) {
13
15
  XMLRaw.__super__.constructor.call(this, parent);
14
16
  if (text == null) {
15
- throw new Error("Missing raw text");
17
+ throw new Error("Missing raw text. " + this.debugInfo());
16
18
  }
19
+ this.type = NodeType.Raw;
17
20
  this.value = this.stringify.raw(text);
18
21
  }
19
22
 
@@ -22,7 +25,7 @@
22
25
  };
23
26
 
24
27
  XMLRaw.prototype.toString = function(options) {
25
- return this.options.writer.set(options).raw(this);
28
+ return this.options.writer.raw(this, this.options.writer.filterOptions(options));
26
29
  };
27
30
 
28
31
  return XMLRaw;
@@ -1,104 +1,70 @@
1
1
  // Generated by CoffeeScript 1.12.7
2
2
  (function() {
3
- var XMLCData, XMLComment, XMLDTDAttList, XMLDTDElement, XMLDTDEntity, XMLDTDNotation, XMLDeclaration, XMLDocType, XMLElement, XMLProcessingInstruction, XMLRaw, XMLStreamWriter, XMLText, XMLWriterBase,
3
+ var NodeType, WriterState, XMLStreamWriter, XMLWriterBase,
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
- XMLDeclaration = require('./XMLDeclaration');
8
-
9
- XMLDocType = require('./XMLDocType');
10
-
11
- XMLCData = require('./XMLCData');
12
-
13
- XMLComment = require('./XMLComment');
14
-
15
- XMLElement = require('./XMLElement');
16
-
17
- XMLRaw = require('./XMLRaw');
18
-
19
- XMLText = require('./XMLText');
20
-
21
- XMLProcessingInstruction = require('./XMLProcessingInstruction');
22
-
23
- XMLDTDAttList = require('./XMLDTDAttList');
24
-
25
- XMLDTDElement = require('./XMLDTDElement');
26
-
27
- XMLDTDEntity = require('./XMLDTDEntity');
28
-
29
- XMLDTDNotation = require('./XMLDTDNotation');
7
+ NodeType = require('./NodeType');
30
8
 
31
9
  XMLWriterBase = require('./XMLWriterBase');
32
10
 
11
+ WriterState = require('./WriterState');
12
+
33
13
  module.exports = XMLStreamWriter = (function(superClass) {
34
14
  extend(XMLStreamWriter, superClass);
35
15
 
36
16
  function XMLStreamWriter(stream, options) {
37
- XMLStreamWriter.__super__.constructor.call(this, options);
38
17
  this.stream = stream;
18
+ XMLStreamWriter.__super__.constructor.call(this, options);
39
19
  }
40
20
 
41
- XMLStreamWriter.prototype.document = function(doc) {
42
- var child, i, j, len, len1, ref, ref1, results;
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;
43
31
  ref = doc.children;
44
- for (i = 0, len = ref.length; i < len; i++) {
32
+ for (i = j = 0, len = ref.length; j < len; i = ++j) {
45
33
  child = ref[i];
46
- child.isLastRootNode = false;
34
+ child.isLastRootNode = i === doc.children.length - 1;
47
35
  }
48
- doc.children[doc.children.length - 1].isLastRootNode = true;
36
+ options = this.filterOptions(options);
49
37
  ref1 = doc.children;
50
38
  results = [];
51
- for (j = 0, len1 = ref1.length; j < len1; j++) {
52
- child = ref1[j];
53
- switch (false) {
54
- case !(child instanceof XMLDeclaration):
55
- results.push(this.declaration(child));
56
- break;
57
- case !(child instanceof XMLDocType):
58
- results.push(this.docType(child));
59
- break;
60
- case !(child instanceof XMLComment):
61
- results.push(this.comment(child));
62
- break;
63
- case !(child instanceof XMLProcessingInstruction):
64
- results.push(this.processingInstruction(child));
65
- break;
66
- default:
67
- results.push(this.element(child));
68
- }
39
+ for (k = 0, len1 = ref1.length; k < len1; k++) {
40
+ child = ref1[k];
41
+ results.push(this.writeChildNode(child, options, 0));
69
42
  }
70
43
  return results;
71
44
  };
72
45
 
73
- XMLStreamWriter.prototype.attribute = function(att) {
74
- return this.stream.write(' ' + att.name + '="' + att.value + '"');
46
+ XMLStreamWriter.prototype.attribute = function(att, options, level) {
47
+ return this.stream.write(XMLStreamWriter.__super__.attribute.call(this, att, options, level));
75
48
  };
76
49
 
77
- XMLStreamWriter.prototype.cdata = function(node, level) {
78
- return this.stream.write(this.space(level) + '<![CDATA[' + node.text + ']]>' + this.endline(node));
50
+ XMLStreamWriter.prototype.cdata = function(node, options, level) {
51
+ return this.stream.write(XMLStreamWriter.__super__.cdata.call(this, node, options, level));
79
52
  };
80
53
 
81
- XMLStreamWriter.prototype.comment = function(node, level) {
82
- return this.stream.write(this.space(level) + '<!-- ' + node.text + ' -->' + this.endline(node));
54
+ XMLStreamWriter.prototype.comment = function(node, options, level) {
55
+ return this.stream.write(XMLStreamWriter.__super__.comment.call(this, node, options, level));
83
56
  };
84
57
 
85
- XMLStreamWriter.prototype.declaration = function(node, level) {
86
- this.stream.write(this.space(level));
87
- this.stream.write('<?xml version="' + node.version + '"');
88
- if (node.encoding != null) {
89
- this.stream.write(' encoding="' + node.encoding + '"');
90
- }
91
- if (node.standalone != null) {
92
- this.stream.write(' standalone="' + node.standalone + '"');
93
- }
94
- this.stream.write(this.spacebeforeslash + '?>');
95
- return this.stream.write(this.endline(node));
58
+ XMLStreamWriter.prototype.declaration = function(node, options, level) {
59
+ return this.stream.write(XMLStreamWriter.__super__.declaration.call(this, node, options, level));
96
60
  };
97
61
 
98
- XMLStreamWriter.prototype.docType = function(node, level) {
99
- var child, i, len, ref;
62
+ XMLStreamWriter.prototype.docType = function(node, options, level) {
63
+ var child, j, len, ref;
100
64
  level || (level = 0);
101
- this.stream.write(this.space(level));
65
+ this.openNode(node, options, level);
66
+ options.state = WriterState.OpenTag;
67
+ this.stream.write(this.indent(node, options, level));
102
68
  this.stream.write('<!DOCTYPE ' + node.root().name);
103
69
  if (node.pubID && node.sysID) {
104
70
  this.stream.write(' PUBLIC "' + node.pubID + '" "' + node.sysID + '"');
@@ -107,169 +73,100 @@
107
73
  }
108
74
  if (node.children.length > 0) {
109
75
  this.stream.write(' [');
110
- this.stream.write(this.endline(node));
76
+ this.stream.write(this.endline(node, options, level));
77
+ options.state = WriterState.InsideTag;
111
78
  ref = node.children;
112
- for (i = 0, len = ref.length; i < len; i++) {
113
- child = ref[i];
114
- switch (false) {
115
- case !(child instanceof XMLDTDAttList):
116
- this.dtdAttList(child, level + 1);
117
- break;
118
- case !(child instanceof XMLDTDElement):
119
- this.dtdElement(child, level + 1);
120
- break;
121
- case !(child instanceof XMLDTDEntity):
122
- this.dtdEntity(child, level + 1);
123
- break;
124
- case !(child instanceof XMLDTDNotation):
125
- this.dtdNotation(child, level + 1);
126
- break;
127
- case !(child instanceof XMLCData):
128
- this.cdata(child, level + 1);
129
- break;
130
- case !(child instanceof XMLComment):
131
- this.comment(child, level + 1);
132
- break;
133
- case !(child instanceof XMLProcessingInstruction):
134
- this.processingInstruction(child, level + 1);
135
- break;
136
- default:
137
- throw new Error("Unknown DTD node type: " + child.constructor.name);
138
- }
79
+ for (j = 0, len = ref.length; j < len; j++) {
80
+ child = ref[j];
81
+ this.writeChildNode(child, options, level + 1);
139
82
  }
83
+ options.state = WriterState.CloseTag;
140
84
  this.stream.write(']');
141
85
  }
142
- this.stream.write(this.spacebeforeslash + '>');
143
- return this.stream.write(this.endline(node));
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);
144
91
  };
145
92
 
146
- XMLStreamWriter.prototype.element = function(node, level) {
147
- var att, child, i, len, name, ref, ref1, space;
93
+ XMLStreamWriter.prototype.element = function(node, options, level) {
94
+ var att, child, childNodeCount, firstChildNode, j, len, name, prettySuppressed, ref, ref1;
148
95
  level || (level = 0);
149
- space = this.space(level);
150
- this.stream.write(space + '<' + node.name);
151
- ref = node.attributes;
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;
152
100
  for (name in ref) {
153
101
  if (!hasProp.call(ref, name)) continue;
154
102
  att = ref[name];
155
- this.attribute(att);
103
+ this.attribute(att, options, level);
156
104
  }
157
- if (node.children.length === 0 || node.children.every(function(e) {
158
- return e.value === '';
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 === '';
159
109
  })) {
160
- if (this.allowEmpty) {
161
- this.stream.write('></' + node.name + '>');
110
+ if (options.allowEmpty) {
111
+ this.stream.write('>');
112
+ options.state = WriterState.CloseTag;
113
+ this.stream.write('</' + node.name + '>');
162
114
  } else {
163
- this.stream.write(this.spacebeforeslash + '/>');
115
+ options.state = WriterState.CloseTag;
116
+ this.stream.write(options.spaceBeforeSlash + '/>');
164
117
  }
165
- } else if (this.pretty && node.children.length === 1 && (node.children[0].value != null)) {
118
+ } else if (options.pretty && childNodeCount === 1 && (firstChildNode.type === NodeType.Text || firstChildNode.type === NodeType.Raw) && (firstChildNode.value != null)) {
166
119
  this.stream.write('>');
167
- this.stream.write(node.children[0].value);
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;
168
127
  this.stream.write('</' + node.name + '>');
169
128
  } else {
170
- this.stream.write('>' + this.newline);
129
+ this.stream.write('>' + this.endline(node, options, level));
130
+ options.state = WriterState.InsideTag;
171
131
  ref1 = node.children;
172
- for (i = 0, len = ref1.length; i < len; i++) {
173
- child = ref1[i];
174
- switch (false) {
175
- case !(child instanceof XMLCData):
176
- this.cdata(child, level + 1);
177
- break;
178
- case !(child instanceof XMLComment):
179
- this.comment(child, level + 1);
180
- break;
181
- case !(child instanceof XMLElement):
182
- this.element(child, level + 1);
183
- break;
184
- case !(child instanceof XMLRaw):
185
- this.raw(child, level + 1);
186
- break;
187
- case !(child instanceof XMLText):
188
- this.text(child, level + 1);
189
- break;
190
- case !(child instanceof XMLProcessingInstruction):
191
- this.processingInstruction(child, level + 1);
192
- break;
193
- default:
194
- throw new Error("Unknown XML node type: " + child.constructor.name);
195
- }
132
+ for (j = 0, len = ref1.length; j < len; j++) {
133
+ child = ref1[j];
134
+ this.writeChildNode(child, options, level + 1);
196
135
  }
197
- this.stream.write(space + '</' + node.name + '>');
198
- }
199
- return this.stream.write(this.endline(node));
200
- };
201
-
202
- XMLStreamWriter.prototype.processingInstruction = function(node, level) {
203
- this.stream.write(this.space(level) + '<?' + node.target);
204
- if (node.value) {
205
- this.stream.write(' ' + node.value);
136
+ options.state = WriterState.CloseTag;
137
+ this.stream.write(this.indent(node, options, level) + '</' + node.name + '>');
206
138
  }
207
- return this.stream.write(this.spacebeforeslash + '?>' + this.endline(node));
139
+ this.stream.write(this.endline(node, options, level));
140
+ options.state = WriterState.None;
141
+ return this.closeNode(node, options, level);
208
142
  };
209
143
 
210
- XMLStreamWriter.prototype.raw = function(node, level) {
211
- return this.stream.write(this.space(level) + node.value + this.endline(node));
144
+ XMLStreamWriter.prototype.processingInstruction = function(node, options, level) {
145
+ return this.stream.write(XMLStreamWriter.__super__.processingInstruction.call(this, node, options, level));
212
146
  };
213
147
 
214
- XMLStreamWriter.prototype.text = function(node, level) {
215
- return this.stream.write(this.space(level) + node.value + this.endline(node));
148
+ XMLStreamWriter.prototype.raw = function(node, options, level) {
149
+ return this.stream.write(XMLStreamWriter.__super__.raw.call(this, node, options, level));
216
150
  };
217
151
 
218
- XMLStreamWriter.prototype.dtdAttList = function(node, level) {
219
- this.stream.write(this.space(level) + '<!ATTLIST ' + node.elementName + ' ' + node.attributeName + ' ' + node.attributeType);
220
- if (node.defaultValueType !== '#DEFAULT') {
221
- this.stream.write(' ' + node.defaultValueType);
222
- }
223
- if (node.defaultValue) {
224
- this.stream.write(' "' + node.defaultValue + '"');
225
- }
226
- return this.stream.write(this.spacebeforeslash + '>' + this.endline(node));
152
+ XMLStreamWriter.prototype.text = function(node, options, level) {
153
+ return this.stream.write(XMLStreamWriter.__super__.text.call(this, node, options, level));
227
154
  };
228
155
 
229
- XMLStreamWriter.prototype.dtdElement = function(node, level) {
230
- this.stream.write(this.space(level) + '<!ELEMENT ' + node.name + ' ' + node.value);
231
- return this.stream.write(this.spacebeforeslash + '>' + this.endline(node));
156
+ XMLStreamWriter.prototype.dtdAttList = function(node, options, level) {
157
+ return this.stream.write(XMLStreamWriter.__super__.dtdAttList.call(this, node, options, level));
232
158
  };
233
159
 
234
- XMLStreamWriter.prototype.dtdEntity = function(node, level) {
235
- this.stream.write(this.space(level) + '<!ENTITY');
236
- if (node.pe) {
237
- this.stream.write(' %');
238
- }
239
- this.stream.write(' ' + node.name);
240
- if (node.value) {
241
- this.stream.write(' "' + node.value + '"');
242
- } else {
243
- if (node.pubID && node.sysID) {
244
- this.stream.write(' PUBLIC "' + node.pubID + '" "' + node.sysID + '"');
245
- } else if (node.sysID) {
246
- this.stream.write(' SYSTEM "' + node.sysID + '"');
247
- }
248
- if (node.nData) {
249
- this.stream.write(' NDATA ' + node.nData);
250
- }
251
- }
252
- return this.stream.write(this.spacebeforeslash + '>' + this.endline(node));
160
+ XMLStreamWriter.prototype.dtdElement = function(node, options, level) {
161
+ return this.stream.write(XMLStreamWriter.__super__.dtdElement.call(this, node, options, level));
253
162
  };
254
163
 
255
- XMLStreamWriter.prototype.dtdNotation = function(node, level) {
256
- this.stream.write(this.space(level) + '<!NOTATION ' + node.name);
257
- if (node.pubID && node.sysID) {
258
- this.stream.write(' PUBLIC "' + node.pubID + '" "' + node.sysID + '"');
259
- } else if (node.pubID) {
260
- this.stream.write(' PUBLIC "' + node.pubID + '"');
261
- } else if (node.sysID) {
262
- this.stream.write(' SYSTEM "' + node.sysID + '"');
263
- }
264
- return this.stream.write(this.spacebeforeslash + '>' + this.endline(node));
164
+ XMLStreamWriter.prototype.dtdEntity = function(node, options, level) {
165
+ return this.stream.write(XMLStreamWriter.__super__.dtdEntity.call(this, node, options, level));
265
166
  };
266
167
 
267
- XMLStreamWriter.prototype.endline = function(node) {
268
- if (!node.isLastRootNode) {
269
- return this.newline;
270
- } else {
271
- return '';
272
- }
168
+ XMLStreamWriter.prototype.dtdNotation = function(node, options, level) {
169
+ return this.stream.write(XMLStreamWriter.__super__.dtdNotation.call(this, node, options, level));
273
170
  };
274
171
 
275
172
  return XMLStreamWriter;