aws-sdk 2.1541.0 → 2.1542.0
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/README.md +1 -1
- package/apis/inspector2-2020-06-08.min.json +1129 -167
- package/apis/inspector2-2020-06-08.paginators.json +30 -0
- package/clients/inspector2.d.ts +1169 -28
- package/dist/aws-sdk-core-react-native.js +1 -1
- package/dist/aws-sdk-react-native.js +25 -15
- package/dist/aws-sdk.js +3 -3
- package/dist/aws-sdk.min.js +2 -2
- package/dist/xml2js.js +22 -12
- package/lib/core.js +1 -1
- package/package.json +2 -2
package/dist/xml2js.js
CHANGED
@@ -4574,7 +4574,7 @@ module.exports =
|
|
4574
4574
|
// Generated by CoffeeScript 1.12.7
|
4575
4575
|
(function() {
|
4576
4576
|
"use strict";
|
4577
|
-
var bom, defaults, events, isEmpty, processItem, processors, sax, setImmediate,
|
4577
|
+
var bom, defaults, defineProperty, events, isEmpty, processItem, processors, sax, setImmediate,
|
4578
4578
|
bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
|
4579
4579
|
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; },
|
4580
4580
|
hasProp = {}.hasOwnProperty;
|
@@ -4604,6 +4604,16 @@ module.exports =
|
|
4604
4604
|
return item;
|
4605
4605
|
};
|
4606
4606
|
|
4607
|
+
defineProperty = function(obj, key, value) {
|
4608
|
+
var descriptor;
|
4609
|
+
descriptor = Object.create(null);
|
4610
|
+
descriptor.value = value;
|
4611
|
+
descriptor.writable = true;
|
4612
|
+
descriptor.enumerable = true;
|
4613
|
+
descriptor.configurable = true;
|
4614
|
+
return Object.defineProperty(obj, key, descriptor);
|
4615
|
+
};
|
4616
|
+
|
4607
4617
|
exports.Parser = (function(superClass) {
|
4608
4618
|
extend(Parser, superClass);
|
4609
4619
|
|
@@ -4667,13 +4677,13 @@ module.exports =
|
|
4667
4677
|
Parser.prototype.assignOrPush = function(obj, key, newValue) {
|
4668
4678
|
if (!(key in obj)) {
|
4669
4679
|
if (!this.options.explicitArray) {
|
4670
|
-
return obj
|
4680
|
+
return defineProperty(obj, key, newValue);
|
4671
4681
|
} else {
|
4672
|
-
return obj
|
4682
|
+
return defineProperty(obj, key, [newValue]);
|
4673
4683
|
}
|
4674
4684
|
} else {
|
4675
4685
|
if (!(obj[key] instanceof Array)) {
|
4676
|
-
obj
|
4686
|
+
defineProperty(obj, key, [obj[key]]);
|
4677
4687
|
}
|
4678
4688
|
return obj[key].push(newValue);
|
4679
4689
|
}
|
@@ -4714,21 +4724,21 @@ module.exports =
|
|
4714
4724
|
this.saxParser.onopentag = (function(_this) {
|
4715
4725
|
return function(node) {
|
4716
4726
|
var key, newValue, obj, processedKey, ref;
|
4717
|
-
obj =
|
4727
|
+
obj = {};
|
4718
4728
|
obj[charkey] = "";
|
4719
4729
|
if (!_this.options.ignoreAttrs) {
|
4720
4730
|
ref = node.attributes;
|
4721
4731
|
for (key in ref) {
|
4722
4732
|
if (!hasProp.call(ref, key)) continue;
|
4723
4733
|
if (!(attrkey in obj) && !_this.options.mergeAttrs) {
|
4724
|
-
obj[attrkey] =
|
4734
|
+
obj[attrkey] = {};
|
4725
4735
|
}
|
4726
4736
|
newValue = _this.options.attrValueProcessors ? processItem(_this.options.attrValueProcessors, node.attributes[key], key) : node.attributes[key];
|
4727
4737
|
processedKey = _this.options.attrNameProcessors ? processItem(_this.options.attrNameProcessors, key) : key;
|
4728
4738
|
if (_this.options.mergeAttrs) {
|
4729
4739
|
_this.assignOrPush(obj, processedKey, newValue);
|
4730
4740
|
} else {
|
4731
|
-
obj[attrkey]
|
4741
|
+
defineProperty(obj[attrkey], processedKey, newValue);
|
4732
4742
|
}
|
4733
4743
|
}
|
4734
4744
|
}
|
@@ -4799,7 +4809,7 @@ module.exports =
|
|
4799
4809
|
}
|
4800
4810
|
if (_this.options.explicitChildren && !_this.options.mergeAttrs && typeof obj === 'object') {
|
4801
4811
|
if (!_this.options.preserveChildrenOrder) {
|
4802
|
-
node =
|
4812
|
+
node = {};
|
4803
4813
|
if (_this.options.attrkey in obj) {
|
4804
4814
|
node[_this.options.attrkey] = obj[_this.options.attrkey];
|
4805
4815
|
delete obj[_this.options.attrkey];
|
@@ -4814,10 +4824,10 @@ module.exports =
|
|
4814
4824
|
obj = node;
|
4815
4825
|
} else if (s) {
|
4816
4826
|
s[_this.options.childkey] = s[_this.options.childkey] || [];
|
4817
|
-
objClone =
|
4827
|
+
objClone = {};
|
4818
4828
|
for (key in obj) {
|
4819
4829
|
if (!hasProp.call(obj, key)) continue;
|
4820
|
-
objClone
|
4830
|
+
defineProperty(objClone, key, obj[key]);
|
4821
4831
|
}
|
4822
4832
|
s[_this.options.childkey].push(objClone);
|
4823
4833
|
delete obj["#name"];
|
@@ -4831,8 +4841,8 @@ module.exports =
|
|
4831
4841
|
} else {
|
4832
4842
|
if (_this.options.explicitRoot) {
|
4833
4843
|
old = obj;
|
4834
|
-
obj =
|
4835
|
-
obj
|
4844
|
+
obj = {};
|
4845
|
+
defineProperty(obj, nodeName, old);
|
4836
4846
|
}
|
4837
4847
|
_this.resultObject = obj;
|
4838
4848
|
_this.saxParser.ended = true;
|
package/lib/core.js
CHANGED
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "aws-sdk",
|
3
3
|
"description": "AWS SDK for JavaScript",
|
4
|
-
"version": "2.
|
4
|
+
"version": "2.1542.0",
|
5
5
|
"author": {
|
6
6
|
"name": "Amazon Web Services",
|
7
7
|
"email": "",
|
@@ -50,7 +50,7 @@
|
|
50
50
|
"url": "0.10.3",
|
51
51
|
"util": "^0.12.4",
|
52
52
|
"uuid": "8.0.0",
|
53
|
-
"xml2js": "0.
|
53
|
+
"xml2js": "0.6.2"
|
54
54
|
},
|
55
55
|
"main": "lib/aws.js",
|
56
56
|
"browser": {
|