cdk-comprehend-s3olap 2.0.121 → 2.0.123
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/.jsii +4 -4
- package/lib/cdk-comprehend-s3olap.js +2 -2
- package/lib/comprehend-lambdas.js +2 -2
- package/lib/iam-roles.js +4 -4
- package/node_modules/@esbuild/linux-x64/bin/esbuild +0 -0
- package/node_modules/@esbuild/linux-x64/package.json +1 -1
- package/node_modules/aws-sdk/CHANGELOG.md +25 -1
- package/node_modules/aws-sdk/README.md +1 -1
- package/node_modules/aws-sdk/apis/connect-2017-08-08.min.json +196 -187
- package/node_modules/aws-sdk/apis/ecr-public-2020-10-30.min.json +8 -8
- package/node_modules/aws-sdk/apis/emr-serverless-2021-07-13.min.json +3 -0
- package/node_modules/aws-sdk/apis/eventbridge-2015-10-07.min.json +18 -6
- package/node_modules/aws-sdk/apis/iot-data-2015-05-28.min.json +3 -0
- package/node_modules/aws-sdk/apis/marketplace-catalog-2018-09-17.min.json +82 -15
- package/node_modules/aws-sdk/apis/mediaconvert-2017-08-29.min.json +56 -32
- package/node_modules/aws-sdk/apis/rekognition-2016-06-27.min.json +224 -138
- package/node_modules/aws-sdk/apis/wafv2-2019-07-29.min.json +55 -28
- package/node_modules/aws-sdk/clients/connect.d.ts +15 -4
- package/node_modules/aws-sdk/clients/ecrpublic.d.ts +2 -2
- package/node_modules/aws-sdk/clients/ecs.d.ts +24 -24
- package/node_modules/aws-sdk/clients/emrserverless.d.ts +7 -3
- package/node_modules/aws-sdk/clients/eventbridge.d.ts +3 -1
- package/node_modules/aws-sdk/clients/iotdata.d.ts +5 -0
- package/node_modules/aws-sdk/clients/marketplacecatalog.d.ts +67 -7
- package/node_modules/aws-sdk/clients/mediaconvert.d.ts +20 -1
- package/node_modules/aws-sdk/clients/omics.d.ts +2 -2
- package/node_modules/aws-sdk/clients/rekognition.d.ts +114 -16
- package/node_modules/aws-sdk/clients/wafv2.d.ts +89 -62
- package/node_modules/aws-sdk/dist/aws-sdk-core-react-native.js +1 -1
- package/node_modules/aws-sdk/dist/aws-sdk-react-native.js +2537 -880
- package/node_modules/aws-sdk/dist/aws-sdk.js +508 -343
- package/node_modules/aws-sdk/dist/aws-sdk.min.js +79 -79
- package/node_modules/aws-sdk/dist/xml2js.js +2579 -922
- package/node_modules/aws-sdk/lib/core.js +1 -1
- package/node_modules/aws-sdk/package.json +2 -2
- package/node_modules/esbuild/bin/esbuild +1 -1
- package/node_modules/esbuild/lib/main.js +8 -8
- package/node_modules/esbuild/package.json +23 -23
- package/node_modules/xml2js/README.md +108 -7
- package/node_modules/xml2js/lib/parser.js +35 -7
- package/node_modules/xml2js/lib/xml2js.js +2 -0
- package/node_modules/xml2js/node_modules/xmlbuilder/CHANGELOG.md +47 -0
- package/node_modules/xml2js/node_modules/xmlbuilder/LICENSE +21 -21
- package/node_modules/xml2js/node_modules/xmlbuilder/README.md +86 -85
- package/node_modules/xml2js/node_modules/xmlbuilder/appveyor.yml +20 -0
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/Derivation.js +10 -0
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/DocumentPosition.js +12 -0
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/NodeType.js +23 -0
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/OperationType.js +11 -0
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/Utility.js +11 -1
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/WriterState.js +10 -0
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLAttribute.js +86 -9
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLCData.js +10 -6
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLCharacterData.js +79 -0
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLComment.js +10 -6
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDOMConfiguration.js +64 -0
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDOMErrorHandler.js +16 -0
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDOMImplementation.js +32 -0
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDOMStringList.js +28 -0
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDTDAttList.js +16 -11
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDTDElement.js +7 -4
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDTDEntity.js +49 -8
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDTDNotation.js +20 -5
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDeclaration.js +5 -2
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDocType.js +84 -5
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDocument.js +199 -5
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDocumentCB.js +165 -39
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDocumentFragment.js +24 -0
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDummy.js +31 -0
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLElement.js +207 -20
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLNamedNodeMap.js +58 -0
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLNode.js +403 -50
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLNodeFilter.js +48 -0
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLNodeList.js +28 -0
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLProcessingInstruction.js +19 -5
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLRaw.js +6 -3
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLStreamWriter.js +94 -197
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLStringWriter.js +6 -305
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLStringifier.js +109 -32
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLText.js +43 -6
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLTypeInfo.js +21 -0
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLUserDataHandler.js +16 -0
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLWriterBase.js +397 -59
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/index.js +15 -3
- package/node_modules/xml2js/node_modules/xmlbuilder/package.json +5 -3
- package/node_modules/xml2js/node_modules/xmlbuilder/typings/index.d.ts +153 -0
- package/node_modules/xml2js/package.json +11 -5
- package/package.json +4 -4
- package/node_modules/xml2js/node_modules/xmlbuilder/.npmignore +0 -5
@@ -0,0 +1,31 @@
|
|
1
|
+
// Generated by CoffeeScript 1.12.7
|
2
|
+
(function() {
|
3
|
+
var NodeType, XMLDummy, 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 = XMLDummy = (function(superClass) {
|
12
|
+
extend(XMLDummy, superClass);
|
13
|
+
|
14
|
+
function XMLDummy(parent) {
|
15
|
+
XMLDummy.__super__.constructor.call(this, parent);
|
16
|
+
this.type = NodeType.Dummy;
|
17
|
+
}
|
18
|
+
|
19
|
+
XMLDummy.prototype.clone = function() {
|
20
|
+
return Object.create(this);
|
21
|
+
};
|
22
|
+
|
23
|
+
XMLDummy.prototype.toString = function(options) {
|
24
|
+
return '';
|
25
|
+
};
|
26
|
+
|
27
|
+
return XMLDummy;
|
28
|
+
|
29
|
+
})(XMLNode);
|
30
|
+
|
31
|
+
}).call(this);
|
@@ -1,47 +1,115 @@
|
|
1
1
|
// Generated by CoffeeScript 1.12.7
|
2
2
|
(function() {
|
3
|
-
var XMLAttribute, XMLElement, XMLNode, isFunction, isObject, ref,
|
3
|
+
var NodeType, XMLAttribute, XMLElement, XMLNamedNodeMap, XMLNode, getValue, isFunction, isObject, ref,
|
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
|
-
ref = require('./Utility'), isObject = ref.isObject, isFunction = ref.isFunction;
|
7
|
+
ref = require('./Utility'), isObject = ref.isObject, isFunction = ref.isFunction, getValue = ref.getValue;
|
8
8
|
|
9
9
|
XMLNode = require('./XMLNode');
|
10
10
|
|
11
|
+
NodeType = require('./NodeType');
|
12
|
+
|
11
13
|
XMLAttribute = require('./XMLAttribute');
|
12
14
|
|
15
|
+
XMLNamedNodeMap = require('./XMLNamedNodeMap');
|
16
|
+
|
13
17
|
module.exports = XMLElement = (function(superClass) {
|
14
18
|
extend(XMLElement, superClass);
|
15
19
|
|
16
20
|
function XMLElement(parent, name, attributes) {
|
21
|
+
var child, j, len, ref1;
|
17
22
|
XMLElement.__super__.constructor.call(this, parent);
|
18
23
|
if (name == null) {
|
19
|
-
throw new Error("Missing element name");
|
24
|
+
throw new Error("Missing element name. " + this.debugInfo());
|
20
25
|
}
|
21
|
-
this.name = this.stringify.
|
22
|
-
this.
|
26
|
+
this.name = this.stringify.name(name);
|
27
|
+
this.type = NodeType.Element;
|
28
|
+
this.attribs = {};
|
29
|
+
this.schemaTypeInfo = null;
|
23
30
|
if (attributes != null) {
|
24
31
|
this.attribute(attributes);
|
25
32
|
}
|
26
|
-
if (parent.
|
33
|
+
if (parent.type === NodeType.Document) {
|
27
34
|
this.isRoot = true;
|
28
35
|
this.documentObject = parent;
|
29
36
|
parent.rootObject = this;
|
37
|
+
if (parent.children) {
|
38
|
+
ref1 = parent.children;
|
39
|
+
for (j = 0, len = ref1.length; j < len; j++) {
|
40
|
+
child = ref1[j];
|
41
|
+
if (child.type === NodeType.DocType) {
|
42
|
+
child.name = this.name;
|
43
|
+
break;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
30
47
|
}
|
31
48
|
}
|
32
49
|
|
50
|
+
Object.defineProperty(XMLElement.prototype, 'tagName', {
|
51
|
+
get: function() {
|
52
|
+
return this.name;
|
53
|
+
}
|
54
|
+
});
|
55
|
+
|
56
|
+
Object.defineProperty(XMLElement.prototype, 'namespaceURI', {
|
57
|
+
get: function() {
|
58
|
+
return '';
|
59
|
+
}
|
60
|
+
});
|
61
|
+
|
62
|
+
Object.defineProperty(XMLElement.prototype, 'prefix', {
|
63
|
+
get: function() {
|
64
|
+
return '';
|
65
|
+
}
|
66
|
+
});
|
67
|
+
|
68
|
+
Object.defineProperty(XMLElement.prototype, 'localName', {
|
69
|
+
get: function() {
|
70
|
+
return this.name;
|
71
|
+
}
|
72
|
+
});
|
73
|
+
|
74
|
+
Object.defineProperty(XMLElement.prototype, 'id', {
|
75
|
+
get: function() {
|
76
|
+
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
77
|
+
}
|
78
|
+
});
|
79
|
+
|
80
|
+
Object.defineProperty(XMLElement.prototype, 'className', {
|
81
|
+
get: function() {
|
82
|
+
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
83
|
+
}
|
84
|
+
});
|
85
|
+
|
86
|
+
Object.defineProperty(XMLElement.prototype, 'classList', {
|
87
|
+
get: function() {
|
88
|
+
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
89
|
+
}
|
90
|
+
});
|
91
|
+
|
92
|
+
Object.defineProperty(XMLElement.prototype, 'attributes', {
|
93
|
+
get: function() {
|
94
|
+
if (!this.attributeMap || !this.attributeMap.nodes) {
|
95
|
+
this.attributeMap = new XMLNamedNodeMap(this.attribs);
|
96
|
+
}
|
97
|
+
return this.attributeMap;
|
98
|
+
}
|
99
|
+
});
|
100
|
+
|
33
101
|
XMLElement.prototype.clone = function() {
|
34
102
|
var att, attName, clonedSelf, ref1;
|
35
103
|
clonedSelf = Object.create(this);
|
36
104
|
if (clonedSelf.isRoot) {
|
37
105
|
clonedSelf.documentObject = null;
|
38
106
|
}
|
39
|
-
clonedSelf.
|
40
|
-
ref1 = this.
|
107
|
+
clonedSelf.attribs = {};
|
108
|
+
ref1 = this.attribs;
|
41
109
|
for (attName in ref1) {
|
42
110
|
if (!hasProp.call(ref1, attName)) continue;
|
43
111
|
att = ref1[attName];
|
44
|
-
clonedSelf.
|
112
|
+
clonedSelf.attribs[attName] = att.clone();
|
45
113
|
}
|
46
114
|
clonedSelf.children = [];
|
47
115
|
this.children.forEach(function(child) {
|
@@ -56,7 +124,7 @@
|
|
56
124
|
XMLElement.prototype.attribute = function(name, value) {
|
57
125
|
var attName, attValue;
|
58
126
|
if (name != null) {
|
59
|
-
name = name
|
127
|
+
name = getValue(name);
|
60
128
|
}
|
61
129
|
if (isObject(name)) {
|
62
130
|
for (attName in name) {
|
@@ -68,32 +136,34 @@
|
|
68
136
|
if (isFunction(value)) {
|
69
137
|
value = value.apply();
|
70
138
|
}
|
71
|
-
if (
|
72
|
-
this.
|
139
|
+
if (this.options.keepNullAttributes && (value == null)) {
|
140
|
+
this.attribs[name] = new XMLAttribute(this, name, "");
|
141
|
+
} else if (value != null) {
|
142
|
+
this.attribs[name] = new XMLAttribute(this, name, value);
|
73
143
|
}
|
74
144
|
}
|
75
145
|
return this;
|
76
146
|
};
|
77
147
|
|
78
148
|
XMLElement.prototype.removeAttribute = function(name) {
|
79
|
-
var attName,
|
149
|
+
var attName, j, len;
|
80
150
|
if (name == null) {
|
81
|
-
throw new Error("Missing attribute name");
|
151
|
+
throw new Error("Missing attribute name. " + this.debugInfo());
|
82
152
|
}
|
83
|
-
name = name
|
153
|
+
name = getValue(name);
|
84
154
|
if (Array.isArray(name)) {
|
85
|
-
for (
|
86
|
-
attName = name[
|
87
|
-
delete this.
|
155
|
+
for (j = 0, len = name.length; j < len; j++) {
|
156
|
+
attName = name[j];
|
157
|
+
delete this.attribs[attName];
|
88
158
|
}
|
89
159
|
} else {
|
90
|
-
delete this.
|
160
|
+
delete this.attribs[name];
|
91
161
|
}
|
92
162
|
return this;
|
93
163
|
};
|
94
164
|
|
95
165
|
XMLElement.prototype.toString = function(options) {
|
96
|
-
return this.options.writer.
|
166
|
+
return this.options.writer.element(this, this.options.writer.filterOptions(options));
|
97
167
|
};
|
98
168
|
|
99
169
|
XMLElement.prototype.att = function(name, value) {
|
@@ -104,6 +174,123 @@
|
|
104
174
|
return this.attribute(name, value);
|
105
175
|
};
|
106
176
|
|
177
|
+
XMLElement.prototype.getAttribute = function(name) {
|
178
|
+
if (this.attribs.hasOwnProperty(name)) {
|
179
|
+
return this.attribs[name].value;
|
180
|
+
} else {
|
181
|
+
return null;
|
182
|
+
}
|
183
|
+
};
|
184
|
+
|
185
|
+
XMLElement.prototype.setAttribute = function(name, value) {
|
186
|
+
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
187
|
+
};
|
188
|
+
|
189
|
+
XMLElement.prototype.getAttributeNode = function(name) {
|
190
|
+
if (this.attribs.hasOwnProperty(name)) {
|
191
|
+
return this.attribs[name];
|
192
|
+
} else {
|
193
|
+
return null;
|
194
|
+
}
|
195
|
+
};
|
196
|
+
|
197
|
+
XMLElement.prototype.setAttributeNode = function(newAttr) {
|
198
|
+
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
199
|
+
};
|
200
|
+
|
201
|
+
XMLElement.prototype.removeAttributeNode = function(oldAttr) {
|
202
|
+
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
203
|
+
};
|
204
|
+
|
205
|
+
XMLElement.prototype.getElementsByTagName = function(name) {
|
206
|
+
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
207
|
+
};
|
208
|
+
|
209
|
+
XMLElement.prototype.getAttributeNS = function(namespaceURI, localName) {
|
210
|
+
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
211
|
+
};
|
212
|
+
|
213
|
+
XMLElement.prototype.setAttributeNS = function(namespaceURI, qualifiedName, value) {
|
214
|
+
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
215
|
+
};
|
216
|
+
|
217
|
+
XMLElement.prototype.removeAttributeNS = function(namespaceURI, localName) {
|
218
|
+
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
219
|
+
};
|
220
|
+
|
221
|
+
XMLElement.prototype.getAttributeNodeNS = function(namespaceURI, localName) {
|
222
|
+
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
223
|
+
};
|
224
|
+
|
225
|
+
XMLElement.prototype.setAttributeNodeNS = function(newAttr) {
|
226
|
+
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
227
|
+
};
|
228
|
+
|
229
|
+
XMLElement.prototype.getElementsByTagNameNS = function(namespaceURI, localName) {
|
230
|
+
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
231
|
+
};
|
232
|
+
|
233
|
+
XMLElement.prototype.hasAttribute = function(name) {
|
234
|
+
return this.attribs.hasOwnProperty(name);
|
235
|
+
};
|
236
|
+
|
237
|
+
XMLElement.prototype.hasAttributeNS = function(namespaceURI, localName) {
|
238
|
+
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
239
|
+
};
|
240
|
+
|
241
|
+
XMLElement.prototype.setIdAttribute = function(name, isId) {
|
242
|
+
if (this.attribs.hasOwnProperty(name)) {
|
243
|
+
return this.attribs[name].isId;
|
244
|
+
} else {
|
245
|
+
return isId;
|
246
|
+
}
|
247
|
+
};
|
248
|
+
|
249
|
+
XMLElement.prototype.setIdAttributeNS = function(namespaceURI, localName, isId) {
|
250
|
+
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
251
|
+
};
|
252
|
+
|
253
|
+
XMLElement.prototype.setIdAttributeNode = function(idAttr, isId) {
|
254
|
+
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
255
|
+
};
|
256
|
+
|
257
|
+
XMLElement.prototype.getElementsByTagName = function(tagname) {
|
258
|
+
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
259
|
+
};
|
260
|
+
|
261
|
+
XMLElement.prototype.getElementsByTagNameNS = function(namespaceURI, localName) {
|
262
|
+
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
263
|
+
};
|
264
|
+
|
265
|
+
XMLElement.prototype.getElementsByClassName = function(classNames) {
|
266
|
+
throw new Error("This DOM method is not implemented." + this.debugInfo());
|
267
|
+
};
|
268
|
+
|
269
|
+
XMLElement.prototype.isEqualNode = function(node) {
|
270
|
+
var i, j, ref1;
|
271
|
+
if (!XMLElement.__super__.isEqualNode.apply(this, arguments).isEqualNode(node)) {
|
272
|
+
return false;
|
273
|
+
}
|
274
|
+
if (node.namespaceURI !== this.namespaceURI) {
|
275
|
+
return false;
|
276
|
+
}
|
277
|
+
if (node.prefix !== this.prefix) {
|
278
|
+
return false;
|
279
|
+
}
|
280
|
+
if (node.localName !== this.localName) {
|
281
|
+
return false;
|
282
|
+
}
|
283
|
+
if (node.attribs.length !== this.attribs.length) {
|
284
|
+
return false;
|
285
|
+
}
|
286
|
+
for (i = j = 0, ref1 = this.attribs.length - 1; 0 <= ref1 ? j <= ref1 : j >= ref1; i = 0 <= ref1 ? ++j : --j) {
|
287
|
+
if (!this.attribs[i].isEqualNode(node.attribs[i])) {
|
288
|
+
return false;
|
289
|
+
}
|
290
|
+
}
|
291
|
+
return true;
|
292
|
+
};
|
293
|
+
|
107
294
|
return XMLElement;
|
108
295
|
|
109
296
|
})(XMLNode);
|
@@ -0,0 +1,58 @@
|
|
1
|
+
// Generated by CoffeeScript 1.12.7
|
2
|
+
(function() {
|
3
|
+
var XMLNamedNodeMap;
|
4
|
+
|
5
|
+
module.exports = XMLNamedNodeMap = (function() {
|
6
|
+
function XMLNamedNodeMap(nodes) {
|
7
|
+
this.nodes = nodes;
|
8
|
+
}
|
9
|
+
|
10
|
+
Object.defineProperty(XMLNamedNodeMap.prototype, 'length', {
|
11
|
+
get: function() {
|
12
|
+
return Object.keys(this.nodes).length || 0;
|
13
|
+
}
|
14
|
+
});
|
15
|
+
|
16
|
+
XMLNamedNodeMap.prototype.clone = function() {
|
17
|
+
return this.nodes = null;
|
18
|
+
};
|
19
|
+
|
20
|
+
XMLNamedNodeMap.prototype.getNamedItem = function(name) {
|
21
|
+
return this.nodes[name];
|
22
|
+
};
|
23
|
+
|
24
|
+
XMLNamedNodeMap.prototype.setNamedItem = function(node) {
|
25
|
+
var oldNode;
|
26
|
+
oldNode = this.nodes[node.nodeName];
|
27
|
+
this.nodes[node.nodeName] = node;
|
28
|
+
return oldNode || null;
|
29
|
+
};
|
30
|
+
|
31
|
+
XMLNamedNodeMap.prototype.removeNamedItem = function(name) {
|
32
|
+
var oldNode;
|
33
|
+
oldNode = this.nodes[name];
|
34
|
+
delete this.nodes[name];
|
35
|
+
return oldNode || null;
|
36
|
+
};
|
37
|
+
|
38
|
+
XMLNamedNodeMap.prototype.item = function(index) {
|
39
|
+
return this.nodes[Object.keys(this.nodes)[index]] || null;
|
40
|
+
};
|
41
|
+
|
42
|
+
XMLNamedNodeMap.prototype.getNamedItemNS = function(namespaceURI, localName) {
|
43
|
+
throw new Error("This DOM method is not implemented.");
|
44
|
+
};
|
45
|
+
|
46
|
+
XMLNamedNodeMap.prototype.setNamedItemNS = function(node) {
|
47
|
+
throw new Error("This DOM method is not implemented.");
|
48
|
+
};
|
49
|
+
|
50
|
+
XMLNamedNodeMap.prototype.removeNamedItemNS = function(namespaceURI, localName) {
|
51
|
+
throw new Error("This DOM method is not implemented.");
|
52
|
+
};
|
53
|
+
|
54
|
+
return XMLNamedNodeMap;
|
55
|
+
|
56
|
+
})();
|
57
|
+
|
58
|
+
}).call(this);
|