@cdklabs/cdk-ecs-codedeploy 0.0.415 → 0.0.417
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/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/endpoint/EndpointParameters.d.ts +8 -8
- 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.native.d.ts +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +11 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -2
- package/node_modules/@aws-sdk/client-codedeploy/package.json +13 -13
- package/node_modules/@aws-sdk/client-sso/dist-types/endpoint/EndpointParameters.d.ts +8 -8
- 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.native.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +11 -8
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -2
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -2
- package/node_modules/@aws-sdk/client-sso/package.json +11 -11
- package/node_modules/@aws-sdk/core/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/endpoint/EndpointParameters.d.ts +8 -8
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/endpoint/EndpointParameters.d.ts +10 -10
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.browser.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/endpoint/EndpointParameters.d.ts +11 -8
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +4 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +4 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/endpoint/EndpointParameters.d.ts +13 -10
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +8 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +4 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +8 -3
- package/node_modules/@aws-sdk/nested-clients/package.json +11 -11
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +55 -8
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +34 -2
- package/node_modules/@smithy/core/dist-es/submodules/cbor/byte-printer.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +24 -4
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +33 -3
- package/node_modules/@smithy/core/dist-es/submodules/serde/value/NumericValue.js +32 -2
- package/node_modules/@smithy/core/dist-types/submodules/cbor/byte-printer.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/value/NumericValue.d.ts +3 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/byte-printer.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/value/NumericValue.d.ts +3 -1
- package/node_modules/@smithy/core/package.json +1 -1
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +16 -1
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/resolveEndpointRequiredConfig.js +1 -0
- package/node_modules/@smithy/middleware-endpoint/dist-es/index.js +1 -0
- package/node_modules/@smithy/middleware-endpoint/dist-es/resolveEndpointRequiredConfig.js +9 -0
- package/node_modules/@smithy/middleware-endpoint/dist-types/index.d.ts +1 -0
- package/node_modules/@smithy/middleware-endpoint/dist-types/resolveEndpointRequiredConfig.d.ts +32 -0
- package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/index.d.ts +1 -0
- package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/resolveEndpointRequiredConfig.d.ts +32 -0
- package/node_modules/@smithy/middleware-endpoint/package.json +2 -2
- package/node_modules/@smithy/middleware-retry/package.json +4 -4
- package/node_modules/@smithy/service-error-classification/dist-cjs/index.js +2 -1
- package/node_modules/@smithy/service-error-classification/dist-es/constants.js +1 -0
- package/node_modules/@smithy/service-error-classification/dist-es/index.js +2 -1
- package/node_modules/@smithy/service-error-classification/dist-types/constants.d.ts +4 -0
- package/node_modules/@smithy/service-error-classification/dist-types/ts3.4/constants.d.ts +4 -0
- package/node_modules/@smithy/service-error-classification/package.json +1 -1
- package/node_modules/@smithy/smithy-client/package.json +3 -3
- 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-retry/package.json +2 -2
- package/node_modules/@smithy/util-waiter/dist-cjs/index.js +27 -8
- package/node_modules/@smithy/util-waiter/dist-es/createWaiter.js +27 -8
- package/node_modules/@smithy/util-waiter/package.json +1 -1
- package/package.json +4 -4
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/util-defaults-mode-node",
|
3
|
-
"version": "4.0.
|
3
|
+
"version": "4.0.21",
|
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",
|
@@ -27,7 +27,7 @@
|
|
27
27
|
"@smithy/credential-provider-imds": "^4.0.6",
|
28
28
|
"@smithy/node-config-provider": "^4.1.3",
|
29
29
|
"@smithy/property-provider": "^4.0.4",
|
30
|
-
"@smithy/smithy-client": "^4.4.
|
30
|
+
"@smithy/smithy-client": "^4.4.5",
|
31
31
|
"@smithy/types": "^4.3.1",
|
32
32
|
"tslib": "^2.6.2"
|
33
33
|
},
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/util-retry",
|
3
|
-
"version": "4.0.
|
3
|
+
"version": "4.0.6",
|
4
4
|
"description": "Shared retry utilities to be used in middleware packages.",
|
5
5
|
"main": "./dist-cjs/index.js",
|
6
6
|
"module": "./dist-es/index.js",
|
@@ -28,7 +28,7 @@
|
|
28
28
|
},
|
29
29
|
"license": "Apache-2.0",
|
30
30
|
"dependencies": {
|
31
|
-
"@smithy/service-error-classification": "^4.0.
|
31
|
+
"@smithy/service-error-classification": "^4.0.6",
|
32
32
|
"@smithy/types": "^4.3.1",
|
33
33
|
"tslib": "^2.6.2"
|
34
34
|
},
|
@@ -149,15 +149,24 @@ var validateWaiterOptions = /* @__PURE__ */ __name((options) => {
|
|
149
149
|
}, "validateWaiterOptions");
|
150
150
|
|
151
151
|
// src/createWaiter.ts
|
152
|
-
var abortTimeout = /* @__PURE__ */ __name(
|
153
|
-
|
154
|
-
|
152
|
+
var abortTimeout = /* @__PURE__ */ __name((abortSignal) => {
|
153
|
+
let onAbort;
|
154
|
+
const promise = new Promise((resolve) => {
|
155
|
+
onAbort = /* @__PURE__ */ __name(() => resolve({ state: "ABORTED" /* ABORTED */ }), "onAbort");
|
155
156
|
if (typeof abortSignal.addEventListener === "function") {
|
156
157
|
abortSignal.addEventListener("abort", onAbort);
|
157
158
|
} else {
|
158
159
|
abortSignal.onabort = onAbort;
|
159
160
|
}
|
160
161
|
});
|
162
|
+
return {
|
163
|
+
clearListener() {
|
164
|
+
if (typeof abortSignal.removeEventListener === "function") {
|
165
|
+
abortSignal.removeEventListener("abort", onAbort);
|
166
|
+
}
|
167
|
+
},
|
168
|
+
aborted: promise
|
169
|
+
};
|
161
170
|
}, "abortTimeout");
|
162
171
|
var createWaiter = /* @__PURE__ */ __name(async (options, input, acceptorChecks) => {
|
163
172
|
const params = {
|
@@ -166,13 +175,23 @@ var createWaiter = /* @__PURE__ */ __name(async (options, input, acceptorChecks)
|
|
166
175
|
};
|
167
176
|
validateWaiterOptions(params);
|
168
177
|
const exitConditions = [runPolling(params, input, acceptorChecks)];
|
169
|
-
|
170
|
-
exitConditions.push(abortTimeout(options.abortController.signal));
|
171
|
-
}
|
178
|
+
const finalize = [];
|
172
179
|
if (options.abortSignal) {
|
173
|
-
|
180
|
+
const { aborted, clearListener } = abortTimeout(options.abortSignal);
|
181
|
+
finalize.push(clearListener);
|
182
|
+
exitConditions.push(aborted);
|
183
|
+
}
|
184
|
+
if (options.abortController?.signal) {
|
185
|
+
const { aborted, clearListener } = abortTimeout(options.abortController.signal);
|
186
|
+
finalize.push(clearListener);
|
187
|
+
exitConditions.push(aborted);
|
174
188
|
}
|
175
|
-
return Promise.race(exitConditions)
|
189
|
+
return Promise.race(exitConditions).then((result) => {
|
190
|
+
for (const fn of finalize) {
|
191
|
+
fn();
|
192
|
+
}
|
193
|
+
return result;
|
194
|
+
});
|
176
195
|
}, "createWaiter");
|
177
196
|
// Annotate the CommonJS export names for ESM import in node:
|
178
197
|
|
@@ -1,9 +1,10 @@
|
|
1
1
|
import { runPolling } from "./poller";
|
2
2
|
import { validateWaiterOptions } from "./utils";
|
3
3
|
import { waiterServiceDefaults, WaiterState } from "./waiter";
|
4
|
-
const abortTimeout =
|
5
|
-
|
6
|
-
|
4
|
+
const abortTimeout = (abortSignal) => {
|
5
|
+
let onAbort;
|
6
|
+
const promise = new Promise((resolve) => {
|
7
|
+
onAbort = () => resolve({ state: WaiterState.ABORTED });
|
7
8
|
if (typeof abortSignal.addEventListener === "function") {
|
8
9
|
abortSignal.addEventListener("abort", onAbort);
|
9
10
|
}
|
@@ -11,6 +12,14 @@ const abortTimeout = async (abortSignal) => {
|
|
11
12
|
abortSignal.onabort = onAbort;
|
12
13
|
}
|
13
14
|
});
|
15
|
+
return {
|
16
|
+
clearListener() {
|
17
|
+
if (typeof abortSignal.removeEventListener === "function") {
|
18
|
+
abortSignal.removeEventListener("abort", onAbort);
|
19
|
+
}
|
20
|
+
},
|
21
|
+
aborted: promise,
|
22
|
+
};
|
14
23
|
};
|
15
24
|
export const createWaiter = async (options, input, acceptorChecks) => {
|
16
25
|
const params = {
|
@@ -19,11 +28,21 @@ export const createWaiter = async (options, input, acceptorChecks) => {
|
|
19
28
|
};
|
20
29
|
validateWaiterOptions(params);
|
21
30
|
const exitConditions = [runPolling(params, input, acceptorChecks)];
|
22
|
-
|
23
|
-
exitConditions.push(abortTimeout(options.abortController.signal));
|
24
|
-
}
|
31
|
+
const finalize = [];
|
25
32
|
if (options.abortSignal) {
|
26
|
-
|
33
|
+
const { aborted, clearListener } = abortTimeout(options.abortSignal);
|
34
|
+
finalize.push(clearListener);
|
35
|
+
exitConditions.push(aborted);
|
36
|
+
}
|
37
|
+
if (options.abortController?.signal) {
|
38
|
+
const { aborted, clearListener } = abortTimeout(options.abortController.signal);
|
39
|
+
finalize.push(clearListener);
|
40
|
+
exitConditions.push(aborted);
|
27
41
|
}
|
28
|
-
return Promise.race(exitConditions)
|
42
|
+
return Promise.race(exitConditions).then((result) => {
|
43
|
+
for (const fn of finalize) {
|
44
|
+
fn();
|
45
|
+
}
|
46
|
+
return result;
|
47
|
+
});
|
29
48
|
};
|
package/package.json
CHANGED
@@ -74,7 +74,7 @@
|
|
74
74
|
"@aws-cdk/integ-runner": "latest",
|
75
75
|
"@aws-cdk/integ-tests-alpha": "latest",
|
76
76
|
"@stylistic/eslint-plugin": "^2",
|
77
|
-
"@types/aws-lambda": "^8.10.
|
77
|
+
"@types/aws-lambda": "^8.10.150",
|
78
78
|
"@types/jest": "^27",
|
79
79
|
"@types/lambda-tester": "^3.6.2",
|
80
80
|
"@types/node": "^18",
|
@@ -84,7 +84,7 @@
|
|
84
84
|
"aws-cdk-lib": "2.139.0",
|
85
85
|
"aws-sdk-client-mock": "^4.1.0",
|
86
86
|
"aws-sdk-client-mock-jest": "^4.1.0",
|
87
|
-
"cdk-nag": "^2.36.
|
87
|
+
"cdk-nag": "^2.36.18",
|
88
88
|
"cdklabs-projen-project-types": "^0.3.1",
|
89
89
|
"commit-and-tag-version": "^12",
|
90
90
|
"constructs": "10.0.5",
|
@@ -110,7 +110,7 @@
|
|
110
110
|
"constructs": "^10.0.5"
|
111
111
|
},
|
112
112
|
"dependencies": {
|
113
|
-
"@aws-sdk/client-codedeploy": "^3.
|
113
|
+
"@aws-sdk/client-codedeploy": "^3.839.0",
|
114
114
|
"jmespath": "^0.16.0"
|
115
115
|
},
|
116
116
|
"bundledDependencies": [
|
@@ -128,7 +128,7 @@
|
|
128
128
|
"publishConfig": {
|
129
129
|
"access": "public"
|
130
130
|
},
|
131
|
-
"version": "0.0.
|
131
|
+
"version": "0.0.417",
|
132
132
|
"jest": {
|
133
133
|
"coverageProvider": "v8",
|
134
134
|
"testMatch": [
|