@cdk8s/awscdk-resolver 0.0.671 → 0.0.673

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.1121.0"
10
+ "@aws-sdk/client-cloudformation": "^3.1123.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.671",
4087
- "fingerprint": "2j+u1HK2ZCII19ygitVqJbMBMXaZc1XNZq6u7RnB1Uw="
4086
+ "version": "0.0.673",
4087
+ "fingerprint": "+AgmLeTuUuLddqp6vwxfFU+OJxepHPxSKE+QjSGbHEs="
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.671" };
42
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdk8s/awscdk-resolver.AwsCdkResolver", version: "0.0.673" };
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.1120.0";
72
+ var version = "3.1122.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.1121.0",
3
+ "version": "3.1123.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",
@@ -49,7 +49,7 @@
49
49
  },
50
50
  "dependencies": {
51
51
  "@aws-sdk/core": "^3.977.9",
52
- "@aws-sdk/credential-provider-node": "^3.972.81",
52
+ "@aws-sdk/credential-provider-node": "^3.972.82",
53
53
  "@aws-sdk/types": "^3.974.5",
54
54
  "@smithy/core": "^3.33.3",
55
55
  "@smithy/fetch-http-handler": "^5.7.2",
@@ -52,6 +52,8 @@ function memoizeChain(providers, treatAsExpired) {
52
52
  passiveLock = chain(options)
53
53
  .then((c) => {
54
54
  credentials = c;
55
+ })
56
+ .catch(() => {
55
57
  })
56
58
  .finally(() => {
57
59
  passiveLock = undefined;
@@ -32,6 +32,8 @@ export function memoizeChain(providers, treatAsExpired) {
32
32
  passiveLock = chain(options)
33
33
  .then((c) => {
34
34
  credentials = c;
35
+ })
36
+ .catch(() => {
35
37
  })
36
38
  .finally(() => {
37
39
  passiveLock = undefined;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-node",
3
- "version": "3.972.81",
3
+ "version": "3.972.82",
4
4
  "description": "AWS credential provider that sources credentials from a Node.JS environment. ",
5
5
  "keywords": [
6
6
  "aws",
@@ -608,9 +608,8 @@ class NodeHttp2ConnectionManager {
608
608
  session.on("error", ensureDestroyed);
609
609
  session.on("frameError", ensureDestroyed);
610
610
  session.on("close", ensureDestroyed);
611
- if (connectionConfiguration.requestTimeout) {
612
- session.setTimeout(connectionConfiguration.requestTimeout, ensureDestroyed);
613
- }
611
+ const timeout = connectionConfiguration.requestTimeout ?? 300_000;
612
+ session.setTimeout(timeout, ensureDestroyed);
614
613
  ref.retain();
615
614
  return ref;
616
615
  }
@@ -817,6 +816,9 @@ class NodeHttp2Handler {
817
816
  resolve({ response: httpResponse });
818
817
  if (useIsolatedSession) {
819
818
  session.close();
819
+ clientHttp2Stream.on("end", () => {
820
+ ref.destroy();
821
+ });
820
822
  }
821
823
  });
822
824
  clientHttp2Stream.on("close", () => {
@@ -827,7 +829,11 @@ class NodeHttp2Handler {
827
829
  this.connectionManager.release(requestContext, ref);
828
830
  }
829
831
  if (!fulfilled) {
830
- rejectWithDestroy(new Error("Unexpected error: http2 request did not get a response"));
832
+ const error = new Error("Unexpected error: http2 request did not get a response");
833
+ if (session.destroyed) {
834
+ error.name = "TimeoutError";
835
+ }
836
+ rejectWithDestroy(error);
831
837
  }
832
838
  });
833
839
  writeRequestBodyPromise = writeRequestBody(clientHttp2Stream, request, effectiveRequestTimeout);
@@ -64,9 +64,8 @@ export class NodeHttp2ConnectionManager {
64
64
  session.on("error", ensureDestroyed);
65
65
  session.on("frameError", ensureDestroyed);
66
66
  session.on("close", ensureDestroyed);
67
- if (connectionConfiguration.requestTimeout) {
68
- session.setTimeout(connectionConfiguration.requestTimeout, ensureDestroyed);
69
- }
67
+ const timeout = connectionConfiguration.requestTimeout ?? 300_000;
68
+ session.setTimeout(timeout, ensureDestroyed);
70
69
  ref.retain();
71
70
  return ref;
72
71
  }
@@ -142,6 +142,9 @@ export class NodeHttp2Handler {
142
142
  resolve({ response: httpResponse });
143
143
  if (useIsolatedSession) {
144
144
  session.close();
145
+ clientHttp2Stream.on("end", () => {
146
+ ref.destroy();
147
+ });
145
148
  }
146
149
  });
147
150
  clientHttp2Stream.on("close", () => {
@@ -152,7 +155,11 @@ export class NodeHttp2Handler {
152
155
  this.connectionManager.release(requestContext, ref);
153
156
  }
154
157
  if (!fulfilled) {
155
- rejectWithDestroy(new Error("Unexpected error: http2 request did not get a response"));
158
+ const error = new Error("Unexpected error: http2 request did not get a response");
159
+ if (session.destroyed) {
160
+ error.name = "TimeoutError";
161
+ }
162
+ rejectWithDestroy(error);
156
163
  }
157
164
  });
158
165
  writeRequestBodyPromise = writeRequestBody(clientHttp2Stream, request, effectiveRequestTimeout);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/node-http-handler",
3
- "version": "4.11.3",
3
+ "version": "4.12.0",
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",
package/package.json CHANGED
@@ -43,7 +43,7 @@
43
43
  "organization": false
44
44
  },
45
45
  "devDependencies": {
46
- "@cdk8s/projen-common": "0.1.24",
46
+ "@cdk8s/projen-common": "0.1.26",
47
47
  "@stylistic/eslint-plugin": "^2",
48
48
  "@types/fs-extra": "^11.0.4",
49
49
  "@types/jest": "^27",
@@ -67,7 +67,7 @@
67
67
  "jsii-docgen": "^10.5.0",
68
68
  "jsii-pacmak": "^1.140.0",
69
69
  "jsii-rosetta": "^5",
70
- "projen": "^0.103.8",
70
+ "projen": "^0.103.12",
71
71
  "ts-jest": "^27",
72
72
  "ts-node": "^10.9.2",
73
73
  "typescript": "^5.9.3"
@@ -78,7 +78,7 @@
78
78
  "constructs": "^10.3.0"
79
79
  },
80
80
  "dependencies": {
81
- "@aws-sdk/client-cloudformation": "^3.1121.0"
81
+ "@aws-sdk/client-cloudformation": "^3.1123.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.671",
95
+ "version": "0.0.673",
96
96
  "jest": {
97
97
  "coverageProvider": "v8",
98
98
  "testMatch": [