@aws-sdk/client-mediastore-data 3.523.0 → 3.529.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/dist-cjs/index.js +5 -45
- package/dist-es/protocols/Aws_restJson1.js +1 -40
- package/package.json +17 -17
- package/dist-cjs/MediaStoreData.js +0 -1
- package/dist-cjs/MediaStoreDataClient.js +0 -1
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -1
- package/dist-cjs/commands/DeleteObjectCommand.js +0 -1
- package/dist-cjs/commands/DescribeObjectCommand.js +0 -1
- package/dist-cjs/commands/GetObjectCommand.js +0 -1
- package/dist-cjs/commands/ListItemsCommand.js +0 -1
- package/dist-cjs/commands/PutObjectCommand.js +0 -1
- package/dist-cjs/commands/index.js +0 -1
- package/dist-cjs/endpoint/EndpointParameters.js +0 -1
- package/dist-cjs/extensionConfiguration.js +0 -1
- package/dist-cjs/models/MediaStoreDataServiceException.js +0 -1
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -1
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListItemsPaginator.js +0 -1
- package/dist-cjs/pagination/index.js +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js +0 -1
- package/dist-cjs/runtimeExtensions.js +0 -1
package/dist-cjs/index.js
CHANGED
|
@@ -196,6 +196,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
196
196
|
var import_types = require("@smithy/types");
|
|
197
197
|
|
|
198
198
|
// src/protocols/Aws_restJson1.ts
|
|
199
|
+
var import_core2 = require("@aws-sdk/core");
|
|
199
200
|
|
|
200
201
|
|
|
201
202
|
|
|
@@ -418,7 +419,7 @@ var de_ListItemsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
418
419
|
const contents = (0, import_smithy_client.map)({
|
|
419
420
|
$metadata: deserializeMetadata(output)
|
|
420
421
|
});
|
|
421
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
422
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
422
423
|
const doc = (0, import_smithy_client.take)(data, {
|
|
423
424
|
Items: (_) => de_ItemList(_, context),
|
|
424
425
|
NextToken: import_smithy_client.expectString
|
|
@@ -433,7 +434,7 @@ var de_PutObjectCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
433
434
|
const contents = (0, import_smithy_client.map)({
|
|
434
435
|
$metadata: deserializeMetadata(output)
|
|
435
436
|
});
|
|
436
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
437
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
437
438
|
const doc = (0, import_smithy_client.take)(data, {
|
|
438
439
|
ContentSHA256: import_smithy_client.expectString,
|
|
439
440
|
ETag: import_smithy_client.expectString,
|
|
@@ -445,9 +446,9 @@ var de_PutObjectCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
445
446
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
446
447
|
const parsedOutput = {
|
|
447
448
|
...output,
|
|
448
|
-
body: await
|
|
449
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
449
450
|
};
|
|
450
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
451
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
451
452
|
switch (errorCode) {
|
|
452
453
|
case "ContainerNotFoundException":
|
|
453
454
|
case "com.amazonaws.mediastoredata#ContainerNotFoundException":
|
|
@@ -545,7 +546,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
545
546
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
546
547
|
cfId: output.headers["x-amz-cf-id"]
|
|
547
548
|
}), "deserializeMetadata");
|
|
548
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
549
549
|
var isSerializableHeaderValue = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "" && (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0), "isSerializableHeaderValue");
|
|
550
550
|
var _CC = "CacheControl";
|
|
551
551
|
var _CL = "ContentLength";
|
|
@@ -568,46 +568,6 @@ var _lm = "last-modified";
|
|
|
568
568
|
var _r = "range";
|
|
569
569
|
var _xasc = "x-amz-storage-class";
|
|
570
570
|
var _xaua = "x-amz-upload-availability";
|
|
571
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
572
|
-
if (encoded.length) {
|
|
573
|
-
return JSON.parse(encoded);
|
|
574
|
-
}
|
|
575
|
-
return {};
|
|
576
|
-
}), "parseBody");
|
|
577
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
578
|
-
const value = await parseBody(errorBody, context);
|
|
579
|
-
value.message = value.message ?? value.Message;
|
|
580
|
-
return value;
|
|
581
|
-
}, "parseErrorBody");
|
|
582
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
583
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
584
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
585
|
-
let cleanValue = rawValue;
|
|
586
|
-
if (typeof cleanValue === "number") {
|
|
587
|
-
cleanValue = cleanValue.toString();
|
|
588
|
-
}
|
|
589
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
590
|
-
cleanValue = cleanValue.split(",")[0];
|
|
591
|
-
}
|
|
592
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
593
|
-
cleanValue = cleanValue.split(":")[0];
|
|
594
|
-
}
|
|
595
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
596
|
-
cleanValue = cleanValue.split("#")[1];
|
|
597
|
-
}
|
|
598
|
-
return cleanValue;
|
|
599
|
-
}, "sanitizeErrorCode");
|
|
600
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
601
|
-
if (headerKey !== void 0) {
|
|
602
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
603
|
-
}
|
|
604
|
-
if (data.code !== void 0) {
|
|
605
|
-
return sanitizeErrorCode(data.code);
|
|
606
|
-
}
|
|
607
|
-
if (data["__type"] !== void 0) {
|
|
608
|
-
return sanitizeErrorCode(data["__type"]);
|
|
609
|
-
}
|
|
610
|
-
}, "loadRestJsonErrorCode");
|
|
611
571
|
|
|
612
572
|
// src/commands/DeleteObjectCommand.ts
|
|
613
573
|
var _DeleteObjectCommand = class _DeleteObjectCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
1
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
2
3
|
import { collectBody, decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, parseRfc7231DateTime as __parseRfc7231DateTime, strictParseLong as __strictParseLong, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { MediaStoreDataServiceException as __BaseException } from "../models/MediaStoreDataServiceException";
|
|
@@ -271,43 +272,3 @@ const _lm = "last-modified";
|
|
|
271
272
|
const _r = "range";
|
|
272
273
|
const _xasc = "x-amz-storage-class";
|
|
273
274
|
const _xaua = "x-amz-upload-availability";
|
|
274
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
275
|
-
if (encoded.length) {
|
|
276
|
-
return JSON.parse(encoded);
|
|
277
|
-
}
|
|
278
|
-
return {};
|
|
279
|
-
});
|
|
280
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
281
|
-
const value = await parseBody(errorBody, context);
|
|
282
|
-
value.message = value.message ?? value.Message;
|
|
283
|
-
return value;
|
|
284
|
-
};
|
|
285
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
286
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
287
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
288
|
-
let cleanValue = rawValue;
|
|
289
|
-
if (typeof cleanValue === "number") {
|
|
290
|
-
cleanValue = cleanValue.toString();
|
|
291
|
-
}
|
|
292
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
293
|
-
cleanValue = cleanValue.split(",")[0];
|
|
294
|
-
}
|
|
295
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
296
|
-
cleanValue = cleanValue.split(":")[0];
|
|
297
|
-
}
|
|
298
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
299
|
-
cleanValue = cleanValue.split("#")[1];
|
|
300
|
-
}
|
|
301
|
-
return cleanValue;
|
|
302
|
-
};
|
|
303
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
304
|
-
if (headerKey !== undefined) {
|
|
305
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
306
|
-
}
|
|
307
|
-
if (data.code !== undefined) {
|
|
308
|
-
return sanitizeErrorCode(data.code);
|
|
309
|
-
}
|
|
310
|
-
if (data["__type"] !== undefined) {
|
|
311
|
-
return sanitizeErrorCode(data["__type"]);
|
|
312
|
-
}
|
|
313
|
-
};
|
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.529.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-mediastore-data",
|
|
@@ -22,40 +22,40 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
24
24
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
25
|
-
"@aws-sdk/client-sts": "3.
|
|
26
|
-
"@aws-sdk/core": "3.
|
|
27
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/client-sts": "3.529.0",
|
|
26
|
+
"@aws-sdk/core": "3.529.0",
|
|
27
|
+
"@aws-sdk/credential-provider-node": "3.529.0",
|
|
28
28
|
"@aws-sdk/middleware-host-header": "3.523.0",
|
|
29
29
|
"@aws-sdk/middleware-logger": "3.523.0",
|
|
30
30
|
"@aws-sdk/middleware-recursion-detection": "3.523.0",
|
|
31
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
32
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
31
|
+
"@aws-sdk/middleware-user-agent": "3.525.0",
|
|
32
|
+
"@aws-sdk/region-config-resolver": "3.525.0",
|
|
33
33
|
"@aws-sdk/types": "3.523.0",
|
|
34
|
-
"@aws-sdk/util-endpoints": "3.
|
|
34
|
+
"@aws-sdk/util-endpoints": "3.525.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-browser": "3.523.0",
|
|
36
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
37
|
-
"@smithy/config-resolver": "^2.1.
|
|
38
|
-
"@smithy/core": "^1.3.
|
|
36
|
+
"@aws-sdk/util-user-agent-node": "3.525.0",
|
|
37
|
+
"@smithy/config-resolver": "^2.1.4",
|
|
38
|
+
"@smithy/core": "^1.3.5",
|
|
39
39
|
"@smithy/fetch-http-handler": "^2.4.3",
|
|
40
40
|
"@smithy/hash-node": "^2.1.3",
|
|
41
41
|
"@smithy/invalid-dependency": "^2.1.3",
|
|
42
42
|
"@smithy/middleware-content-length": "^2.1.3",
|
|
43
|
-
"@smithy/middleware-endpoint": "^2.4.
|
|
44
|
-
"@smithy/middleware-retry": "^2.1.
|
|
43
|
+
"@smithy/middleware-endpoint": "^2.4.4",
|
|
44
|
+
"@smithy/middleware-retry": "^2.1.4",
|
|
45
45
|
"@smithy/middleware-serde": "^2.1.3",
|
|
46
46
|
"@smithy/middleware-stack": "^2.1.3",
|
|
47
|
-
"@smithy/node-config-provider": "^2.2.
|
|
47
|
+
"@smithy/node-config-provider": "^2.2.4",
|
|
48
48
|
"@smithy/node-http-handler": "^2.4.1",
|
|
49
49
|
"@smithy/protocol-http": "^3.2.1",
|
|
50
|
-
"@smithy/smithy-client": "^2.4.
|
|
50
|
+
"@smithy/smithy-client": "^2.4.2",
|
|
51
51
|
"@smithy/types": "^2.10.1",
|
|
52
52
|
"@smithy/url-parser": "^2.1.3",
|
|
53
53
|
"@smithy/util-base64": "^2.1.1",
|
|
54
54
|
"@smithy/util-body-length-browser": "^2.1.1",
|
|
55
55
|
"@smithy/util-body-length-node": "^2.2.1",
|
|
56
|
-
"@smithy/util-defaults-mode-browser": "^2.1.
|
|
57
|
-
"@smithy/util-defaults-mode-node": "^2.2.
|
|
58
|
-
"@smithy/util-endpoints": "^1.1.
|
|
56
|
+
"@smithy/util-defaults-mode-browser": "^2.1.4",
|
|
57
|
+
"@smithy/util-defaults-mode-node": "^2.2.3",
|
|
58
|
+
"@smithy/util-endpoints": "^1.1.4",
|
|
59
59
|
"@smithy/util-middleware": "^2.1.3",
|
|
60
60
|
"@smithy/util-retry": "^2.1.3",
|
|
61
61
|
"@smithy/util-stream": "^2.1.3",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
package/dist-cjs/models/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|