@aws-sdk/client-drs 3.354.0 → 3.357.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.
|
@@ -1365,7 +1365,7 @@ const de_DeleteJobCommand = async (output, context) => {
|
|
|
1365
1365
|
const contents = (0, smithy_client_1.map)({
|
|
1366
1366
|
$metadata: deserializeMetadata(output),
|
|
1367
1367
|
});
|
|
1368
|
-
await collectBody(output.body, context);
|
|
1368
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1369
1369
|
return contents;
|
|
1370
1370
|
};
|
|
1371
1371
|
exports.de_DeleteJobCommand = de_DeleteJobCommand;
|
|
@@ -1407,7 +1407,7 @@ const de_DeleteLaunchConfigurationTemplateCommand = async (output, context) => {
|
|
|
1407
1407
|
const contents = (0, smithy_client_1.map)({
|
|
1408
1408
|
$metadata: deserializeMetadata(output),
|
|
1409
1409
|
});
|
|
1410
|
-
await collectBody(output.body, context);
|
|
1410
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1411
1411
|
return contents;
|
|
1412
1412
|
};
|
|
1413
1413
|
exports.de_DeleteLaunchConfigurationTemplateCommand = de_DeleteLaunchConfigurationTemplateCommand;
|
|
@@ -1449,7 +1449,7 @@ const de_DeleteRecoveryInstanceCommand = async (output, context) => {
|
|
|
1449
1449
|
const contents = (0, smithy_client_1.map)({
|
|
1450
1450
|
$metadata: deserializeMetadata(output),
|
|
1451
1451
|
});
|
|
1452
|
-
await collectBody(output.body, context);
|
|
1452
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1453
1453
|
return contents;
|
|
1454
1454
|
};
|
|
1455
1455
|
exports.de_DeleteRecoveryInstanceCommand = de_DeleteRecoveryInstanceCommand;
|
|
@@ -1491,7 +1491,7 @@ const de_DeleteReplicationConfigurationTemplateCommand = async (output, context)
|
|
|
1491
1491
|
const contents = (0, smithy_client_1.map)({
|
|
1492
1492
|
$metadata: deserializeMetadata(output),
|
|
1493
1493
|
});
|
|
1494
|
-
await collectBody(output.body, context);
|
|
1494
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1495
1495
|
return contents;
|
|
1496
1496
|
};
|
|
1497
1497
|
exports.de_DeleteReplicationConfigurationTemplateCommand = de_DeleteReplicationConfigurationTemplateCommand;
|
|
@@ -1533,7 +1533,7 @@ const de_DeleteSourceNetworkCommand = async (output, context) => {
|
|
|
1533
1533
|
const contents = (0, smithy_client_1.map)({
|
|
1534
1534
|
$metadata: deserializeMetadata(output),
|
|
1535
1535
|
});
|
|
1536
|
-
await collectBody(output.body, context);
|
|
1536
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1537
1537
|
return contents;
|
|
1538
1538
|
};
|
|
1539
1539
|
exports.de_DeleteSourceNetworkCommand = de_DeleteSourceNetworkCommand;
|
|
@@ -1575,7 +1575,7 @@ const de_DeleteSourceServerCommand = async (output, context) => {
|
|
|
1575
1575
|
const contents = (0, smithy_client_1.map)({
|
|
1576
1576
|
$metadata: deserializeMetadata(output),
|
|
1577
1577
|
});
|
|
1578
|
-
await collectBody(output.body, context);
|
|
1578
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1579
1579
|
return contents;
|
|
1580
1580
|
};
|
|
1581
1581
|
exports.de_DeleteSourceServerCommand = de_DeleteSourceServerCommand;
|
|
@@ -1978,7 +1978,7 @@ const de_DisconnectRecoveryInstanceCommand = async (output, context) => {
|
|
|
1978
1978
|
const contents = (0, smithy_client_1.map)({
|
|
1979
1979
|
$metadata: deserializeMetadata(output),
|
|
1980
1980
|
});
|
|
1981
|
-
await collectBody(output.body, context);
|
|
1981
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1982
1982
|
return contents;
|
|
1983
1983
|
};
|
|
1984
1984
|
exports.de_DisconnectRecoveryInstanceCommand = de_DisconnectRecoveryInstanceCommand;
|
|
@@ -2288,7 +2288,7 @@ const de_InitializeServiceCommand = async (output, context) => {
|
|
|
2288
2288
|
const contents = (0, smithy_client_1.map)({
|
|
2289
2289
|
$metadata: deserializeMetadata(output),
|
|
2290
2290
|
});
|
|
2291
|
-
await collectBody(output.body, context);
|
|
2291
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2292
2292
|
return contents;
|
|
2293
2293
|
};
|
|
2294
2294
|
exports.de_InitializeServiceCommand = de_InitializeServiceCommand;
|
|
@@ -2813,7 +2813,7 @@ const de_StopFailbackCommand = async (output, context) => {
|
|
|
2813
2813
|
const contents = (0, smithy_client_1.map)({
|
|
2814
2814
|
$metadata: deserializeMetadata(output),
|
|
2815
2815
|
});
|
|
2816
|
-
await collectBody(output.body, context);
|
|
2816
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2817
2817
|
return contents;
|
|
2818
2818
|
};
|
|
2819
2819
|
exports.de_StopFailbackCommand = de_StopFailbackCommand;
|
|
@@ -2947,7 +2947,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
2947
2947
|
const contents = (0, smithy_client_1.map)({
|
|
2948
2948
|
$metadata: deserializeMetadata(output),
|
|
2949
2949
|
});
|
|
2950
|
-
await collectBody(output.body, context);
|
|
2950
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2951
2951
|
return contents;
|
|
2952
2952
|
};
|
|
2953
2953
|
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
@@ -3035,7 +3035,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
3035
3035
|
const contents = (0, smithy_client_1.map)({
|
|
3036
3036
|
$metadata: deserializeMetadata(output),
|
|
3037
3037
|
});
|
|
3038
|
-
await collectBody(output.body, context);
|
|
3038
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3039
3039
|
return contents;
|
|
3040
3040
|
};
|
|
3041
3041
|
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
@@ -3077,7 +3077,7 @@ const de_UpdateFailbackReplicationConfigurationCommand = async (output, context)
|
|
|
3077
3077
|
const contents = (0, smithy_client_1.map)({
|
|
3078
3078
|
$metadata: deserializeMetadata(output),
|
|
3079
3079
|
});
|
|
3080
|
-
await collectBody(output.body, context);
|
|
3080
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3081
3081
|
return contents;
|
|
3082
3082
|
};
|
|
3083
3083
|
exports.de_UpdateFailbackReplicationConfigurationCommand = de_UpdateFailbackReplicationConfigurationCommand;
|
|
@@ -3516,13 +3516,7 @@ const deserializeMetadata = (output) => ({
|
|
|
3516
3516
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3517
3517
|
cfId: output.headers["x-amz-cf-id"],
|
|
3518
3518
|
});
|
|
3519
|
-
const
|
|
3520
|
-
if (streamBody instanceof Uint8Array) {
|
|
3521
|
-
return Promise.resolve(streamBody);
|
|
3522
|
-
}
|
|
3523
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3524
|
-
};
|
|
3525
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3519
|
+
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3526
3520
|
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
3527
3521
|
value !== null &&
|
|
3528
3522
|
value !== "" &&
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, strictParseLong as __strictParseLong, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
1
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, strictParseLong as __strictParseLong, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
3
|
import { DrsServiceException as __BaseException } from "../models/DrsServiceException";
|
|
4
4
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, UninitializedAccountException, ValidationException, } from "../models/models_0";
|
|
@@ -3418,12 +3418,6 @@ const deserializeMetadata = (output) => ({
|
|
|
3418
3418
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3419
3419
|
cfId: output.headers["x-amz-cf-id"],
|
|
3420
3420
|
});
|
|
3421
|
-
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
3422
|
-
if (streamBody instanceof Uint8Array) {
|
|
3423
|
-
return Promise.resolve(streamBody);
|
|
3424
|
-
}
|
|
3425
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3426
|
-
};
|
|
3427
3421
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3428
3422
|
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
3429
3423
|
value !== null &&
|
|
@@ -120,7 +120,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
120
120
|
*/
|
|
121
121
|
runtime?: string;
|
|
122
122
|
/**
|
|
123
|
-
* Disable
|
|
123
|
+
* Disable dynamically changing the endpoint of the client based on the hostPrefix
|
|
124
124
|
* trait of an operation.
|
|
125
125
|
*/
|
|
126
126
|
disableHostPrefix?: boolean;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-drs",
|
|
3
3
|
"description": "AWS SDK for JavaScript Drs Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.357.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,36 +21,36 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
28
|
-
"@aws-sdk/hash-node": "3.
|
|
29
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
30
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
31
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
32
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
33
|
-
"@aws-sdk/middleware-logger": "3.
|
|
34
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
35
|
-
"@aws-sdk/middleware-retry": "3.
|
|
36
|
-
"@aws-sdk/middleware-serde": "3.
|
|
37
|
-
"@aws-sdk/middleware-signing": "3.
|
|
38
|
-
"@aws-sdk/middleware-stack": "3.
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
40
|
-
"@aws-sdk/node-config-provider": "3.
|
|
41
|
-
"@aws-sdk/node-http-handler": "3.
|
|
42
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
-
"@aws-sdk/types": "3.
|
|
44
|
-
"@aws-sdk/url-parser": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.357.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.357.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.357.0",
|
|
27
|
+
"@aws-sdk/fetch-http-handler": "3.357.0",
|
|
28
|
+
"@aws-sdk/hash-node": "3.357.0",
|
|
29
|
+
"@aws-sdk/invalid-dependency": "3.357.0",
|
|
30
|
+
"@aws-sdk/middleware-content-length": "3.357.0",
|
|
31
|
+
"@aws-sdk/middleware-endpoint": "3.357.0",
|
|
32
|
+
"@aws-sdk/middleware-host-header": "3.357.0",
|
|
33
|
+
"@aws-sdk/middleware-logger": "3.357.0",
|
|
34
|
+
"@aws-sdk/middleware-recursion-detection": "3.357.0",
|
|
35
|
+
"@aws-sdk/middleware-retry": "3.357.0",
|
|
36
|
+
"@aws-sdk/middleware-serde": "3.357.0",
|
|
37
|
+
"@aws-sdk/middleware-signing": "3.357.0",
|
|
38
|
+
"@aws-sdk/middleware-stack": "3.357.0",
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.357.0",
|
|
40
|
+
"@aws-sdk/node-config-provider": "3.357.0",
|
|
41
|
+
"@aws-sdk/node-http-handler": "3.357.0",
|
|
42
|
+
"@aws-sdk/smithy-client": "3.357.0",
|
|
43
|
+
"@aws-sdk/types": "3.357.0",
|
|
44
|
+
"@aws-sdk/url-parser": "3.357.0",
|
|
45
45
|
"@aws-sdk/util-base64": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
48
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
50
|
-
"@aws-sdk/util-endpoints": "3.
|
|
51
|
-
"@aws-sdk/util-retry": "3.
|
|
52
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
53
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
48
|
+
"@aws-sdk/util-defaults-mode-browser": "3.357.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-node": "3.357.0",
|
|
50
|
+
"@aws-sdk/util-endpoints": "3.357.0",
|
|
51
|
+
"@aws-sdk/util-retry": "3.357.0",
|
|
52
|
+
"@aws-sdk/util-user-agent-browser": "3.357.0",
|
|
53
|
+
"@aws-sdk/util-user-agent-node": "3.357.0",
|
|
54
54
|
"@aws-sdk/util-utf8": "3.310.0",
|
|
55
55
|
"@smithy/protocol-http": "^1.0.1",
|
|
56
56
|
"@smithy/types": "^1.0.0",
|