@aws-sdk/client-m2 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.
|
@@ -719,7 +719,7 @@ const de_CancelBatchJobExecutionCommand = async (output, context) => {
|
|
|
719
719
|
const contents = (0, smithy_client_1.map)({
|
|
720
720
|
$metadata: deserializeMetadata(output),
|
|
721
721
|
});
|
|
722
|
-
await collectBody(output.body, context);
|
|
722
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
723
723
|
return contents;
|
|
724
724
|
};
|
|
725
725
|
exports.de_CancelBatchJobExecutionCommand = de_CancelBatchJobExecutionCommand;
|
|
@@ -968,7 +968,7 @@ const de_DeleteApplicationCommand = async (output, context) => {
|
|
|
968
968
|
const contents = (0, smithy_client_1.map)({
|
|
969
969
|
$metadata: deserializeMetadata(output),
|
|
970
970
|
});
|
|
971
|
-
await collectBody(output.body, context);
|
|
971
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
972
972
|
return contents;
|
|
973
973
|
};
|
|
974
974
|
exports.de_DeleteApplicationCommand = de_DeleteApplicationCommand;
|
|
@@ -1010,7 +1010,7 @@ const de_DeleteApplicationFromEnvironmentCommand = async (output, context) => {
|
|
|
1010
1010
|
const contents = (0, smithy_client_1.map)({
|
|
1011
1011
|
$metadata: deserializeMetadata(output),
|
|
1012
1012
|
});
|
|
1013
|
-
await collectBody(output.body, context);
|
|
1013
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1014
1014
|
return contents;
|
|
1015
1015
|
};
|
|
1016
1016
|
exports.de_DeleteApplicationFromEnvironmentCommand = de_DeleteApplicationFromEnvironmentCommand;
|
|
@@ -1055,7 +1055,7 @@ const de_DeleteEnvironmentCommand = async (output, context) => {
|
|
|
1055
1055
|
const contents = (0, smithy_client_1.map)({
|
|
1056
1056
|
$metadata: deserializeMetadata(output),
|
|
1057
1057
|
});
|
|
1058
|
-
await collectBody(output.body, context);
|
|
1058
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1059
1059
|
return contents;
|
|
1060
1060
|
};
|
|
1061
1061
|
exports.de_DeleteEnvironmentCommand = de_DeleteEnvironmentCommand;
|
|
@@ -1951,7 +1951,7 @@ const de_StartApplicationCommand = async (output, context) => {
|
|
|
1951
1951
|
const contents = (0, smithy_client_1.map)({
|
|
1952
1952
|
$metadata: deserializeMetadata(output),
|
|
1953
1953
|
});
|
|
1954
|
-
await collectBody(output.body, context);
|
|
1954
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1955
1955
|
return contents;
|
|
1956
1956
|
};
|
|
1957
1957
|
exports.de_StartApplicationCommand = de_StartApplicationCommand;
|
|
@@ -2045,7 +2045,7 @@ const de_StopApplicationCommand = async (output, context) => {
|
|
|
2045
2045
|
const contents = (0, smithy_client_1.map)({
|
|
2046
2046
|
$metadata: deserializeMetadata(output),
|
|
2047
2047
|
});
|
|
2048
|
-
await collectBody(output.body, context);
|
|
2048
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2049
2049
|
return contents;
|
|
2050
2050
|
};
|
|
2051
2051
|
exports.de_StopApplicationCommand = de_StopApplicationCommand;
|
|
@@ -2090,7 +2090,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
2090
2090
|
const contents = (0, smithy_client_1.map)({
|
|
2091
2091
|
$metadata: deserializeMetadata(output),
|
|
2092
2092
|
});
|
|
2093
|
-
await collectBody(output.body, context);
|
|
2093
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2094
2094
|
return contents;
|
|
2095
2095
|
};
|
|
2096
2096
|
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
@@ -2135,7 +2135,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
2135
2135
|
const contents = (0, smithy_client_1.map)({
|
|
2136
2136
|
$metadata: deserializeMetadata(output),
|
|
2137
2137
|
});
|
|
2138
|
-
await collectBody(output.body, context);
|
|
2138
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2139
2139
|
return contents;
|
|
2140
2140
|
};
|
|
2141
2141
|
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
@@ -2582,13 +2582,7 @@ const deserializeMetadata = (output) => ({
|
|
|
2582
2582
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2583
2583
|
cfId: output.headers["x-amz-cf-id"],
|
|
2584
2584
|
});
|
|
2585
|
-
const
|
|
2586
|
-
if (streamBody instanceof Uint8Array) {
|
|
2587
|
-
return Promise.resolve(streamBody);
|
|
2588
|
-
}
|
|
2589
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2590
|
-
};
|
|
2591
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2585
|
+
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2592
2586
|
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
2593
2587
|
value !== null &&
|
|
2594
2588
|
value !== "" &&
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
1
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { M2ServiceException as __BaseException } from "../models/M2ServiceException";
|
|
@@ -2514,12 +2514,6 @@ const deserializeMetadata = (output) => ({
|
|
|
2514
2514
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2515
2515
|
cfId: output.headers["x-amz-cf-id"],
|
|
2516
2516
|
});
|
|
2517
|
-
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
2518
|
-
if (streamBody instanceof Uint8Array) {
|
|
2519
|
-
return Promise.resolve(streamBody);
|
|
2520
|
-
}
|
|
2521
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2522
|
-
};
|
|
2523
2517
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2524
2518
|
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
2525
2519
|
value !== null &&
|
package/dist-types/M2Client.d.ts
CHANGED
|
@@ -105,7 +105,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
105
105
|
*/
|
|
106
106
|
runtime?: string;
|
|
107
107
|
/**
|
|
108
|
-
* Disable
|
|
108
|
+
* Disable dynamically changing the endpoint of the client based on the hostPrefix
|
|
109
109
|
* trait of an operation.
|
|
110
110
|
*/
|
|
111
111
|
disableHostPrefix?: boolean;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-m2",
|
|
3
3
|
"description": "AWS SDK for JavaScript M2 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",
|