@cdklabs/cdk-ecs-codedeploy 0.0.258 → 0.0.260
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-cjs/index.js +40 -80
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/protocols/Aws_json1_1.js +1 -40
- package/node_modules/@aws-sdk/client-codedeploy/package.json +4 -4
- package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +6 -46
- package/node_modules/@aws-sdk/client-sso/dist-es/protocols/Aws_restJson1.js +1 -40
- package/node_modules/@aws-sdk/client-sso/package.json +2 -2
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js +7 -47
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/protocols/Aws_restJson1.js +1 -40
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +4 -4
- package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +10 -43
- package/node_modules/@aws-sdk/client-sts/dist-es/protocols/Aws_query.js +2 -34
- package/node_modules/@aws-sdk/client-sts/package.json +3 -4
- package/node_modules/@aws-sdk/core/CHANGELOG.md +19 -0
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +126 -1
- package/node_modules/@aws-sdk/core/dist-cjs/protocols/common.js +1 -0
- package/node_modules/@aws-sdk/core/dist-cjs/protocols/json/parseJsonBody.js +1 -0
- package/node_modules/@aws-sdk/core/dist-cjs/protocols/xml/parseXmlBody.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/protocols/common.js +2 -0
- package/node_modules/@aws-sdk/core/dist-es/protocols/index.js +2 -0
- package/node_modules/@aws-sdk/core/dist-es/protocols/json/parseJsonBody.js +51 -0
- package/node_modules/@aws-sdk/core/dist-es/protocols/xml/parseXmlBody.js +57 -0
- package/node_modules/@aws-sdk/core/dist-types/protocols/common.d.ts +2 -0
- package/node_modules/@aws-sdk/core/dist-types/protocols/index.d.ts +2 -0
- package/node_modules/@aws-sdk/core/dist-types/protocols/json/parseJsonBody.d.ts +4 -0
- package/node_modules/@aws-sdk/core/dist-types/protocols/xml/parseXmlBody.d.ts +4 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/protocols/common.d.ts +5 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/protocols/index.d.ts +2 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/protocols/json/parseJsonBody.d.ts +13 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/protocols/xml/parseXmlBody.d.ts +13 -0
- package/node_modules/@aws-sdk/core/package.json +2 -1
- package/node_modules/@aws-sdk/core/src/protocols/common.ts +5 -0
- package/node_modules/@aws-sdk/core/src/protocols/index.ts +2 -0
- package/node_modules/@aws-sdk/core/src/protocols/json/parseJsonBody.ts +60 -0
- package/node_modules/@aws-sdk/core/src/protocols/xml/parseXmlBody.ts +64 -0
- 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-ini/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-node/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/package.json +2 -2
- package/node_modules/@smithy/core/package.json +5 -5
- package/node_modules/@smithy/fetch-http-handler/package.json +2 -2
- package/node_modules/@smithy/middleware-endpoint/package.json +2 -2
- package/node_modules/@smithy/middleware-retry/package.json +2 -2
- package/node_modules/@smithy/middleware-serde/dist-types/deserializerMiddleware.d.ts +2 -4
- package/node_modules/@smithy/middleware-serde/dist-types/serdePlugin.d.ts +2 -3
- package/node_modules/@smithy/middleware-serde/dist-types/serializerMiddleware.d.ts +2 -4
- package/node_modules/@smithy/middleware-serde/dist-types/ts3.4/deserializerMiddleware.d.ts +2 -4
- package/node_modules/@smithy/middleware-serde/dist-types/ts3.4/serdePlugin.d.ts +2 -3
- package/node_modules/@smithy/middleware-serde/dist-types/ts3.4/serializerMiddleware.d.ts +2 -4
- package/node_modules/@smithy/middleware-serde/package.json +1 -1
- 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 +3 -3
- 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": "@smithy/middleware-serde",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1",
|
|
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",
|
|
@@ -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",
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@smithy/middleware-endpoint": "^2.4.
|
|
26
|
+
"@smithy/middleware-endpoint": "^2.4.6",
|
|
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.61",
|
|
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.529.1",
|
|
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.260",
|
|
131
131
|
"jest": {
|
|
132
132
|
"testMatch": [
|
|
133
133
|
"<rootDir>/src/**/__tests__/**/*.ts?(x)",
|