@cdklabs/cdk-ecs-codedeploy 0.0.259 → 0.0.261
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 +3 -3
- package/.jsii.tabl.json +1 -1
- 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.js +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.d.ts +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.native.d.ts +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/package.json +38 -38
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.native.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sso/package.json +35 -35
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.native.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +37 -37
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.native.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sts/package.json +36 -36
- package/node_modules/@aws-sdk/core/CHANGELOG.md +8 -0
- package/node_modules/@aws-sdk/core/package.json +6 -6
- package/node_modules/@aws-sdk/core/tsconfig.cjs.tsbuildinfo +1 -1
- package/node_modules/@aws-sdk/core/tsconfig.es.tsbuildinfo +1 -1
- package/node_modules/@aws-sdk/core/tsconfig.types.tsbuildinfo +1 -1
- package/node_modules/@aws-sdk/credential-provider-env/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-http/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +11 -11
- package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-process/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +5 -5
- package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +5 -5
- package/node_modules/@aws-sdk/region-config-resolver/package.json +5 -5
- package/node_modules/@aws-sdk/token-providers/package.json +6 -6
- package/node_modules/@aws-sdk/types/package.json +2 -2
- package/node_modules/@aws-sdk/util-endpoints/package.json +4 -4
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +4 -4
- package/node_modules/@smithy/core/package.json +3 -3
- package/node_modules/@smithy/fetch-http-handler/package.json +2 -2
- package/node_modules/@smithy/middleware-retry/package.json +2 -2
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +14 -3
- package/node_modules/@smithy/node-http-handler/dist-es/server.mock.js +30 -0
- package/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +16 -4
- package/node_modules/@smithy/node-http-handler/dist-types/server.mock.d.ts +2 -0
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/server.mock.d.ts +2 -0
- package/node_modules/@smithy/node-http-handler/package.json +1 -1
- package/node_modules/@smithy/smithy-client/package.json +2 -2
- package/node_modules/@smithy/util-base64/dist-cjs/toBase64.browser.js +5 -1
- package/node_modules/@smithy/util-base64/dist-es/toBase64.browser.js +5 -1
- package/node_modules/@smithy/util-base64/package.json +1 -1
- package/node_modules/@smithy/util-body-length-node/dist-cjs/index.js +1 -1
- package/node_modules/@smithy/util-body-length-node/dist-es/calculateBodyLength.js +1 -1
- package/node_modules/@smithy/util-body-length-node/package.json +1 -1
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
- package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
- package/node_modules/@smithy/util-stream/package.json +4 -4
- package/package.json +5 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-user-agent",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.533.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline middleware-user-agent",
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
},
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@aws-sdk/types": "3.
|
|
26
|
-
"@aws-sdk/util-endpoints": "3.
|
|
27
|
-
"@smithy/protocol-http": "^3.2.
|
|
28
|
-
"@smithy/types": "^2.
|
|
25
|
+
"@aws-sdk/types": "3.533.0",
|
|
26
|
+
"@aws-sdk/util-endpoints": "3.533.0",
|
|
27
|
+
"@smithy/protocol-http": "^3.2.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": "@aws-sdk/region-config-resolver",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.533.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline region-config-resolver",
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
},
|
|
22
22
|
"license": "Apache-2.0",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@aws-sdk/types": "3.
|
|
25
|
-
"@smithy/node-config-provider": "^2.2.
|
|
26
|
-
"@smithy/types": "^2.
|
|
24
|
+
"@aws-sdk/types": "3.533.0",
|
|
25
|
+
"@smithy/node-config-provider": "^2.2.5",
|
|
26
|
+
"@smithy/types": "^2.11.0",
|
|
27
27
|
"@smithy/util-config-provider": "^2.2.1",
|
|
28
|
-
"@smithy/util-middleware": "^2.1.
|
|
28
|
+
"@smithy/util-middleware": "^2.1.4",
|
|
29
29
|
"tslib": "^2.5.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/token-providers",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.533.0",
|
|
4
4
|
"description": "A collection of token providers",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
},
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
30
|
-
"@aws-sdk/types": "3.
|
|
31
|
-
"@smithy/property-provider": "^2.1.
|
|
32
|
-
"@smithy/shared-ini-file-loader": "^2.3.
|
|
33
|
-
"@smithy/types": "^2.
|
|
29
|
+
"@aws-sdk/client-sso-oidc": "3.533.0",
|
|
30
|
+
"@aws-sdk/types": "3.533.0",
|
|
31
|
+
"@smithy/property-provider": "^2.1.4",
|
|
32
|
+
"@smithy/shared-ini-file-loader": "^2.3.5",
|
|
33
|
+
"@smithy/types": "^2.11.0",
|
|
34
34
|
"tslib": "^2.5.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/types",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.533.0",
|
|
4
4
|
"main": "./dist-cjs/index.js",
|
|
5
5
|
"module": "./dist-es/index.js",
|
|
6
6
|
"types": "./dist-types/index.d.ts",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"directory": "packages/types"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@smithy/types": "^2.
|
|
44
|
+
"@smithy/types": "^2.11.0",
|
|
45
45
|
"tslib": "^2.5.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/util-endpoints",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.533.0",
|
|
4
4
|
"description": "Utilities to help with endpoint resolution",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
},
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@aws-sdk/types": "3.
|
|
26
|
-
"@smithy/types": "^2.
|
|
27
|
-
"@smithy/util-endpoints": "^1.1.
|
|
25
|
+
"@aws-sdk/types": "3.533.0",
|
|
26
|
+
"@smithy/types": "^2.11.0",
|
|
27
|
+
"@smithy/util-endpoints": "^1.1.5",
|
|
28
28
|
"tslib": "^2.5.0"
|
|
29
29
|
},
|
|
30
30
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/util-user-agent-browser",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.533.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline util-user-agent-browser",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"license": "Apache-2.0",
|
|
23
23
|
"react-native": "dist-es/index.native.js",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@aws-sdk/types": "3.
|
|
26
|
-
"@smithy/types": "^2.
|
|
25
|
+
"@aws-sdk/types": "3.533.0",
|
|
26
|
+
"@smithy/types": "^2.11.0",
|
|
27
27
|
"bowser": "^2.11.0",
|
|
28
28
|
"tslib": "^2.5.0"
|
|
29
29
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/util-user-agent-node",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.533.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline util-user-agent-node",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
},
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@aws-sdk/types": "3.
|
|
24
|
-
"@smithy/node-config-provider": "^2.2.
|
|
25
|
-
"@smithy/types": "^2.
|
|
23
|
+
"@aws-sdk/types": "3.533.0",
|
|
24
|
+
"@smithy/node-config-provider": "^2.2.5",
|
|
25
|
+
"@smithy/types": "^2.11.0",
|
|
26
26
|
"tslib": "^2.5.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/core",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.8",
|
|
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",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@smithy/middleware-endpoint": "^2.4.6",
|
|
27
|
-
"@smithy/middleware-retry": "^2.1.
|
|
27
|
+
"@smithy/middleware-retry": "^2.1.7",
|
|
28
28
|
"@smithy/middleware-serde": "^2.2.1",
|
|
29
29
|
"@smithy/protocol-http": "^3.2.2",
|
|
30
|
-
"@smithy/smithy-client": "^2.4.
|
|
30
|
+
"@smithy/smithy-client": "^2.4.5",
|
|
31
31
|
"@smithy/types": "^2.11.0",
|
|
32
32
|
"@smithy/util-middleware": "^2.1.4",
|
|
33
33
|
"tslib": "^2.5.0"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/fetch-http-handler",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.5",
|
|
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'",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@smithy/protocol-http": "^3.2.2",
|
|
28
28
|
"@smithy/querystring-builder": "^2.1.4",
|
|
29
29
|
"@smithy/types": "^2.11.0",
|
|
30
|
-
"@smithy/util-base64": "^2.2.
|
|
30
|
+
"@smithy/util-base64": "^2.2.1",
|
|
31
31
|
"tslib": "^2.5.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-retry",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.7",
|
|
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",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@smithy/node-config-provider": "^2.2.5",
|
|
35
35
|
"@smithy/protocol-http": "^3.2.2",
|
|
36
36
|
"@smithy/service-error-classification": "^2.1.4",
|
|
37
|
-
"@smithy/smithy-client": "^2.4.
|
|
37
|
+
"@smithy/smithy-client": "^2.4.5",
|
|
38
38
|
"@smithy/types": "^2.11.0",
|
|
39
39
|
"@smithy/util-middleware": "^2.1.4",
|
|
40
40
|
"@smithy/util-retry": "^2.1.4",
|
|
@@ -132,11 +132,22 @@ __name(writeRequestBody, "writeRequestBody");
|
|
|
132
132
|
function writeBody(httpRequest, body) {
|
|
133
133
|
if (body instanceof import_stream.Readable) {
|
|
134
134
|
body.pipe(httpRequest);
|
|
135
|
-
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
if (body) {
|
|
138
|
+
if (Buffer.isBuffer(body) || typeof body === "string") {
|
|
139
|
+
httpRequest.end(body);
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
const uint8 = body;
|
|
143
|
+
if (typeof uint8 === "object" && uint8.buffer && typeof uint8.byteOffset === "number" && typeof uint8.byteLength === "number") {
|
|
144
|
+
httpRequest.end(Buffer.from(uint8.buffer, uint8.byteOffset, uint8.byteLength));
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
136
147
|
httpRequest.end(Buffer.from(body));
|
|
137
|
-
|
|
138
|
-
httpRequest.end();
|
|
148
|
+
return;
|
|
139
149
|
}
|
|
150
|
+
httpRequest.end();
|
|
140
151
|
}
|
|
141
152
|
__name(writeBody, "writeBody");
|
|
142
153
|
|
|
@@ -49,3 +49,33 @@ export const createMockHttp2Server = () => {
|
|
|
49
49
|
const server = createHttp2Server();
|
|
50
50
|
return server;
|
|
51
51
|
};
|
|
52
|
+
export const createMirrorResponseFunction = (httpResp) => (request, response) => {
|
|
53
|
+
const bufs = [];
|
|
54
|
+
request.on("data", (chunk) => {
|
|
55
|
+
bufs.push(chunk);
|
|
56
|
+
});
|
|
57
|
+
request.on("end", () => {
|
|
58
|
+
response.statusCode = httpResp.statusCode;
|
|
59
|
+
setResponseHeaders(response, httpResp.headers);
|
|
60
|
+
setResponseBody(response, Buffer.concat(bufs));
|
|
61
|
+
});
|
|
62
|
+
request.on("error", (err) => {
|
|
63
|
+
response.statusCode = 500;
|
|
64
|
+
setResponseHeaders(response, httpResp.headers);
|
|
65
|
+
setResponseBody(response, err.message);
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
export const getResponseBody = (response) => {
|
|
69
|
+
return new Promise((resolve, reject) => {
|
|
70
|
+
const bufs = [];
|
|
71
|
+
response.body.on("data", function (d) {
|
|
72
|
+
bufs.push(d);
|
|
73
|
+
});
|
|
74
|
+
response.body.on("end", function () {
|
|
75
|
+
resolve(Buffer.concat(bufs).toString());
|
|
76
|
+
});
|
|
77
|
+
response.body.on("error", (err) => {
|
|
78
|
+
reject(err);
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
};
|
|
@@ -30,11 +30,23 @@ export async function writeRequestBody(httpRequest, request, maxContinueTimeoutM
|
|
|
30
30
|
function writeBody(httpRequest, body) {
|
|
31
31
|
if (body instanceof Readable) {
|
|
32
32
|
body.pipe(httpRequest);
|
|
33
|
+
return;
|
|
33
34
|
}
|
|
34
|
-
|
|
35
|
+
if (body) {
|
|
36
|
+
if (Buffer.isBuffer(body) || typeof body === "string") {
|
|
37
|
+
httpRequest.end(body);
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
const uint8 = body;
|
|
41
|
+
if (typeof uint8 === "object" &&
|
|
42
|
+
uint8.buffer &&
|
|
43
|
+
typeof uint8.byteOffset === "number" &&
|
|
44
|
+
typeof uint8.byteLength === "number") {
|
|
45
|
+
httpRequest.end(Buffer.from(uint8.buffer, uint8.byteOffset, uint8.byteLength));
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
35
48
|
httpRequest.end(Buffer.from(body));
|
|
49
|
+
return;
|
|
36
50
|
}
|
|
37
|
-
|
|
38
|
-
httpRequest.end();
|
|
39
|
-
}
|
|
51
|
+
httpRequest.end();
|
|
40
52
|
}
|
|
@@ -8,3 +8,5 @@ export declare const createContinueResponseFunction: (httpResp: HttpResponse) =>
|
|
|
8
8
|
export declare const createMockHttpsServer: () => HttpsServer;
|
|
9
9
|
export declare const createMockHttpServer: () => HttpServer;
|
|
10
10
|
export declare const createMockHttp2Server: () => Http2Server;
|
|
11
|
+
export declare const createMirrorResponseFunction: (httpResp: HttpResponse) => (request: IncomingMessage, response: ServerResponse) => void;
|
|
12
|
+
export declare const getResponseBody: (response: HttpResponse) => Promise<string>;
|
|
@@ -8,3 +8,5 @@ export declare const createContinueResponseFunction: (httpResp: HttpResponse) =>
|
|
|
8
8
|
export declare const createMockHttpsServer: () => HttpsServer;
|
|
9
9
|
export declare const createMockHttpServer: () => HttpServer;
|
|
10
10
|
export declare const createMockHttp2Server: () => Http2Server;
|
|
11
|
+
export declare const createMirrorResponseFunction: (httpResp: HttpResponse) => (request: IncomingMessage, response: ServerResponse) => void;
|
|
12
|
+
export declare const getResponseBody: (response: HttpResponse) => Promise<string>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/smithy-client",
|
|
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 smithy-client",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@smithy/middleware-stack": "^2.1.4",
|
|
28
28
|
"@smithy/protocol-http": "^3.2.2",
|
|
29
29
|
"@smithy/types": "^2.11.0",
|
|
30
|
-
"@smithy/util-stream": "^2.1.
|
|
30
|
+
"@smithy/util-stream": "^2.1.5",
|
|
31
31
|
"tslib": "^2.5.0"
|
|
32
32
|
},
|
|
33
33
|
"engines": {
|
|
@@ -11,7 +11,11 @@ function toBase64(_input) {
|
|
|
11
11
|
else {
|
|
12
12
|
input = _input;
|
|
13
13
|
}
|
|
14
|
-
|
|
14
|
+
const isArrayLike = typeof input === "object" && typeof input.length === "number";
|
|
15
|
+
const isUint8Array = typeof input === "object" &&
|
|
16
|
+
typeof input.byteOffset === "number" &&
|
|
17
|
+
typeof input.byteLength === "number";
|
|
18
|
+
if (!isArrayLike && !isUint8Array) {
|
|
15
19
|
throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");
|
|
16
20
|
}
|
|
17
21
|
let str = "";
|
|
@@ -8,7 +8,11 @@ export function toBase64(_input) {
|
|
|
8
8
|
else {
|
|
9
9
|
input = _input;
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
const isArrayLike = typeof input === "object" && typeof input.length === "number";
|
|
12
|
+
const isUint8Array = typeof input === "object" &&
|
|
13
|
+
typeof input.byteOffset === "number" &&
|
|
14
|
+
typeof input.byteLength === "number";
|
|
15
|
+
if (!isArrayLike && !isUint8Array) {
|
|
12
16
|
throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");
|
|
13
17
|
}
|
|
14
18
|
let str = "";
|
|
@@ -31,7 +31,7 @@ var calculateBodyLength = /* @__PURE__ */ __name((body) => {
|
|
|
31
31
|
return 0;
|
|
32
32
|
}
|
|
33
33
|
if (typeof body === "string") {
|
|
34
|
-
return Buffer.
|
|
34
|
+
return Buffer.byteLength(body);
|
|
35
35
|
} else if (typeof body.byteLength === "number") {
|
|
36
36
|
return body.byteLength;
|
|
37
37
|
} else if (typeof body.size === "number") {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-body-length-node",
|
|
3
3
|
"description": "Determines the length of a request body in node.js",
|
|
4
|
-
"version": "2.2.
|
|
4
|
+
"version": "2.2.2",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
7
7
|
"build:cjs": "node ../../scripts/inline util-body-length-node",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-defaults-mode-browser",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.7",
|
|
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 util-defaults-mode-browser",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@smithy/property-provider": "^2.1.4",
|
|
26
|
-
"@smithy/smithy-client": "^2.4.
|
|
26
|
+
"@smithy/smithy-client": "^2.4.5",
|
|
27
27
|
"@smithy/types": "^2.11.0",
|
|
28
28
|
"bowser": "^2.11.0",
|
|
29
29
|
"tslib": "^2.5.0"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-defaults-mode-node",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.7",
|
|
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 util-defaults-mode-node",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@smithy/credential-provider-imds": "^2.2.6",
|
|
27
27
|
"@smithy/node-config-provider": "^2.2.5",
|
|
28
28
|
"@smithy/property-provider": "^2.1.4",
|
|
29
|
-
"@smithy/smithy-client": "^2.4.
|
|
29
|
+
"@smithy/smithy-client": "^2.4.5",
|
|
30
30
|
"@smithy/types": "^2.11.0",
|
|
31
31
|
"tslib": "^2.5.0"
|
|
32
32
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-stream",
|
|
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 util-stream",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@smithy/fetch-http-handler": "^2.4.
|
|
28
|
-
"@smithy/node-http-handler": "^2.4.
|
|
27
|
+
"@smithy/fetch-http-handler": "^2.4.5",
|
|
28
|
+
"@smithy/node-http-handler": "^2.4.3",
|
|
29
29
|
"@smithy/types": "^2.11.0",
|
|
30
|
-
"@smithy/util-base64": "^2.2.
|
|
30
|
+
"@smithy/util-base64": "^2.2.1",
|
|
31
31
|
"@smithy/util-buffer-from": "^2.1.1",
|
|
32
32
|
"@smithy/util-hex-encoding": "^2.1.1",
|
|
33
33
|
"@smithy/util-utf8": "^2.2.0",
|
package/package.json
CHANGED
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"aws-cdk-lib": "2.131.0",
|
|
84
84
|
"aws-sdk-client-mock": "^3.0.1",
|
|
85
85
|
"aws-sdk-client-mock-jest": "^3.0.1",
|
|
86
|
-
"cdk-nag": "^2.28.
|
|
86
|
+
"cdk-nag": "^2.28.62",
|
|
87
87
|
"cdklabs-projen-project-types": "^0.1.190",
|
|
88
88
|
"constructs": "10.0.5",
|
|
89
89
|
"esbuild": "^0.20.1",
|
|
@@ -96,9 +96,9 @@
|
|
|
96
96
|
"jsii-diff": "^1.95.0",
|
|
97
97
|
"jsii-docgen": "^7.2.9",
|
|
98
98
|
"jsii-pacmak": "^1.95.0",
|
|
99
|
-
"jsii-rosetta": "^5.3.
|
|
99
|
+
"jsii-rosetta": "^5.3.27",
|
|
100
100
|
"lambda-tester": "^4.0.1",
|
|
101
|
-
"projen": "0.80.
|
|
101
|
+
"projen": "0.80.10",
|
|
102
102
|
"standard-version": "^9",
|
|
103
103
|
"ts-jest": "^27",
|
|
104
104
|
"ts-node": "^10.9.2",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"constructs": "^10.0.5"
|
|
110
110
|
},
|
|
111
111
|
"dependencies": {
|
|
112
|
-
"@aws-sdk/client-codedeploy": "^3.
|
|
112
|
+
"@aws-sdk/client-codedeploy": "^3.533.0",
|
|
113
113
|
"jmespath": "^0.16.0"
|
|
114
114
|
},
|
|
115
115
|
"bundledDependencies": [
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"publishConfig": {
|
|
128
128
|
"access": "public"
|
|
129
129
|
},
|
|
130
|
-
"version": "0.0.
|
|
130
|
+
"version": "0.0.261",
|
|
131
131
|
"jest": {
|
|
132
132
|
"testMatch": [
|
|
133
133
|
"<rootDir>/src/**/__tests__/**/*.ts?(x)",
|