@cdk8s/awscdk-resolver 0.0.676 → 0.0.677
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 +2 -1
- package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +2 -1
- package/node_modules/@smithy/fetch-http-handler/package.json +3 -3
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +1 -0
- package/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +1 -0
- package/node_modules/@smithy/node-http-handler/package.json +2 -2
- package/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts +14 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +14 -0
- package/node_modules/@smithy/types/package.json +1 -1
- package/package.json +2 -2
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.1126.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.677",
|
|
4087
|
+
"fingerprint": "bfONWjVSqsQ0ci5tRPsdjbZhYqy4Z4Q9eRrJZEmuejU="
|
|
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.677" };
|
|
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.1126.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",
|
|
@@ -51,6 +51,7 @@ class FetchHttpHandler {
|
|
|
51
51
|
const requestTimeoutInMs = requestTimeout$1 ?? this.config.requestTimeout;
|
|
52
52
|
const keepAlive = this.config.keepAlive === true;
|
|
53
53
|
const credentials = this.config.credentials;
|
|
54
|
+
const fetchFn = this.config.customFetch ?? fetch;
|
|
54
55
|
if (abortSignal?.aborted) {
|
|
55
56
|
const abortError = buildAbortError(abortSignal);
|
|
56
57
|
return Promise.reject(abortError);
|
|
@@ -96,7 +97,7 @@ class FetchHttpHandler {
|
|
|
96
97
|
let removeSignalEventListener = () => { };
|
|
97
98
|
const fetchRequest = createRequest(url, requestOptions);
|
|
98
99
|
const raceOfPromises = [
|
|
99
|
-
|
|
100
|
+
fetchFn(fetchRequest).then((response) => {
|
|
100
101
|
const fetchHeaders = response.headers;
|
|
101
102
|
const transformedHeaders = {};
|
|
102
103
|
for (const pair of fetchHeaders.entries()) {
|
|
@@ -34,6 +34,7 @@ export class FetchHttpHandler {
|
|
|
34
34
|
const requestTimeoutInMs = requestTimeout ?? this.config.requestTimeout;
|
|
35
35
|
const keepAlive = this.config.keepAlive === true;
|
|
36
36
|
const credentials = this.config.credentials;
|
|
37
|
+
const fetchFn = this.config.customFetch ?? fetch;
|
|
37
38
|
if (abortSignal?.aborted) {
|
|
38
39
|
const abortError = buildAbortError(abortSignal);
|
|
39
40
|
return Promise.reject(abortError);
|
|
@@ -79,7 +80,7 @@ export class FetchHttpHandler {
|
|
|
79
80
|
let removeSignalEventListener = () => { };
|
|
80
81
|
const fetchRequest = createRequest(url, requestOptions);
|
|
81
82
|
const raceOfPromises = [
|
|
82
|
-
|
|
83
|
+
fetchFn(fetchRequest).then((response) => {
|
|
83
84
|
const fetchHeaders = response.headers;
|
|
84
85
|
const transformedHeaders = {};
|
|
85
86
|
for (const pair of fetchHeaders.entries()) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/fetch-http-handler",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.8.0",
|
|
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.33.
|
|
44
|
-
"@smithy/types": "^4.
|
|
43
|
+
"@smithy/core": "^3.33.3",
|
|
44
|
+
"@smithy/types": "^4.18.0",
|
|
45
45
|
"tslib": "^2.6.2"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/node-http-handler",
|
|
3
|
-
"version": "4.12.
|
|
3
|
+
"version": "4.12.1",
|
|
4
4
|
"description": "Provides a way to make requests",
|
|
5
5
|
"homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/node-http-handler",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@smithy/core": "^3.33.3",
|
|
43
|
-
"@smithy/types": "^4.
|
|
43
|
+
"@smithy/types": "^4.18.0",
|
|
44
44
|
"tslib": "^2.6.2"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
@@ -118,6 +118,20 @@ export interface FetchHttpHandlerOptions {
|
|
|
118
118
|
* ```
|
|
119
119
|
*/
|
|
120
120
|
requestInit?: (httpRequest: IHttpRequest) => RequestInit;
|
|
121
|
+
/**
|
|
122
|
+
* An optional custom fetch implementation to use in place of the
|
|
123
|
+
* global fetch function.
|
|
124
|
+
*
|
|
125
|
+
* @example
|
|
126
|
+
* ```js
|
|
127
|
+
* new Client({
|
|
128
|
+
* requestHandler: {
|
|
129
|
+
* customFetch: (request) => myFetchImplementation(request)
|
|
130
|
+
* }
|
|
131
|
+
* });
|
|
132
|
+
* ```
|
|
133
|
+
*/
|
|
134
|
+
customFetch?: typeof fetch;
|
|
121
135
|
}
|
|
122
136
|
declare global {
|
|
123
137
|
/**
|
|
@@ -118,6 +118,20 @@ export interface FetchHttpHandlerOptions {
|
|
|
118
118
|
* ```
|
|
119
119
|
*/
|
|
120
120
|
requestInit?: (httpRequest: IHttpRequest) => RequestInit;
|
|
121
|
+
/**
|
|
122
|
+
* An optional custom fetch implementation to use in place of the
|
|
123
|
+
* global fetch function.
|
|
124
|
+
*
|
|
125
|
+
* @example
|
|
126
|
+
* ```js
|
|
127
|
+
* new Client({
|
|
128
|
+
* requestHandler: {
|
|
129
|
+
* customFetch: (request) => myFetchImplementation(request)
|
|
130
|
+
* }
|
|
131
|
+
* });
|
|
132
|
+
* ```
|
|
133
|
+
*/
|
|
134
|
+
customFetch?: typeof fetch;
|
|
121
135
|
}
|
|
122
136
|
declare global {
|
|
123
137
|
/**
|
package/package.json
CHANGED
|
@@ -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.1126.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.677",
|
|
96
96
|
"jest": {
|
|
97
97
|
"coverageProvider": "v8",
|
|
98
98
|
"testMatch": [
|