@aws-sdk/client-route53-recovery-cluster 3.179.0 → 3.181.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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
12
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
19
|
+
|
|
20
|
+
**Note:** Version bump only for package @aws-sdk/client-route53-recovery-cluster
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.179.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.178.0...v3.179.0) (2022-09-26)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-route53-recovery-cluster
|
|
@@ -62,7 +62,7 @@ exports.deserializeAws_json1_0GetRoutingControlStateCommand = deserializeAws_jso
|
|
|
62
62
|
const deserializeAws_json1_0GetRoutingControlStateCommandError = async (output, context) => {
|
|
63
63
|
const parsedOutput = {
|
|
64
64
|
...output,
|
|
65
|
-
body: await
|
|
65
|
+
body: await parseErrorBody(output.body, context),
|
|
66
66
|
};
|
|
67
67
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
68
68
|
switch (errorCode) {
|
|
@@ -111,7 +111,7 @@ exports.deserializeAws_json1_0ListRoutingControlsCommand = deserializeAws_json1_
|
|
|
111
111
|
const deserializeAws_json1_0ListRoutingControlsCommandError = async (output, context) => {
|
|
112
112
|
const parsedOutput = {
|
|
113
113
|
...output,
|
|
114
|
-
body: await
|
|
114
|
+
body: await parseErrorBody(output.body, context),
|
|
115
115
|
};
|
|
116
116
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
117
117
|
switch (errorCode) {
|
|
@@ -160,7 +160,7 @@ exports.deserializeAws_json1_0UpdateRoutingControlStateCommand = deserializeAws_
|
|
|
160
160
|
const deserializeAws_json1_0UpdateRoutingControlStateCommandError = async (output, context) => {
|
|
161
161
|
const parsedOutput = {
|
|
162
162
|
...output,
|
|
163
|
-
body: await
|
|
163
|
+
body: await parseErrorBody(output.body, context),
|
|
164
164
|
};
|
|
165
165
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
166
166
|
switch (errorCode) {
|
|
@@ -212,7 +212,7 @@ exports.deserializeAws_json1_0UpdateRoutingControlStatesCommand = deserializeAws
|
|
|
212
212
|
const deserializeAws_json1_0UpdateRoutingControlStatesCommandError = async (output, context) => {
|
|
213
213
|
const parsedOutput = {
|
|
214
214
|
...output,
|
|
215
|
-
body: await
|
|
215
|
+
body: await parseErrorBody(output.body, context),
|
|
216
216
|
};
|
|
217
217
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
218
218
|
switch (errorCode) {
|
|
@@ -523,6 +523,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
523
523
|
}
|
|
524
524
|
return {};
|
|
525
525
|
});
|
|
526
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
527
|
+
var _a;
|
|
528
|
+
const value = await parseBody(errorBody, context);
|
|
529
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
530
|
+
return value;
|
|
531
|
+
};
|
|
526
532
|
const loadRestJsonErrorCode = (output, data) => {
|
|
527
533
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
528
534
|
const sanitizeErrorCode = (rawValue) => {
|
|
@@ -73,7 +73,7 @@ var deserializeAws_json1_0GetRoutingControlStateCommandError = function (output,
|
|
|
73
73
|
case 0:
|
|
74
74
|
_a = [__assign({}, output)];
|
|
75
75
|
_c = {};
|
|
76
|
-
return [4,
|
|
76
|
+
return [4, parseErrorBody(output.body, context)];
|
|
77
77
|
case 1:
|
|
78
78
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
79
79
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -144,7 +144,7 @@ var deserializeAws_json1_0ListRoutingControlsCommandError = function (output, co
|
|
|
144
144
|
case 0:
|
|
145
145
|
_a = [__assign({}, output)];
|
|
146
146
|
_c = {};
|
|
147
|
-
return [4,
|
|
147
|
+
return [4, parseErrorBody(output.body, context)];
|
|
148
148
|
case 1:
|
|
149
149
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
150
150
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -215,7 +215,7 @@ var deserializeAws_json1_0UpdateRoutingControlStateCommandError = function (outp
|
|
|
215
215
|
case 0:
|
|
216
216
|
_a = [__assign({}, output)];
|
|
217
217
|
_c = {};
|
|
218
|
-
return [4,
|
|
218
|
+
return [4, parseErrorBody(output.body, context)];
|
|
219
219
|
case 1:
|
|
220
220
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
221
221
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -290,7 +290,7 @@ var deserializeAws_json1_0UpdateRoutingControlStatesCommandError = function (out
|
|
|
290
290
|
case 0:
|
|
291
291
|
_a = [__assign({}, output)];
|
|
292
292
|
_c = {};
|
|
293
|
-
return [4,
|
|
293
|
+
return [4, parseErrorBody(output.body, context)];
|
|
294
294
|
case 1:
|
|
295
295
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
296
296
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -612,6 +612,19 @@ var parseBody = function (streamBody, context) {
|
|
|
612
612
|
return {};
|
|
613
613
|
});
|
|
614
614
|
};
|
|
615
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
616
|
+
var value;
|
|
617
|
+
var _a;
|
|
618
|
+
return __generator(this, function (_b) {
|
|
619
|
+
switch (_b.label) {
|
|
620
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
621
|
+
case 1:
|
|
622
|
+
value = _b.sent();
|
|
623
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
624
|
+
return [2, value];
|
|
625
|
+
}
|
|
626
|
+
});
|
|
627
|
+
}); };
|
|
615
628
|
var loadRestJsonErrorCode = function (output, data) {
|
|
616
629
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
617
630
|
var sanitizeErrorCode = function (rawValue) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-route53-recovery-cluster",
|
|
3
3
|
"description": "AWS SDK for JavaScript Route53 Recovery Cluster Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.181.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.181.0",
|
|
23
23
|
"@aws-sdk/config-resolver": "3.178.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.181.0",
|
|
25
25
|
"@aws-sdk/fetch-http-handler": "3.178.0",
|
|
26
26
|
"@aws-sdk/hash-node": "3.178.0",
|
|
27
27
|
"@aws-sdk/invalid-dependency": "3.178.0",
|
|
@@ -37,15 +37,15 @@
|
|
|
37
37
|
"@aws-sdk/node-config-provider": "3.178.0",
|
|
38
38
|
"@aws-sdk/node-http-handler": "3.178.0",
|
|
39
39
|
"@aws-sdk/protocol-http": "3.178.0",
|
|
40
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
+
"@aws-sdk/smithy-client": "3.180.0",
|
|
41
41
|
"@aws-sdk/types": "3.178.0",
|
|
42
42
|
"@aws-sdk/url-parser": "3.178.0",
|
|
43
43
|
"@aws-sdk/util-base64-browser": "3.170.0",
|
|
44
44
|
"@aws-sdk/util-base64-node": "3.170.0",
|
|
45
45
|
"@aws-sdk/util-body-length-browser": "3.170.0",
|
|
46
46
|
"@aws-sdk/util-body-length-node": "3.170.0",
|
|
47
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
48
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
47
|
+
"@aws-sdk/util-defaults-mode-browser": "3.180.0",
|
|
48
|
+
"@aws-sdk/util-defaults-mode-node": "3.180.0",
|
|
49
49
|
"@aws-sdk/util-user-agent-browser": "3.178.0",
|
|
50
50
|
"@aws-sdk/util-user-agent-node": "3.178.0",
|
|
51
51
|
"@aws-sdk/util-utf8-browser": "3.170.0",
|