@cdk8s/awscdk-resolver 0.0.726 → 0.0.727
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-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/package.json +1 -1
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +10 -4
- package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +6 -2
- package/node_modules/@smithy/fetch-http-handler/dist-es/request-timeout.js +4 -2
- package/node_modules/@smithy/fetch-http-handler/dist-types/request-timeout.d.ts +12 -1
- package/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/request-timeout.d.ts +12 -1
- package/node_modules/@smithy/fetch-http-handler/package.json +3 -3
- package/package.json +3 -3
package/.jsii
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"url": "https://aws.amazon.com"
|
|
8
8
|
},
|
|
9
9
|
"bundled": {
|
|
10
|
-
"@aws-sdk/client-cloudformation": "^3.
|
|
10
|
+
"@aws-sdk/client-cloudformation": "^3.1163.0"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"aws-cdk-lib": "^2.195.0",
|
|
@@ -4083,6 +4083,6 @@
|
|
|
4083
4083
|
"symbolId": "src/resolve:AwsCdkResolver"
|
|
4084
4084
|
}
|
|
4085
4085
|
},
|
|
4086
|
-
"version": "0.0.
|
|
4087
|
-
"fingerprint": "
|
|
4086
|
+
"version": "0.0.727",
|
|
4087
|
+
"fingerprint": "w7UcixavHxM0st5LS/fghvEax3KeSRhNJPTD9wFTSU8="
|
|
4088
4088
|
}
|
package/lib/resolve.js
CHANGED
|
@@ -39,7 +39,7 @@ const child_process_1 = require("child_process");
|
|
|
39
39
|
const path = __importStar(require("path"));
|
|
40
40
|
const aws_cdk_lib_1 = require("aws-cdk-lib");
|
|
41
41
|
class AwsCdkResolver {
|
|
42
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdk8s/awscdk-resolver.AwsCdkResolver", version: "0.0.
|
|
42
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdk8s/awscdk-resolver.AwsCdkResolver", version: "0.0.727" };
|
|
43
43
|
resolve(context) {
|
|
44
44
|
if (!aws_cdk_lib_1.Token.isUnresolved(context.value)) {
|
|
45
45
|
return;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cloudformation",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1163.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript Cloudformation Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-cloudformation",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -7,15 +7,17 @@ function createRequest(url, requestOptions) {
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
function requestTimeout(timeoutInMs = 0) {
|
|
10
|
-
|
|
10
|
+
let timeoutId;
|
|
11
|
+
const promise = new Promise((resolve, reject) => {
|
|
11
12
|
if (timeoutInMs) {
|
|
12
|
-
setTimeout(() => {
|
|
13
|
+
timeoutId = setTimeout(() => {
|
|
13
14
|
const timeoutError = new Error(`Request did not complete within ${timeoutInMs} ms`);
|
|
14
15
|
timeoutError.name = "TimeoutError";
|
|
15
16
|
reject(timeoutError);
|
|
16
17
|
}, timeoutInMs);
|
|
17
18
|
}
|
|
18
19
|
});
|
|
20
|
+
return { promise, cancel: () => clearTimeout(timeoutId) };
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
const keepAliveSupport = {
|
|
@@ -95,6 +97,7 @@ class FetchHttpHandler {
|
|
|
95
97
|
Object.assign(requestOptions, this.config.requestInit(request));
|
|
96
98
|
}
|
|
97
99
|
let removeSignalEventListener = () => { };
|
|
100
|
+
const timeout = requestTimeout(requestTimeoutInMs);
|
|
98
101
|
const fetchRequest = createRequest(url, requestOptions);
|
|
99
102
|
const raceOfPromises = [
|
|
100
103
|
fetchFn(fetchRequest).then((response) => {
|
|
@@ -123,7 +126,7 @@ class FetchHttpHandler {
|
|
|
123
126
|
}),
|
|
124
127
|
};
|
|
125
128
|
}),
|
|
126
|
-
|
|
129
|
+
timeout.promise,
|
|
127
130
|
];
|
|
128
131
|
if (abortSignal) {
|
|
129
132
|
raceOfPromises.push(new Promise((resolve, reject) => {
|
|
@@ -141,7 +144,10 @@ class FetchHttpHandler {
|
|
|
141
144
|
}
|
|
142
145
|
}));
|
|
143
146
|
}
|
|
144
|
-
return Promise.race(raceOfPromises).finally(
|
|
147
|
+
return Promise.race(raceOfPromises).finally(() => {
|
|
148
|
+
timeout.cancel();
|
|
149
|
+
removeSignalEventListener();
|
|
150
|
+
});
|
|
145
151
|
}
|
|
146
152
|
updateHttpClientConfig(key, value) {
|
|
147
153
|
this.config = undefined;
|
|
@@ -78,6 +78,7 @@ export class FetchHttpHandler {
|
|
|
78
78
|
Object.assign(requestOptions, this.config.requestInit(request));
|
|
79
79
|
}
|
|
80
80
|
let removeSignalEventListener = () => { };
|
|
81
|
+
const timeout = requestTimeoutFn(requestTimeoutInMs);
|
|
81
82
|
const fetchRequest = createRequest(url, requestOptions);
|
|
82
83
|
const raceOfPromises = [
|
|
83
84
|
fetchFn(fetchRequest).then((response) => {
|
|
@@ -106,7 +107,7 @@ export class FetchHttpHandler {
|
|
|
106
107
|
}),
|
|
107
108
|
};
|
|
108
109
|
}),
|
|
109
|
-
|
|
110
|
+
timeout.promise,
|
|
110
111
|
];
|
|
111
112
|
if (abortSignal) {
|
|
112
113
|
raceOfPromises.push(new Promise((resolve, reject) => {
|
|
@@ -124,7 +125,10 @@ export class FetchHttpHandler {
|
|
|
124
125
|
}
|
|
125
126
|
}));
|
|
126
127
|
}
|
|
127
|
-
return Promise.race(raceOfPromises).finally(
|
|
128
|
+
return Promise.race(raceOfPromises).finally(() => {
|
|
129
|
+
timeout.cancel();
|
|
130
|
+
removeSignalEventListener();
|
|
131
|
+
});
|
|
128
132
|
}
|
|
129
133
|
updateHttpClientConfig(key, value) {
|
|
130
134
|
this.config = undefined;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
export function requestTimeout(timeoutInMs = 0) {
|
|
2
|
-
|
|
2
|
+
let timeoutId;
|
|
3
|
+
const promise = new Promise((resolve, reject) => {
|
|
3
4
|
if (timeoutInMs) {
|
|
4
|
-
setTimeout(() => {
|
|
5
|
+
timeoutId = setTimeout(() => {
|
|
5
6
|
const timeoutError = new Error(`Request did not complete within ${timeoutInMs} ms`);
|
|
6
7
|
timeoutError.name = "TimeoutError";
|
|
7
8
|
reject(timeoutError);
|
|
8
9
|
}, timeoutInMs);
|
|
9
10
|
}
|
|
10
11
|
});
|
|
12
|
+
return { promise, cancel: () => clearTimeout(timeoutId) };
|
|
11
13
|
}
|
|
@@ -1 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Rejects with a TimeoutError after `timeoutInMs` (never, for 0).
|
|
3
|
+
*
|
|
4
|
+
* Call `cancel` once the request settles: a pending timer keeps the request
|
|
5
|
+
* race, and the response it settled with, reachable until the timer fires.
|
|
6
|
+
*
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export declare function requestTimeout(timeoutInMs?: number): {
|
|
10
|
+
promise: Promise<never>;
|
|
11
|
+
cancel: () => void;
|
|
12
|
+
};
|
|
@@ -1 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Rejects with a TimeoutError after `timeoutInMs` (never, for 0).
|
|
3
|
+
*
|
|
4
|
+
* Call `cancel` once the request settles: a pending timer keeps the request
|
|
5
|
+
* race, and the response it settled with, reachable until the timer fires.
|
|
6
|
+
*
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export declare function requestTimeout(timeoutInMs?: number): {
|
|
10
|
+
promise: Promise<never>;
|
|
11
|
+
cancel: () => void;
|
|
12
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/fetch-http-handler",
|
|
3
|
-
"version": "5.8.
|
|
3
|
+
"version": "5.8.1",
|
|
4
4
|
"description": "Provides a way to make requests",
|
|
5
5
|
"homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/fetch-http-handler",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"test:browser:watch": "yarn g:vitest watch -c vitest.config.browser.mts"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@smithy/core": "^3.
|
|
44
|
-
"@smithy/types": "^4.
|
|
43
|
+
"@smithy/core": "^3.39.0",
|
|
44
|
+
"@smithy/types": "^4.20.0",
|
|
45
45
|
"tslib": "^2.6.2"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
package/package.json
CHANGED
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"aws-cdk": "^2.1147.0",
|
|
54
54
|
"aws-cdk-lib": "2.195.0",
|
|
55
55
|
"cdk8s": "2.68.91",
|
|
56
|
-
"cdk8s-cli": "^2.207.
|
|
56
|
+
"cdk8s-cli": "^2.207.78",
|
|
57
57
|
"commit-and-tag-version": "^13",
|
|
58
58
|
"constructs": "10.3.0",
|
|
59
59
|
"eslint": "^9",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"constructs": "^10.3.0"
|
|
79
79
|
},
|
|
80
80
|
"dependencies": {
|
|
81
|
-
"@aws-sdk/client-cloudformation": "^3.
|
|
81
|
+
"@aws-sdk/client-cloudformation": "^3.1163.0"
|
|
82
82
|
},
|
|
83
83
|
"bundledDependencies": [
|
|
84
84
|
"@aws-sdk/client-cloudformation"
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"publishConfig": {
|
|
93
93
|
"access": "public"
|
|
94
94
|
},
|
|
95
|
-
"version": "0.0.
|
|
95
|
+
"version": "0.0.727",
|
|
96
96
|
"jest": {
|
|
97
97
|
"coverageProvider": "v8",
|
|
98
98
|
"testMatch": [
|