@aws-sdk/client-mediastore-data 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-mediastore-data
|
|
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-mediastore-data
|
|
@@ -120,7 +120,7 @@ exports.deserializeAws_restJson1DeleteObjectCommand = deserializeAws_restJson1De
|
|
|
120
120
|
const deserializeAws_restJson1DeleteObjectCommandError = async (output, context) => {
|
|
121
121
|
const parsedOutput = {
|
|
122
122
|
...output,
|
|
123
|
-
body: await
|
|
123
|
+
body: await parseErrorBody(output.body, context),
|
|
124
124
|
};
|
|
125
125
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
126
126
|
switch (errorCode) {
|
|
@@ -168,7 +168,7 @@ exports.deserializeAws_restJson1DescribeObjectCommand = deserializeAws_restJson1
|
|
|
168
168
|
const deserializeAws_restJson1DescribeObjectCommandError = async (output, context) => {
|
|
169
169
|
const parsedOutput = {
|
|
170
170
|
...output,
|
|
171
|
-
body: await
|
|
171
|
+
body: await parseErrorBody(output.body, context),
|
|
172
172
|
};
|
|
173
173
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
174
174
|
switch (errorCode) {
|
|
@@ -221,7 +221,7 @@ exports.deserializeAws_restJson1GetObjectCommand = deserializeAws_restJson1GetOb
|
|
|
221
221
|
const deserializeAws_restJson1GetObjectCommandError = async (output, context) => {
|
|
222
222
|
const parsedOutput = {
|
|
223
223
|
...output,
|
|
224
|
-
body: await
|
|
224
|
+
body: await parseErrorBody(output.body, context),
|
|
225
225
|
};
|
|
226
226
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
227
227
|
switch (errorCode) {
|
|
@@ -267,7 +267,7 @@ exports.deserializeAws_restJson1ListItemsCommand = deserializeAws_restJson1ListI
|
|
|
267
267
|
const deserializeAws_restJson1ListItemsCommandError = async (output, context) => {
|
|
268
268
|
const parsedOutput = {
|
|
269
269
|
...output,
|
|
270
|
-
body: await
|
|
270
|
+
body: await parseErrorBody(output.body, context),
|
|
271
271
|
};
|
|
272
272
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
273
273
|
switch (errorCode) {
|
|
@@ -310,7 +310,7 @@ exports.deserializeAws_restJson1PutObjectCommand = deserializeAws_restJson1PutOb
|
|
|
310
310
|
const deserializeAws_restJson1PutObjectCommandError = 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) {
|
|
@@ -429,6 +429,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
429
429
|
}
|
|
430
430
|
return {};
|
|
431
431
|
});
|
|
432
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
433
|
+
var _a;
|
|
434
|
+
const value = await parseBody(errorBody, context);
|
|
435
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
436
|
+
return value;
|
|
437
|
+
};
|
|
432
438
|
const loadRestJsonErrorCode = (output, data) => {
|
|
433
439
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
434
440
|
const sanitizeErrorCode = (rawValue) => {
|
|
@@ -155,7 +155,7 @@ var deserializeAws_restJson1DeleteObjectCommandError = function (output, context
|
|
|
155
155
|
case 0:
|
|
156
156
|
_a = [__assign({}, output)];
|
|
157
157
|
_c = {};
|
|
158
|
-
return [4,
|
|
158
|
+
return [4, parseErrorBody(output.body, context)];
|
|
159
159
|
case 1:
|
|
160
160
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
161
161
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -225,7 +225,7 @@ var deserializeAws_restJson1DescribeObjectCommandError = function (output, conte
|
|
|
225
225
|
case 0:
|
|
226
226
|
_a = [__assign({}, output)];
|
|
227
227
|
_c = {};
|
|
228
|
-
return [4,
|
|
228
|
+
return [4, parseErrorBody(output.body, context)];
|
|
229
229
|
case 1:
|
|
230
230
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
231
231
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -295,7 +295,7 @@ var deserializeAws_restJson1GetObjectCommandError = function (output, context) {
|
|
|
295
295
|
case 0:
|
|
296
296
|
_a = [__assign({}, output)];
|
|
297
297
|
_c = {};
|
|
298
|
-
return [4,
|
|
298
|
+
return [4, parseErrorBody(output.body, context)];
|
|
299
299
|
case 1:
|
|
300
300
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
301
301
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -366,7 +366,7 @@ var deserializeAws_restJson1ListItemsCommandError = function (output, context) {
|
|
|
366
366
|
case 0:
|
|
367
367
|
_a = [__assign({}, output)];
|
|
368
368
|
_c = {};
|
|
369
|
-
return [4,
|
|
369
|
+
return [4, parseErrorBody(output.body, context)];
|
|
370
370
|
case 1:
|
|
371
371
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
372
372
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -432,7 +432,7 @@ var deserializeAws_restJson1PutObjectCommandError = function (output, context) {
|
|
|
432
432
|
case 0:
|
|
433
433
|
_a = [__assign({}, output)];
|
|
434
434
|
_c = {};
|
|
435
|
-
return [4,
|
|
435
|
+
return [4, parseErrorBody(output.body, context)];
|
|
436
436
|
case 1:
|
|
437
437
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
438
438
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -567,6 +567,19 @@ var parseBody = function (streamBody, context) {
|
|
|
567
567
|
return {};
|
|
568
568
|
});
|
|
569
569
|
};
|
|
570
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
571
|
+
var value;
|
|
572
|
+
var _a;
|
|
573
|
+
return __generator(this, function (_b) {
|
|
574
|
+
switch (_b.label) {
|
|
575
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
576
|
+
case 1:
|
|
577
|
+
value = _b.sent();
|
|
578
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
579
|
+
return [2, value];
|
|
580
|
+
}
|
|
581
|
+
});
|
|
582
|
+
}); };
|
|
570
583
|
var loadRestJsonErrorCode = function (output, data) {
|
|
571
584
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
572
585
|
var sanitizeErrorCode = function (rawValue) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-mediastore-data",
|
|
3
3
|
"description": "AWS SDK for JavaScript Mediastore Data 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",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.181.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.178.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.181.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.178.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.178.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.178.0",
|
|
@@ -39,15 +39,15 @@
|
|
|
39
39
|
"@aws-sdk/node-config-provider": "3.178.0",
|
|
40
40
|
"@aws-sdk/node-http-handler": "3.178.0",
|
|
41
41
|
"@aws-sdk/protocol-http": "3.178.0",
|
|
42
|
-
"@aws-sdk/smithy-client": "3.
|
|
42
|
+
"@aws-sdk/smithy-client": "3.180.0",
|
|
43
43
|
"@aws-sdk/types": "3.178.0",
|
|
44
44
|
"@aws-sdk/url-parser": "3.178.0",
|
|
45
45
|
"@aws-sdk/util-base64-browser": "3.170.0",
|
|
46
46
|
"@aws-sdk/util-base64-node": "3.170.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.170.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.170.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.180.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.180.0",
|
|
51
51
|
"@aws-sdk/util-user-agent-browser": "3.178.0",
|
|
52
52
|
"@aws-sdk/util-user-agent-node": "3.178.0",
|
|
53
53
|
"@aws-sdk/util-utf8-browser": "3.170.0",
|