@cdk8s/awscdk-resolver 0.0.675 → 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 CHANGED
@@ -7,7 +7,7 @@
7
7
  "url": "https://aws.amazon.com"
8
8
  },
9
9
  "bundled": {
10
- "@aws-sdk/client-cloudformation": "^3.1124.0"
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.675",
4087
- "fingerprint": "ZOfn77bqK0ZaUlN64Tz6d7MFO0vKPz13Ujk7hJD1Yzc="
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.675" };
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;
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1123.0";
72
+ var version = "3.1125.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudformation",
3
- "version": "3.1124.0",
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
- fetch(fetchRequest).then((response) => {
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
- fetch(fetchRequest).then((response) => {
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.7.2",
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.2",
44
- "@smithy/types": "^4.17.2",
43
+ "@smithy/core": "^3.33.3",
44
+ "@smithy/types": "^4.18.0",
45
45
  "tslib": "^2.6.2"
46
46
  },
47
47
  "devDependencies": {
@@ -491,6 +491,7 @@ class ClientHttp2SessionRef {
491
491
  destroy() {
492
492
  this.refs = 0;
493
493
  if (!this.session.destroyed) {
494
+ this.session.setTimeout(0);
494
495
  this.session.destroy();
495
496
  }
496
497
  }
@@ -41,6 +41,7 @@ export class ClientHttp2SessionRef {
41
41
  destroy() {
42
42
  this.refs = 0;
43
43
  if (!this.session.destroyed) {
44
+ this.session.setTimeout(0);
44
45
  this.session.destroy();
45
46
  }
46
47
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/node-http-handler",
3
- "version": "4.12.0",
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.17.2",
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
  /**
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/types",
3
- "version": "4.17.2",
3
+ "version": "4.18.0",
4
4
  "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/types",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
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.1124.0"
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.675",
95
+ "version": "0.0.677",
96
96
  "jest": {
97
97
  "coverageProvider": "v8",
98
98
  "testMatch": [