@cdk8s/awscdk-resolver 0.0.312 → 0.0.314
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/resolve.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +4 -1
- package/node_modules/@aws-sdk/client-cloudformation/package.json +11 -11
- package/node_modules/@aws-sdk/client-sso/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +4 -1
- package/node_modules/@aws-sdk/client-sso/package.json +10 -10
- package/node_modules/@aws-sdk/core/package.json +2 -2
- 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 +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/endpoint/EndpointParameters.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/endpoint/EndpointParameters.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/endpoint/EndpointParameters.d.ts +4 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/endpoint/EndpointParameters.d.ts +4 -1
- package/node_modules/@aws-sdk/nested-clients/package.json +10 -10
- 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 +7 -7
@@ -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
@@ -42,22 +42,22 @@
|
|
42
42
|
"organization": false
|
43
43
|
},
|
44
44
|
"devDependencies": {
|
45
|
-
"@cdk8s/projen-common": "0.0.
|
45
|
+
"@cdk8s/projen-common": "0.0.609",
|
46
46
|
"@stylistic/eslint-plugin": "^2",
|
47
47
|
"@types/fs-extra": "^11.0.4",
|
48
48
|
"@types/jest": "^27",
|
49
49
|
"@types/node": "16.18.78",
|
50
50
|
"@typescript-eslint/eslint-plugin": "^8",
|
51
51
|
"@typescript-eslint/parser": "^8",
|
52
|
-
"aws-cdk": "^2.
|
52
|
+
"aws-cdk": "^2.1019.1",
|
53
53
|
"aws-cdk-lib": "2.195.0",
|
54
54
|
"cdk8s": "2.68.91",
|
55
|
-
"cdk8s-cli": "^2.200.
|
55
|
+
"cdk8s-cli": "^2.200.111",
|
56
56
|
"commit-and-tag-version": "^12",
|
57
57
|
"constructs": "10.3.0",
|
58
58
|
"eslint": "^9",
|
59
59
|
"eslint-import-resolver-typescript": "^3.10.1",
|
60
|
-
"eslint-plugin-import": "^2.
|
60
|
+
"eslint-plugin-import": "^2.32.0",
|
61
61
|
"fs-extra": "^11.3.0",
|
62
62
|
"jest": "^27",
|
63
63
|
"jest-junit": "^16",
|
@@ -66,7 +66,7 @@
|
|
66
66
|
"jsii-docgen": "^10.5.0",
|
67
67
|
"jsii-pacmak": "^1.112.0",
|
68
68
|
"jsii-rosetta": "^5",
|
69
|
-
"projen": "^0.
|
69
|
+
"projen": "^0.94.0",
|
70
70
|
"ts-jest": "^27",
|
71
71
|
"ts-node": "^10.9.2",
|
72
72
|
"typescript": "^5.8.3"
|
@@ -77,7 +77,7 @@
|
|
77
77
|
"constructs": "^10.3.0"
|
78
78
|
},
|
79
79
|
"dependencies": {
|
80
|
-
"@aws-sdk/client-cloudformation": "^3.
|
80
|
+
"@aws-sdk/client-cloudformation": "^3.835.0"
|
81
81
|
},
|
82
82
|
"bundledDependencies": [
|
83
83
|
"@aws-sdk/client-cloudformation"
|
@@ -93,7 +93,7 @@
|
|
93
93
|
"publishConfig": {
|
94
94
|
"access": "public"
|
95
95
|
},
|
96
|
-
"version": "0.0.
|
96
|
+
"version": "0.0.314",
|
97
97
|
"jest": {
|
98
98
|
"coverageProvider": "v8",
|
99
99
|
"testMatch": [
|