@aws-sdk/client-rbin 3.180.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,18 @@
|
|
|
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
|
+
|
|
6
18
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
19
|
|
|
8
20
|
**Note:** Version bump only for package @aws-sdk/client-rbin
|
|
@@ -218,7 +218,7 @@ exports.deserializeAws_restJson1CreateRuleCommand = deserializeAws_restJson1Crea
|
|
|
218
218
|
const deserializeAws_restJson1CreateRuleCommandError = async (output, context) => {
|
|
219
219
|
const parsedOutput = {
|
|
220
220
|
...output,
|
|
221
|
-
body: await
|
|
221
|
+
body: await parseErrorBody(output.body, context),
|
|
222
222
|
};
|
|
223
223
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
224
224
|
switch (errorCode) {
|
|
@@ -255,7 +255,7 @@ exports.deserializeAws_restJson1DeleteRuleCommand = deserializeAws_restJson1Dele
|
|
|
255
255
|
const deserializeAws_restJson1DeleteRuleCommandError = async (output, context) => {
|
|
256
256
|
const parsedOutput = {
|
|
257
257
|
...output,
|
|
258
|
-
body: await
|
|
258
|
+
body: await parseErrorBody(output.body, context),
|
|
259
259
|
};
|
|
260
260
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
261
261
|
switch (errorCode) {
|
|
@@ -310,7 +310,7 @@ exports.deserializeAws_restJson1GetRuleCommand = deserializeAws_restJson1GetRule
|
|
|
310
310
|
const deserializeAws_restJson1GetRuleCommandError = async (output, context) => {
|
|
311
311
|
const parsedOutput = {
|
|
312
312
|
...output,
|
|
313
|
-
body: await
|
|
313
|
+
body: await parseErrorBody(output.body, context),
|
|
314
314
|
};
|
|
315
315
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
316
316
|
switch (errorCode) {
|
|
@@ -353,7 +353,7 @@ exports.deserializeAws_restJson1ListRulesCommand = deserializeAws_restJson1ListR
|
|
|
353
353
|
const deserializeAws_restJson1ListRulesCommandError = async (output, context) => {
|
|
354
354
|
const parsedOutput = {
|
|
355
355
|
...output,
|
|
356
|
-
body: await
|
|
356
|
+
body: await parseErrorBody(output.body, context),
|
|
357
357
|
};
|
|
358
358
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
359
359
|
switch (errorCode) {
|
|
@@ -390,7 +390,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
390
390
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
391
391
|
const parsedOutput = {
|
|
392
392
|
...output,
|
|
393
|
-
body: await
|
|
393
|
+
body: await parseErrorBody(output.body, context),
|
|
394
394
|
};
|
|
395
395
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
396
396
|
switch (errorCode) {
|
|
@@ -427,7 +427,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
427
427
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
428
428
|
const parsedOutput = {
|
|
429
429
|
...output,
|
|
430
|
-
body: await
|
|
430
|
+
body: await parseErrorBody(output.body, context),
|
|
431
431
|
};
|
|
432
432
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
433
433
|
switch (errorCode) {
|
|
@@ -467,7 +467,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
467
467
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
468
468
|
const parsedOutput = {
|
|
469
469
|
...output,
|
|
470
|
-
body: await
|
|
470
|
+
body: await parseErrorBody(output.body, context),
|
|
471
471
|
};
|
|
472
472
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
473
473
|
switch (errorCode) {
|
|
@@ -522,7 +522,7 @@ exports.deserializeAws_restJson1UpdateRuleCommand = deserializeAws_restJson1Upda
|
|
|
522
522
|
const deserializeAws_restJson1UpdateRuleCommandError = async (output, context) => {
|
|
523
523
|
const parsedOutput = {
|
|
524
524
|
...output,
|
|
525
|
-
body: await
|
|
525
|
+
body: await parseErrorBody(output.body, context),
|
|
526
526
|
};
|
|
527
527
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
528
528
|
switch (errorCode) {
|
|
@@ -722,6 +722,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
722
722
|
}
|
|
723
723
|
return {};
|
|
724
724
|
});
|
|
725
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
726
|
+
var _a;
|
|
727
|
+
const value = await parseBody(errorBody, context);
|
|
728
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
729
|
+
return value;
|
|
730
|
+
};
|
|
725
731
|
const loadRestJsonErrorCode = (output, data) => {
|
|
726
732
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
727
733
|
const sanitizeErrorCode = (rawValue) => {
|
|
@@ -252,7 +252,7 @@ var deserializeAws_restJson1CreateRuleCommandError = function (output, context)
|
|
|
252
252
|
case 0:
|
|
253
253
|
_a = [__assign({}, output)];
|
|
254
254
|
_c = {};
|
|
255
|
-
return [4,
|
|
255
|
+
return [4, parseErrorBody(output.body, context)];
|
|
256
256
|
case 1:
|
|
257
257
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
258
258
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -311,7 +311,7 @@ var deserializeAws_restJson1DeleteRuleCommandError = function (output, context)
|
|
|
311
311
|
case 0:
|
|
312
312
|
_a = [__assign({}, output)];
|
|
313
313
|
_c = {};
|
|
314
|
-
return [4,
|
|
314
|
+
return [4, parseErrorBody(output.body, context)];
|
|
315
315
|
case 1:
|
|
316
316
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
317
317
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -390,7 +390,7 @@ var deserializeAws_restJson1GetRuleCommandError = function (output, context) { r
|
|
|
390
390
|
case 0:
|
|
391
391
|
_a = [__assign({}, output)];
|
|
392
392
|
_c = {};
|
|
393
|
-
return [4,
|
|
393
|
+
return [4, parseErrorBody(output.body, context)];
|
|
394
394
|
case 1:
|
|
395
395
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
396
396
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -457,7 +457,7 @@ var deserializeAws_restJson1ListRulesCommandError = function (output, context) {
|
|
|
457
457
|
case 0:
|
|
458
458
|
_a = [__assign({}, output)];
|
|
459
459
|
_c = {};
|
|
460
|
-
return [4,
|
|
460
|
+
return [4, parseErrorBody(output.body, context)];
|
|
461
461
|
case 1:
|
|
462
462
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
463
463
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -517,7 +517,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
517
517
|
case 0:
|
|
518
518
|
_a = [__assign({}, output)];
|
|
519
519
|
_c = {};
|
|
520
|
-
return [4,
|
|
520
|
+
return [4, parseErrorBody(output.body, context)];
|
|
521
521
|
case 1:
|
|
522
522
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
523
523
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -576,7 +576,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
576
576
|
case 0:
|
|
577
577
|
_a = [__assign({}, output)];
|
|
578
578
|
_c = {};
|
|
579
|
-
return [4,
|
|
579
|
+
return [4, parseErrorBody(output.body, context)];
|
|
580
580
|
case 1:
|
|
581
581
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
582
582
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -639,7 +639,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
639
639
|
case 0:
|
|
640
640
|
_a = [__assign({}, output)];
|
|
641
641
|
_c = {};
|
|
642
|
-
return [4,
|
|
642
|
+
return [4, parseErrorBody(output.body, context)];
|
|
643
643
|
case 1:
|
|
644
644
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
645
645
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -718,7 +718,7 @@ var deserializeAws_restJson1UpdateRuleCommandError = function (output, context)
|
|
|
718
718
|
case 0:
|
|
719
719
|
_a = [__assign({}, output)];
|
|
720
720
|
_c = {};
|
|
721
|
-
return [4,
|
|
721
|
+
return [4, parseErrorBody(output.body, context)];
|
|
722
722
|
case 1:
|
|
723
723
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
724
724
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -926,6 +926,19 @@ var parseBody = function (streamBody, context) {
|
|
|
926
926
|
return {};
|
|
927
927
|
});
|
|
928
928
|
};
|
|
929
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
930
|
+
var value;
|
|
931
|
+
var _a;
|
|
932
|
+
return __generator(this, function (_b) {
|
|
933
|
+
switch (_b.label) {
|
|
934
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
935
|
+
case 1:
|
|
936
|
+
value = _b.sent();
|
|
937
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
938
|
+
return [2, value];
|
|
939
|
+
}
|
|
940
|
+
});
|
|
941
|
+
}); };
|
|
929
942
|
var loadRestJsonErrorCode = function (output, data) {
|
|
930
943
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
931
944
|
var sanitizeErrorCode = function (rawValue) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-rbin",
|
|
3
3
|
"description": "AWS SDK for JavaScript Rbin 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",
|