@cdklabs/cdk-ecs-codedeploy 0.0.255 → 0.0.257
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/.jsii +49 -13
- package/.jsii.tabl.json +1 -1
- package/API.md +28 -0
- package/lib/api-canary/index.js +1 -1
- package/lib/ecs-appspec/index.js +1 -1
- package/lib/ecs-deployment/index.js +1 -1
- package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.d.ts +12 -0
- package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +6 -3
- package/node_modules/@smithy/abort-controller/package.json +2 -2
- package/node_modules/@smithy/config-resolver/package.json +4 -4
- package/node_modules/@smithy/core/package.json +8 -8
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +11 -1
- package/node_modules/@smithy/credential-provider-imds/dist-es/index.js +1 -0
- package/node_modules/@smithy/credential-provider-imds/dist-es/utils/getExtendedInstanceMetadataCredentials.js +1 -1
- package/node_modules/@smithy/credential-provider-imds/dist-types/index.d.ts +4 -0
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/index.d.ts +4 -0
- package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
- package/node_modules/@smithy/eventstream-codec/package.json +3 -3
- package/node_modules/@smithy/fetch-http-handler/package.json +6 -6
- package/node_modules/@smithy/hash-node/package.json +3 -3
- package/node_modules/@smithy/invalid-dependency/package.json +2 -2
- package/node_modules/@smithy/middleware-content-length/package.json +4 -4
- package/node_modules/@smithy/middleware-endpoint/package.json +7 -7
- package/node_modules/@smithy/middleware-retry/package.json +9 -9
- package/node_modules/@smithy/middleware-serde/dist-cjs/index.js +5 -0
- package/node_modules/@smithy/middleware-serde/dist-es/deserializerMiddleware.js +5 -0
- package/node_modules/@smithy/middleware-serde/dist-types/deserializerMiddleware.d.ts +7 -2
- package/node_modules/@smithy/middleware-serde/dist-types/serdePlugin.d.ts +7 -2
- package/node_modules/@smithy/middleware-serde/dist-types/serializerMiddleware.d.ts +7 -2
- package/node_modules/@smithy/middleware-serde/dist-types/ts3.4/deserializerMiddleware.d.ts +7 -2
- package/node_modules/@smithy/middleware-serde/dist-types/ts3.4/serdePlugin.d.ts +7 -2
- package/node_modules/@smithy/middleware-serde/dist-types/ts3.4/serializerMiddleware.d.ts +7 -2
- package/node_modules/@smithy/middleware-serde/package.json +3 -3
- package/node_modules/@smithy/middleware-stack/package.json +2 -2
- package/node_modules/@smithy/node-config-provider/package.json +4 -4
- package/node_modules/@smithy/node-http-handler/package.json +5 -5
- package/node_modules/@smithy/property-provider/package.json +2 -2
- package/node_modules/@smithy/protocol-http/package.json +2 -2
- package/node_modules/@smithy/querystring-builder/package.json +2 -2
- package/node_modules/@smithy/querystring-parser/package.json +2 -2
- package/node_modules/@smithy/service-error-classification/package.json +2 -2
- package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
- package/node_modules/@smithy/signature-v4/package.json +6 -6
- package/node_modules/@smithy/smithy-client/package.json +6 -6
- package/node_modules/@smithy/types/dist-types/serde.d.ts +10 -3
- package/node_modules/@smithy/types/dist-types/ts3.4/serde.d.ts +10 -3
- package/node_modules/@smithy/types/dist-types/ts3.4/util.d.ts +15 -7
- package/node_modules/@smithy/types/dist-types/util.d.ts +15 -7
- package/node_modules/@smithy/types/package.json +1 -1
- package/node_modules/@smithy/url-parser/package.json +3 -3
- package/node_modules/@smithy/util-base64/dist-cjs/toBase64.browser.js +12 -1
- package/node_modules/@smithy/util-base64/dist-cjs/toBase64.js +14 -1
- package/node_modules/@smithy/util-base64/dist-es/toBase64.browser.js +12 -1
- package/node_modules/@smithy/util-base64/dist-es/toBase64.js +14 -1
- package/node_modules/@smithy/util-base64/dist-types/toBase64.browser.d.ts +4 -3
- package/node_modules/@smithy/util-base64/dist-types/toBase64.d.ts +4 -3
- package/node_modules/@smithy/util-base64/dist-types/ts3.4/toBase64.browser.d.ts +4 -3
- package/node_modules/@smithy/util-base64/dist-types/ts3.4/toBase64.d.ts +4 -3
- package/node_modules/@smithy/util-base64/package.json +2 -1
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
- package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
- package/node_modules/@smithy/util-endpoints/package.json +3 -3
- package/node_modules/@smithy/util-middleware/package.json +2 -2
- package/node_modules/@smithy/util-retry/package.json +3 -3
- package/node_modules/@smithy/util-stream/package.json +7 -7
- package/node_modules/@smithy/util-utf8/dist-cjs/index.js +9 -1
- package/node_modules/@smithy/util-utf8/dist-es/toUtf8.browser.js +9 -1
- package/node_modules/@smithy/util-utf8/dist-es/toUtf8.js +9 -1
- package/node_modules/@smithy/util-utf8/dist-types/toUtf8.browser.d.ts +7 -1
- package/node_modules/@smithy/util-utf8/dist-types/toUtf8.d.ts +7 -1
- package/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUtf8.browser.d.ts +7 -1
- package/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUtf8.d.ts +7 -1
- package/node_modules/@smithy/util-utf8/package.json +1 -1
- package/node_modules/@smithy/util-waiter/package.json +3 -3
- package/package.json +8 -8
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/core",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.6",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline core",
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@smithy/middleware-endpoint": "^2.4.
|
|
27
|
-
"@smithy/middleware-retry": "^2.1.
|
|
28
|
-
"@smithy/middleware-serde": "^2.
|
|
29
|
-
"@smithy/protocol-http": "^3.2.
|
|
30
|
-
"@smithy/smithy-client": "^2.4.
|
|
31
|
-
"@smithy/types": "^2.
|
|
32
|
-
"@smithy/util-middleware": "^2.1.
|
|
26
|
+
"@smithy/middleware-endpoint": "^2.4.5",
|
|
27
|
+
"@smithy/middleware-retry": "^2.1.5",
|
|
28
|
+
"@smithy/middleware-serde": "^2.2.0",
|
|
29
|
+
"@smithy/protocol-http": "^3.2.2",
|
|
30
|
+
"@smithy/smithy-client": "^2.4.3",
|
|
31
|
+
"@smithy/types": "^2.11.0",
|
|
32
|
+
"@smithy/util-middleware": "^2.1.4",
|
|
33
33
|
"tslib": "^2.5.0"
|
|
34
34
|
},
|
|
35
35
|
"engines": {
|
|
@@ -25,6 +25,7 @@ __export(src_exports, {
|
|
|
25
25
|
ENV_CMDS_AUTH_TOKEN: () => ENV_CMDS_AUTH_TOKEN,
|
|
26
26
|
ENV_CMDS_FULL_URI: () => ENV_CMDS_FULL_URI,
|
|
27
27
|
ENV_CMDS_RELATIVE_URI: () => ENV_CMDS_RELATIVE_URI,
|
|
28
|
+
Endpoint: () => Endpoint,
|
|
28
29
|
fromContainerMetadata: () => fromContainerMetadata,
|
|
29
30
|
fromInstanceMetadata: () => fromInstanceMetadata,
|
|
30
31
|
getInstanceMetadataEndpoint: () => getInstanceMetadataEndpoint,
|
|
@@ -197,6 +198,13 @@ var InstanceMetadataV1FallbackError = _InstanceMetadataV1FallbackError;
|
|
|
197
198
|
var import_node_config_provider = require("@smithy/node-config-provider");
|
|
198
199
|
var import_url_parser = require("@smithy/url-parser");
|
|
199
200
|
|
|
201
|
+
// src/config/Endpoint.ts
|
|
202
|
+
var Endpoint = /* @__PURE__ */ ((Endpoint2) => {
|
|
203
|
+
Endpoint2["IPv4"] = "http://169.254.169.254";
|
|
204
|
+
Endpoint2["IPv6"] = "http://[fd00:ec2::254]";
|
|
205
|
+
return Endpoint2;
|
|
206
|
+
})(Endpoint || {});
|
|
207
|
+
|
|
200
208
|
// src/config/EndpointConfigOptions.ts
|
|
201
209
|
var ENV_ENDPOINT_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT";
|
|
202
210
|
var CONFIG_ENDPOINT_NAME = "ec2_metadata_service_endpoint";
|
|
@@ -245,7 +253,8 @@ var getExtendedInstanceMetadataCredentials = /* @__PURE__ */ __name((credentials
|
|
|
245
253
|
const refreshInterval = STATIC_STABILITY_REFRESH_INTERVAL_SECONDS + Math.floor(Math.random() * STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS);
|
|
246
254
|
const newExpiration = new Date(Date.now() + refreshInterval * 1e3);
|
|
247
255
|
logger.warn(
|
|
248
|
-
|
|
256
|
+
`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(newExpiration)}.
|
|
257
|
+
For more information, please visit: ` + STATIC_STABILITY_DOC_URL
|
|
249
258
|
);
|
|
250
259
|
const originalExpiration = credentials.originalExpiration ?? credentials.expiration;
|
|
251
260
|
return {
|
|
@@ -415,6 +424,7 @@ var getCredentialsFromProfile = /* @__PURE__ */ __name(async (profile, options)
|
|
|
415
424
|
0 && (module.exports = {
|
|
416
425
|
httpRequest,
|
|
417
426
|
getInstanceMetadataEndpoint,
|
|
427
|
+
Endpoint,
|
|
418
428
|
ENV_CMDS_FULL_URI,
|
|
419
429
|
ENV_CMDS_RELATIVE_URI,
|
|
420
430
|
ENV_CMDS_AUTH_TOKEN,
|
|
@@ -6,7 +6,7 @@ export const getExtendedInstanceMetadataCredentials = (credentials, logger) => {
|
|
|
6
6
|
Math.floor(Math.random() * STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS);
|
|
7
7
|
const newExpiration = new Date(Date.now() + refreshInterval * 1000);
|
|
8
8
|
logger.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these " +
|
|
9
|
-
|
|
9
|
+
`credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: ` +
|
|
10
10
|
STATIC_STABILITY_DOC_URL);
|
|
11
11
|
const originalExpiration = credentials.originalExpiration ?? credentials.expiration;
|
|
12
12
|
return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/credential-provider-imds",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.6",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from the EC2 instance metadata service and ECS container metadata service",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
},
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@smithy/node-config-provider": "^2.2.
|
|
30
|
-
"@smithy/property-provider": "^2.1.
|
|
31
|
-
"@smithy/types": "^2.
|
|
32
|
-
"@smithy/url-parser": "^2.1.
|
|
29
|
+
"@smithy/node-config-provider": "^2.2.5",
|
|
30
|
+
"@smithy/property-provider": "^2.1.4",
|
|
31
|
+
"@smithy/types": "^2.11.0",
|
|
32
|
+
"@smithy/url-parser": "^2.1.4",
|
|
33
33
|
"tslib": "^2.5.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/eventstream-codec",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline eventstream-codec",
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@aws-crypto/crc32": "3.0.0",
|
|
26
|
-
"@smithy/types": "^2.
|
|
26
|
+
"@smithy/types": "^2.11.0",
|
|
27
27
|
"@smithy/util-hex-encoding": "^2.1.1",
|
|
28
28
|
"tslib": "^2.5.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@smithy/util-utf8": "^2.
|
|
31
|
+
"@smithy/util-utf8": "^2.2.0",
|
|
32
32
|
"@tsconfig/recommended": "1.0.1",
|
|
33
33
|
"@types/node": "^14.14.31",
|
|
34
34
|
"concurrently": "7.0.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/fetch-http-handler",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.4",
|
|
4
4
|
"description": "Provides a way to make requests",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
"module": "./dist-es/index.js",
|
|
25
25
|
"types": "./dist-types/index.d.ts",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@smithy/protocol-http": "^3.2.
|
|
28
|
-
"@smithy/querystring-builder": "^2.1.
|
|
29
|
-
"@smithy/types": "^2.
|
|
30
|
-
"@smithy/util-base64": "^2.
|
|
27
|
+
"@smithy/protocol-http": "^3.2.2",
|
|
28
|
+
"@smithy/querystring-builder": "^2.1.4",
|
|
29
|
+
"@smithy/types": "^2.11.0",
|
|
30
|
+
"@smithy/util-base64": "^2.2.0",
|
|
31
31
|
"tslib": "^2.5.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@smithy/abort-controller": "^2.1.
|
|
34
|
+
"@smithy/abort-controller": "^2.1.4",
|
|
35
35
|
"@tsconfig/recommended": "1.0.1",
|
|
36
36
|
"@types/chai-as-promised": "^7.1.2",
|
|
37
37
|
"chai": "^4.2.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/hash-node",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline hash-node",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"typedoc": "0.23.23"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@smithy/types": "^2.
|
|
34
|
+
"@smithy/types": "^2.11.0",
|
|
35
35
|
"@smithy/util-buffer-from": "^2.1.1",
|
|
36
|
-
"@smithy/util-utf8": "^2.
|
|
36
|
+
"@smithy/util-utf8": "^2.2.0",
|
|
37
37
|
"tslib": "^2.5.0"
|
|
38
38
|
},
|
|
39
39
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/invalid-dependency",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline invalid-dependency",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@smithy/types": "^2.
|
|
25
|
+
"@smithy/types": "^2.11.0",
|
|
26
26
|
"tslib": "^2.5.0"
|
|
27
27
|
},
|
|
28
28
|
"typesVersions": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-content-length",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline middleware-content-length",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@smithy/protocol-http": "^3.2.
|
|
27
|
-
"@smithy/types": "^2.
|
|
26
|
+
"@smithy/protocol-http": "^3.2.2",
|
|
27
|
+
"@smithy/types": "^2.11.0",
|
|
28
28
|
"tslib": "^2.5.0"
|
|
29
29
|
},
|
|
30
30
|
"engines": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"directory": "packages/middleware-content-length"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@smithy/util-test": "^0.1.
|
|
50
|
+
"@smithy/util-test": "^0.1.17",
|
|
51
51
|
"@tsconfig/recommended": "1.0.1",
|
|
52
52
|
"concurrently": "7.0.0",
|
|
53
53
|
"downlevel-dts": "0.10.1",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-endpoint",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.5",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline middleware-endpoint",
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@smithy/middleware-serde": "^2.
|
|
27
|
-
"@smithy/node-config-provider": "^2.2.
|
|
28
|
-
"@smithy/shared-ini-file-loader": "^2.3.
|
|
29
|
-
"@smithy/types": "^2.
|
|
30
|
-
"@smithy/url-parser": "^2.1.
|
|
31
|
-
"@smithy/util-middleware": "^2.1.
|
|
26
|
+
"@smithy/middleware-serde": "^2.2.0",
|
|
27
|
+
"@smithy/node-config-provider": "^2.2.5",
|
|
28
|
+
"@smithy/shared-ini-file-loader": "^2.3.5",
|
|
29
|
+
"@smithy/types": "^2.11.0",
|
|
30
|
+
"@smithy/url-parser": "^2.1.4",
|
|
31
|
+
"@smithy/util-middleware": "^2.1.4",
|
|
32
32
|
"tslib": "^2.5.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-retry",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.5",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline middleware-retry",
|
|
@@ -31,18 +31,18 @@
|
|
|
31
31
|
},
|
|
32
32
|
"license": "Apache-2.0",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@smithy/node-config-provider": "^2.2.
|
|
35
|
-
"@smithy/protocol-http": "^3.2.
|
|
36
|
-
"@smithy/service-error-classification": "^2.1.
|
|
37
|
-
"@smithy/smithy-client": "^2.4.
|
|
38
|
-
"@smithy/types": "^2.
|
|
39
|
-
"@smithy/util-middleware": "^2.1.
|
|
40
|
-
"@smithy/util-retry": "^2.1.
|
|
34
|
+
"@smithy/node-config-provider": "^2.2.5",
|
|
35
|
+
"@smithy/protocol-http": "^3.2.2",
|
|
36
|
+
"@smithy/service-error-classification": "^2.1.4",
|
|
37
|
+
"@smithy/smithy-client": "^2.4.3",
|
|
38
|
+
"@smithy/types": "^2.11.0",
|
|
39
|
+
"@smithy/util-middleware": "^2.1.4",
|
|
40
|
+
"@smithy/util-retry": "^2.1.4",
|
|
41
41
|
"tslib": "^2.5.0",
|
|
42
42
|
"uuid": "^8.3.2"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@smithy/util-test": "^0.1.
|
|
45
|
+
"@smithy/util-test": "^0.1.17",
|
|
46
46
|
"@tsconfig/recommended": "1.0.1",
|
|
47
47
|
"@types/uuid": "^8.3.0",
|
|
48
48
|
"concurrently": "7.0.0",
|
|
@@ -44,6 +44,11 @@ var deserializerMiddleware = /* @__PURE__ */ __name((options, deserializer) => (
|
|
|
44
44
|
if (!("$metadata" in error)) {
|
|
45
45
|
const hint = `Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;
|
|
46
46
|
error.message += "\n " + hint;
|
|
47
|
+
if (typeof error.$responseBodyText !== "undefined") {
|
|
48
|
+
if (error.$response) {
|
|
49
|
+
error.$response.body = error.$responseBodyText;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
47
52
|
}
|
|
48
53
|
throw error;
|
|
49
54
|
}
|
|
@@ -14,6 +14,11 @@ export const deserializerMiddleware = (options, deserializer) => (next, context)
|
|
|
14
14
|
if (!("$metadata" in error)) {
|
|
15
15
|
const hint = `Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;
|
|
16
16
|
error.message += "\n " + hint;
|
|
17
|
+
if (typeof error.$responseBodyText !== "undefined") {
|
|
18
|
+
if (error.$response) {
|
|
19
|
+
error.$response.body = error.$responseBodyText;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
17
22
|
}
|
|
18
23
|
throw error;
|
|
19
24
|
}
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
import { DeserializeMiddleware, ResponseDeserializer } from "@smithy/types";
|
|
2
|
-
|
|
1
|
+
import { DeserializeMiddleware, ResponseDeserializer, SerdeFunctions } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*
|
|
5
|
+
* 3rd type parameter is deprecated and unused.
|
|
6
|
+
*/
|
|
7
|
+
export declare const deserializerMiddleware: <Input extends object, Output extends object, _ = any>(options: SerdeFunctions, deserializer: ResponseDeserializer<any, any, SerdeFunctions>) => DeserializeMiddleware<Input, Output>;
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import { DeserializeHandlerOptions, Endpoint, EndpointBearer, MetadataBearer, Pluggable, Provider, RequestSerializer, ResponseDeserializer, SerializeHandlerOptions, UrlParser } from "@smithy/types";
|
|
1
|
+
import { DeserializeHandlerOptions, Endpoint, EndpointBearer, MetadataBearer, Pluggable, Provider, RequestSerializer, ResponseDeserializer, SerdeFunctions, SerializeHandlerOptions, UrlParser } from "@smithy/types";
|
|
2
2
|
export declare const deserializerMiddlewareOption: DeserializeHandlerOptions;
|
|
3
3
|
export declare const serializerMiddlewareOption: SerializeHandlerOptions;
|
|
4
4
|
export type V1OrV2Endpoint = {
|
|
5
5
|
urlParser?: UrlParser;
|
|
6
6
|
endpoint?: Provider<Endpoint>;
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
/**
|
|
9
|
+
* @internal
|
|
10
|
+
*
|
|
11
|
+
* Note: 2nd type parameter is deprecated and unused.
|
|
12
|
+
*/
|
|
13
|
+
export declare function getSerdePlugin<InputType extends object, _, OutputType extends MetadataBearer>(config: V1OrV2Endpoint & SerdeFunctions, serializer: RequestSerializer<any, SerdeFunctions & EndpointBearer>, deserializer: ResponseDeserializer<OutputType, any, SerdeFunctions>): Pluggable<InputType, OutputType>;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
import { EndpointBearer, RequestSerializer, SerializeMiddleware } from "@smithy/types";
|
|
1
|
+
import { EndpointBearer, RequestSerializer, SerdeFunctions, SerializeMiddleware } from "@smithy/types";
|
|
2
2
|
import type { V1OrV2Endpoint } from "./serdePlugin";
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*
|
|
6
|
+
* Note: 3rd type parameter is deprecated and unused.
|
|
7
|
+
*/
|
|
8
|
+
export declare const serializerMiddleware: <Input extends object, Output extends object, _>(options: V1OrV2Endpoint & SerdeFunctions, serializer: RequestSerializer<any, SerdeFunctions & EndpointBearer>) => SerializeMiddleware<Input, Output>;
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
import { DeserializeMiddleware, ResponseDeserializer } from "@smithy/types";
|
|
2
|
-
|
|
1
|
+
import { DeserializeMiddleware, ResponseDeserializer, SerdeFunctions } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*
|
|
5
|
+
* 3rd type parameter is deprecated and unused.
|
|
6
|
+
*/
|
|
7
|
+
export declare const deserializerMiddleware: <Input extends object, Output extends object, _ = any>(options: SerdeFunctions, deserializer: ResponseDeserializer<any, any, SerdeFunctions>) => DeserializeMiddleware<Input, Output>;
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import { DeserializeHandlerOptions, Endpoint, EndpointBearer, MetadataBearer, Pluggable, Provider, RequestSerializer, ResponseDeserializer, SerializeHandlerOptions, UrlParser } from "@smithy/types";
|
|
1
|
+
import { DeserializeHandlerOptions, Endpoint, EndpointBearer, MetadataBearer, Pluggable, Provider, RequestSerializer, ResponseDeserializer, SerdeFunctions, SerializeHandlerOptions, UrlParser } from "@smithy/types";
|
|
2
2
|
export declare const deserializerMiddlewareOption: DeserializeHandlerOptions;
|
|
3
3
|
export declare const serializerMiddlewareOption: SerializeHandlerOptions;
|
|
4
4
|
export type V1OrV2Endpoint = {
|
|
5
5
|
urlParser?: UrlParser;
|
|
6
6
|
endpoint?: Provider<Endpoint>;
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
/**
|
|
9
|
+
* @internal
|
|
10
|
+
*
|
|
11
|
+
* Note: 2nd type parameter is deprecated and unused.
|
|
12
|
+
*/
|
|
13
|
+
export declare function getSerdePlugin<InputType extends object, _, OutputType extends MetadataBearer>(config: V1OrV2Endpoint & SerdeFunctions, serializer: RequestSerializer<any, SerdeFunctions & EndpointBearer>, deserializer: ResponseDeserializer<OutputType, any, SerdeFunctions>): Pluggable<InputType, OutputType>;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
import { EndpointBearer, RequestSerializer, SerializeMiddleware } from "@smithy/types";
|
|
1
|
+
import { EndpointBearer, RequestSerializer, SerdeFunctions, SerializeMiddleware } from "@smithy/types";
|
|
2
2
|
import { V1OrV2Endpoint } from "./serdePlugin";
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*
|
|
6
|
+
* Note: 3rd type parameter is deprecated and unused.
|
|
7
|
+
*/
|
|
8
|
+
export declare const serializerMiddleware: <Input extends object, Output extends object, _>(options: V1OrV2Endpoint & SerdeFunctions, serializer: RequestSerializer<any, SerdeFunctions & EndpointBearer>) => SerializeMiddleware<Input, Output>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-serde",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline middleware-serde",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@smithy/types": "^2.
|
|
26
|
+
"@smithy/types": "^2.11.0",
|
|
27
27
|
"tslib": "^2.5.0"
|
|
28
28
|
},
|
|
29
29
|
"engines": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"directory": "packages/middleware-serde"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@smithy/util-test": "^0.1.
|
|
49
|
+
"@smithy/util-test": "^0.1.17",
|
|
50
50
|
"@tsconfig/recommended": "1.0.1",
|
|
51
51
|
"concurrently": "7.0.0",
|
|
52
52
|
"downlevel-dts": "0.10.1",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-stack",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
4
4
|
"description": "Provides a means for composing multiple middleware functions into a single handler",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"module": "./dist-es/index.js",
|
|
26
26
|
"types": "./dist-types/index.d.ts",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@smithy/types": "^2.
|
|
28
|
+
"@smithy/types": "^2.11.0",
|
|
29
29
|
"tslib": "^2.5.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/node-config-provider",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.5",
|
|
4
4
|
"description": "Load config default values from ini config files and environmental variable",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"module": "./dist-es/index.js",
|
|
25
25
|
"types": "./dist-types/index.d.ts",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@smithy/property-provider": "^2.1.
|
|
28
|
-
"@smithy/shared-ini-file-loader": "^2.3.
|
|
29
|
-
"@smithy/types": "^2.
|
|
27
|
+
"@smithy/property-provider": "^2.1.4",
|
|
28
|
+
"@smithy/shared-ini-file-loader": "^2.3.5",
|
|
29
|
+
"@smithy/types": "^2.11.0",
|
|
30
30
|
"tslib": "^2.5.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/node-http-handler",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.2",
|
|
4
4
|
"description": "Provides a way to make requests",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"module": "./dist-es/index.js",
|
|
26
26
|
"types": "./dist-types/index.d.ts",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@smithy/abort-controller": "^2.1.
|
|
29
|
-
"@smithy/protocol-http": "^3.2.
|
|
30
|
-
"@smithy/querystring-builder": "^2.1.
|
|
31
|
-
"@smithy/types": "^2.
|
|
28
|
+
"@smithy/abort-controller": "^2.1.4",
|
|
29
|
+
"@smithy/protocol-http": "^3.2.2",
|
|
30
|
+
"@smithy/querystring-builder": "^2.1.4",
|
|
31
|
+
"@smithy/types": "^2.11.0",
|
|
32
32
|
"tslib": "^2.5.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/property-provider",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline property-provider",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@smithy/types": "^2.
|
|
25
|
+
"@smithy/types": "^2.11.0",
|
|
26
26
|
"tslib": "^2.5.0"
|
|
27
27
|
},
|
|
28
28
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/protocol-http",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.2",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline protocol-http",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@smithy/types": "^2.
|
|
26
|
+
"@smithy/types": "^2.11.0",
|
|
27
27
|
"tslib": "^2.5.0"
|
|
28
28
|
},
|
|
29
29
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/querystring-builder",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline querystring-builder",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@smithy/types": "^2.
|
|
25
|
+
"@smithy/types": "^2.11.0",
|
|
26
26
|
"@smithy/util-uri-escape": "^2.1.1",
|
|
27
27
|
"tslib": "^2.5.0"
|
|
28
28
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/querystring-parser",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline querystring-parser",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@smithy/types": "^2.
|
|
25
|
+
"@smithy/types": "^2.11.0",
|
|
26
26
|
"tslib": "^2.5.0"
|
|
27
27
|
},
|
|
28
28
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/service-error-classification",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline service-error-classification",
|
|
@@ -54,6 +54,6 @@
|
|
|
54
54
|
"directory": ".release/package"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@smithy/types": "^2.
|
|
57
|
+
"@smithy/types": "^2.11.0"
|
|
58
58
|
}
|
|
59
59
|
}
|