@cdk8s/awscdk-resolver 0.0.589 → 0.0.590
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/README.md +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormation.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormationClient.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/index.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/models_0.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-login/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-node/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +99 -106
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +62 -120
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +55 -86
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +73 -104
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +102 -185
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/auth/httpAuthSchemeProvider.js +4 -5
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/bdd.js +21 -57
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.browser.js +1 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.js +2 -4
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/schemas/schemas_0.js +73 -41
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/auth/httpAuthSchemeProvider.js +4 -5
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/bdd.js +20 -52
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.browser.js +1 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.js +2 -4
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js +36 -59
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthSchemeProvider.js +4 -5
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/bdd.js +17 -45
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.browser.js +1 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js +2 -4
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/schemas/schemas_0.js +32 -32
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js +4 -5
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/bdd.js +17 -45
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.browser.js +1 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js +2 -4
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js +50 -50
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js +4 -5
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultRoleAssumers.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/bdd.js +34 -96
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.browser.js +1 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js +3 -6
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js +63 -80
- package/node_modules/@aws-sdk/nested-clients/package.json +1 -1
- package/node_modules/@aws-sdk/token-providers/package.json +2 -2
- package/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/httpRequest.js +2 -2
- package/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/node-http.js +2 -0
- package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/httpRequest.d.ts +1 -1
- package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/node-http.d.ts +2 -0
- package/node_modules/@smithy/credential-provider-imds/package.json +1 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +6 -4
- package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +7 -6
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +2 -1
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2.js +2 -0
- package/node_modules/@smithy/node-http-handler/dist-es/node-https.js +2 -0
- package/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2.d.ts +2 -0
- package/node_modules/@smithy/node-http-handler/dist-types/node-https.d.ts +2 -0
- package/node_modules/@smithy/node-http-handler/package.json +1 -1
- package/package.json +3 -3
|
@@ -64,129 +64,112 @@ const _s_registry = TypeRegistry.for(_s);
|
|
|
64
64
|
export var STSServiceException$ = [-3, _s, "STSServiceException", 0, [], []];
|
|
65
65
|
_s_registry.registerError(STSServiceException$, STSServiceException);
|
|
66
66
|
const n0_registry = TypeRegistry.for(n0);
|
|
67
|
-
export var ExpiredTokenException$ = [
|
|
68
|
-
-3,
|
|
69
|
-
n0,
|
|
70
|
-
_ETE,
|
|
67
|
+
export var ExpiredTokenException$ = [-3, n0, _ETE,
|
|
71
68
|
{ [_aQE]: [`ExpiredTokenException`, 400], [_e]: _c, [_hE]: 400 },
|
|
72
69
|
[_m],
|
|
73
|
-
[0]
|
|
70
|
+
[0]
|
|
74
71
|
];
|
|
75
72
|
n0_registry.registerError(ExpiredTokenException$, ExpiredTokenException);
|
|
76
|
-
export var IDPCommunicationErrorException$ = [
|
|
77
|
-
-3,
|
|
78
|
-
n0,
|
|
79
|
-
_IDPCEE,
|
|
73
|
+
export var IDPCommunicationErrorException$ = [-3, n0, _IDPCEE,
|
|
80
74
|
{ [_aQE]: [`IDPCommunicationError`, 400], [_e]: _c, [_hE]: 400 },
|
|
81
75
|
[_m],
|
|
82
|
-
[0]
|
|
76
|
+
[0]
|
|
83
77
|
];
|
|
84
78
|
n0_registry.registerError(IDPCommunicationErrorException$, IDPCommunicationErrorException);
|
|
85
|
-
export var IDPRejectedClaimException$ = [
|
|
86
|
-
-3,
|
|
87
|
-
n0,
|
|
88
|
-
_IDPRCE,
|
|
79
|
+
export var IDPRejectedClaimException$ = [-3, n0, _IDPRCE,
|
|
89
80
|
{ [_aQE]: [`IDPRejectedClaim`, 403], [_e]: _c, [_hE]: 403 },
|
|
90
81
|
[_m],
|
|
91
|
-
[0]
|
|
82
|
+
[0]
|
|
92
83
|
];
|
|
93
84
|
n0_registry.registerError(IDPRejectedClaimException$, IDPRejectedClaimException);
|
|
94
|
-
export var InvalidIdentityTokenException$ = [
|
|
95
|
-
-3,
|
|
96
|
-
n0,
|
|
97
|
-
_IITE,
|
|
85
|
+
export var InvalidIdentityTokenException$ = [-3, n0, _IITE,
|
|
98
86
|
{ [_aQE]: [`InvalidIdentityToken`, 400], [_e]: _c, [_hE]: 400 },
|
|
99
87
|
[_m],
|
|
100
|
-
[0]
|
|
88
|
+
[0]
|
|
101
89
|
];
|
|
102
90
|
n0_registry.registerError(InvalidIdentityTokenException$, InvalidIdentityTokenException);
|
|
103
|
-
export var MalformedPolicyDocumentException$ = [
|
|
104
|
-
-3,
|
|
105
|
-
n0,
|
|
106
|
-
_MPDE,
|
|
91
|
+
export var MalformedPolicyDocumentException$ = [-3, n0, _MPDE,
|
|
107
92
|
{ [_aQE]: [`MalformedPolicyDocument`, 400], [_e]: _c, [_hE]: 400 },
|
|
108
93
|
[_m],
|
|
109
|
-
[0]
|
|
94
|
+
[0]
|
|
110
95
|
];
|
|
111
96
|
n0_registry.registerError(MalformedPolicyDocumentException$, MalformedPolicyDocumentException);
|
|
112
|
-
export var PackedPolicyTooLargeException$ = [
|
|
113
|
-
-3,
|
|
114
|
-
n0,
|
|
115
|
-
_PPTLE,
|
|
97
|
+
export var PackedPolicyTooLargeException$ = [-3, n0, _PPTLE,
|
|
116
98
|
{ [_aQE]: [`PackedPolicyTooLarge`, 400], [_e]: _c, [_hE]: 400 },
|
|
117
99
|
[_m],
|
|
118
|
-
[0]
|
|
100
|
+
[0]
|
|
119
101
|
];
|
|
120
102
|
n0_registry.registerError(PackedPolicyTooLargeException$, PackedPolicyTooLargeException);
|
|
121
|
-
export var RegionDisabledException$ = [
|
|
122
|
-
-3,
|
|
123
|
-
n0,
|
|
124
|
-
_RDE,
|
|
103
|
+
export var RegionDisabledException$ = [-3, n0, _RDE,
|
|
125
104
|
{ [_aQE]: [`RegionDisabledException`, 403], [_e]: _c, [_hE]: 403 },
|
|
126
105
|
[_m],
|
|
127
|
-
[0]
|
|
106
|
+
[0]
|
|
128
107
|
];
|
|
129
108
|
n0_registry.registerError(RegionDisabledException$, RegionDisabledException);
|
|
130
|
-
export const errorTypeRegistries = [
|
|
109
|
+
export const errorTypeRegistries = [
|
|
110
|
+
_s_registry,
|
|
111
|
+
n0_registry,
|
|
112
|
+
];
|
|
131
113
|
var accessKeySecretType = [0, n0, _aKST, 8, 0];
|
|
132
114
|
var clientTokenType = [0, n0, _cTT, 8, 0];
|
|
133
|
-
export var AssumedRoleUser$ = [3, n0, _ARU,
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
115
|
+
export var AssumedRoleUser$ = [3, n0, _ARU,
|
|
116
|
+
0,
|
|
117
|
+
[_ARI, _A],
|
|
118
|
+
[0, 0], 2
|
|
119
|
+
];
|
|
120
|
+
export var AssumeRoleRequest$ = [3, n0, _ARR,
|
|
138
121
|
0,
|
|
139
122
|
[_RA, _RSN, _PA, _P, _DS, _T, _TTK, _EI, _SN, _TC, _SI, _PC],
|
|
140
|
-
[0, 0, () => policyDescriptorListType, 0, 1, () => tagListType, 64 | 0, 0, 0, 0, 0, () => ProvidedContextsListType],
|
|
141
|
-
2,
|
|
123
|
+
[0, 0, () => policyDescriptorListType, 0, 1, () => tagListType, 64 | 0, 0, 0, 0, 0, () => ProvidedContextsListType], 2
|
|
142
124
|
];
|
|
143
|
-
export var AssumeRoleResponse$ = [
|
|
144
|
-
3,
|
|
145
|
-
n0,
|
|
146
|
-
_ARRs,
|
|
125
|
+
export var AssumeRoleResponse$ = [3, n0, _ARRs,
|
|
147
126
|
0,
|
|
148
127
|
[_C, _ARU, _PPS, _SI],
|
|
149
|
-
[[() => Credentials$, 0], () => AssumedRoleUser$, 1, 0]
|
|
128
|
+
[[() => Credentials$, 0], () => AssumedRoleUser$, 1, 0]
|
|
150
129
|
];
|
|
151
|
-
export var AssumeRoleWithWebIdentityRequest$ = [
|
|
152
|
-
3,
|
|
153
|
-
n0,
|
|
154
|
-
_ARWWIR,
|
|
130
|
+
export var AssumeRoleWithWebIdentityRequest$ = [3, n0, _ARWWIR,
|
|
155
131
|
0,
|
|
156
132
|
[_RA, _RSN, _WIT, _PI, _PA, _P, _DS],
|
|
157
|
-
[0, 0, [() => clientTokenType, 0], 0, () => policyDescriptorListType, 0, 1],
|
|
158
|
-
3,
|
|
133
|
+
[0, 0, [() => clientTokenType, 0], 0, () => policyDescriptorListType, 0, 1], 3
|
|
159
134
|
];
|
|
160
|
-
export var AssumeRoleWithWebIdentityResponse$ = [
|
|
161
|
-
3,
|
|
162
|
-
n0,
|
|
163
|
-
_ARWWIRs,
|
|
135
|
+
export var AssumeRoleWithWebIdentityResponse$ = [3, n0, _ARWWIRs,
|
|
164
136
|
0,
|
|
165
137
|
[_C, _SFWIT, _ARU, _PPS, _Pr, _Au, _SI],
|
|
166
|
-
[[() => Credentials$, 0], 0, () => AssumedRoleUser$, 1, 0, 0, 0]
|
|
138
|
+
[[() => Credentials$, 0], 0, () => AssumedRoleUser$, 1, 0, 0, 0]
|
|
167
139
|
];
|
|
168
|
-
export var Credentials$ = [
|
|
169
|
-
3,
|
|
170
|
-
n0,
|
|
171
|
-
_C,
|
|
140
|
+
export var Credentials$ = [3, n0, _C,
|
|
172
141
|
0,
|
|
173
142
|
[_AKI, _SAK, _ST, _E],
|
|
174
|
-
[0, [() => accessKeySecretType, 0], 0, 4],
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
var
|
|
182
|
-
var tagKeyListType = 64 | 0;
|
|
183
|
-
var tagListType = [1, n0, _tLT, 0, () => Tag$];
|
|
184
|
-
export var AssumeRole$ = [9, n0, _AR, 0, () => AssumeRoleRequest$, () => AssumeRoleResponse$];
|
|
185
|
-
export var AssumeRoleWithWebIdentity$ = [
|
|
186
|
-
9,
|
|
187
|
-
n0,
|
|
188
|
-
_ARWWI,
|
|
143
|
+
[0, [() => accessKeySecretType, 0], 0, 4], 4
|
|
144
|
+
];
|
|
145
|
+
export var PolicyDescriptorType$ = [3, n0, _PDT,
|
|
146
|
+
0,
|
|
147
|
+
[_a],
|
|
148
|
+
[0]
|
|
149
|
+
];
|
|
150
|
+
export var ProvidedContext$ = [3, n0, _PCr,
|
|
189
151
|
0,
|
|
190
|
-
|
|
191
|
-
|
|
152
|
+
[_PAr, _CA],
|
|
153
|
+
[0, 0]
|
|
154
|
+
];
|
|
155
|
+
export var Tag$ = [3, n0, _Ta,
|
|
156
|
+
0,
|
|
157
|
+
[_K, _V],
|
|
158
|
+
[0, 0], 2
|
|
159
|
+
];
|
|
160
|
+
var policyDescriptorListType = [1, n0, _pDLT,
|
|
161
|
+
0, () => PolicyDescriptorType$
|
|
162
|
+
];
|
|
163
|
+
var ProvidedContextsListType = [1, n0, _PCLT,
|
|
164
|
+
0, () => ProvidedContext$
|
|
165
|
+
];
|
|
166
|
+
var tagKeyListType = 64 | 0;
|
|
167
|
+
var tagListType = [1, n0, _tLT,
|
|
168
|
+
0, () => Tag$
|
|
169
|
+
];
|
|
170
|
+
export var AssumeRole$ = [9, n0, _AR,
|
|
171
|
+
0, () => AssumeRoleRequest$, () => AssumeRoleResponse$
|
|
172
|
+
];
|
|
173
|
+
export var AssumeRoleWithWebIdentity$ = [9, n0, _ARWWI,
|
|
174
|
+
0, () => AssumeRoleWithWebIdentityRequest$, () => AssumeRoleWithWebIdentityResponse$
|
|
192
175
|
];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/token-providers",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1062.0",
|
|
4
4
|
"description": "A collection of token providers",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"license": "Apache-2.0",
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@aws-sdk/core": "^3.974.17",
|
|
33
|
-
"@aws-sdk/nested-clients": "^3.997.
|
|
33
|
+
"@aws-sdk/nested-clients": "^3.997.16",
|
|
34
34
|
"@aws-sdk/types": "^3.973.10",
|
|
35
35
|
"@smithy/core": "^3.24.6",
|
|
36
36
|
"@smithy/types": "^4.14.3",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { request } from "node:http";
|
|
2
1
|
import { ProviderError } from "@smithy/core/config";
|
|
2
|
+
import { node_http } from "./node-http";
|
|
3
3
|
export function httpRequest(options) {
|
|
4
4
|
return new Promise((resolve, reject) => {
|
|
5
|
-
const req = request({
|
|
5
|
+
const req = node_http.request({
|
|
6
6
|
method: "GET",
|
|
7
7
|
...options,
|
|
8
8
|
hostname: options.hostname?.replace(/^\[(.+)\]$/, "$1"),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/credential-provider-imds",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.8",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from the EC2 instance metadata service and ECS container metadata service",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var node_https = require('node:https');
|
|
4
3
|
var protocols = require('@smithy/core/protocols');
|
|
4
|
+
var node_https = require('node:https');
|
|
5
5
|
var node_stream = require('node:stream');
|
|
6
6
|
var http2 = require('node:http2');
|
|
7
7
|
|
|
@@ -414,7 +414,8 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
414
414
|
socketAcquisitionWarningTimeout,
|
|
415
415
|
throwOnRequestTimeout,
|
|
416
416
|
httpAgentProvider: async () => {
|
|
417
|
-
const
|
|
417
|
+
const node_http = await import('node:http');
|
|
418
|
+
const { Agent, request } = node_http.default ?? node_http;
|
|
418
419
|
hRequest = request;
|
|
419
420
|
hAgent = Agent;
|
|
420
421
|
if (httpAgent instanceof hAgent || typeof httpAgent?.destroy === "function") {
|
|
@@ -666,6 +667,7 @@ class NodeHttp2ConnectionManager {
|
|
|
666
667
|
}
|
|
667
668
|
}
|
|
668
669
|
|
|
670
|
+
const { constants } = http2;
|
|
669
671
|
class NodeHttp2Handler {
|
|
670
672
|
config;
|
|
671
673
|
configProvider;
|
|
@@ -760,8 +762,8 @@ class NodeHttp2Handler {
|
|
|
760
762
|
}
|
|
761
763
|
const clientHttp2Stream = session.request({
|
|
762
764
|
...request.headers,
|
|
763
|
-
[
|
|
764
|
-
[
|
|
765
|
+
[constants.HTTP2_HEADER_PATH]: path,
|
|
766
|
+
[constants.HTTP2_HEADER_METHOD]: method,
|
|
765
767
|
});
|
|
766
768
|
if (effectiveRequestTimeout) {
|
|
767
769
|
clientHttp2Stream.setTimeout(effectiveRequestTimeout, () => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Agent as hsAgent, request as hsRequest } from "node:https";
|
|
2
1
|
import { HttpResponse, buildQueryString } from "@smithy/core/protocols";
|
|
3
2
|
import { buildAbortError } from "./build-abort-error";
|
|
4
3
|
import { NODEJS_TIMEOUT_ERROR_CODES } from "./constants";
|
|
5
4
|
import { getTransformedHeaders } from "./get-transformed-headers";
|
|
5
|
+
import { node_https } from "./node-https";
|
|
6
6
|
import { setConnectionTimeout } from "./set-connection-timeout";
|
|
7
7
|
import { setRequestTimeout } from "./set-request-timeout";
|
|
8
8
|
import { setSocketKeepAlive } from "./set-socket-keep-alive";
|
|
@@ -107,7 +107,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
107
107
|
const expectContinue = headers ? (headers.Expect ?? headers.expect) === "100-continue" : false;
|
|
108
108
|
let agent = isSSL ? config.httpsAgent : config.httpAgent;
|
|
109
109
|
if (expectContinue && !this.externalAgent) {
|
|
110
|
-
agent = new (isSSL ?
|
|
110
|
+
agent = new (isSSL ? node_https.Agent : hAgent)({
|
|
111
111
|
keepAlive: false,
|
|
112
112
|
maxSockets: Infinity,
|
|
113
113
|
});
|
|
@@ -145,7 +145,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
145
145
|
agent,
|
|
146
146
|
auth,
|
|
147
147
|
};
|
|
148
|
-
const requestFunc = isSSL ?
|
|
148
|
+
const requestFunc = isSSL ? node_https.request : hRequest;
|
|
149
149
|
const req = requestFunc(nodeHttpsOptions, (res) => {
|
|
150
150
|
const httpResponse = new HttpResponse({
|
|
151
151
|
statusCode: res.statusCode || -1,
|
|
@@ -218,7 +218,8 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
218
218
|
socketAcquisitionWarningTimeout,
|
|
219
219
|
throwOnRequestTimeout,
|
|
220
220
|
httpAgentProvider: async () => {
|
|
221
|
-
const
|
|
221
|
+
const node_http = await import("node:http");
|
|
222
|
+
const { Agent, request } = node_http.default ?? node_http;
|
|
222
223
|
hRequest = request;
|
|
223
224
|
hAgent = Agent;
|
|
224
225
|
if (httpAgent instanceof hAgent || typeof httpAgent?.destroy === "function") {
|
|
@@ -228,11 +229,11 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
228
229
|
return new hAgent({ keepAlive, maxSockets, ...httpAgent });
|
|
229
230
|
},
|
|
230
231
|
httpsAgent: (() => {
|
|
231
|
-
if (httpsAgent instanceof
|
|
232
|
+
if (httpsAgent instanceof node_https.Agent || typeof httpsAgent?.destroy === "function") {
|
|
232
233
|
this.externalAgent = true;
|
|
233
234
|
return httpsAgent;
|
|
234
235
|
}
|
|
235
|
-
return new
|
|
236
|
+
return new node_https.Agent({ keepAlive, maxSockets, ...httpsAgent });
|
|
236
237
|
})(),
|
|
237
238
|
logger,
|
|
238
239
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { constants } from "node:http2";
|
|
2
1
|
import { HttpResponse, buildQueryString } from "@smithy/core/protocols";
|
|
3
2
|
import { buildAbortError } from "./build-abort-error";
|
|
4
3
|
import { getTransformedHeaders } from "./get-transformed-headers";
|
|
4
|
+
import { node_http2 } from "./node-http2";
|
|
5
5
|
import { NodeHttp2ConnectionManager } from "./node-http2-connection-manager";
|
|
6
6
|
import { writeRequestBody } from "./write-request-body";
|
|
7
|
+
const { constants } = node_http2;
|
|
7
8
|
export class NodeHttp2Handler {
|
|
8
9
|
config;
|
|
9
10
|
configProvider;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Agent as hAgentType } from "node:http";
|
|
2
|
-
import { Agent as
|
|
2
|
+
import type { Agent as hsAgentType } from "node:https";
|
|
3
3
|
import { HttpResponse, type HttpHandler, type HttpRequest } from "@smithy/core/protocols";
|
|
4
4
|
import type { HttpHandlerOptions, Logger, NodeHttpHandlerOptions, Provider } from "@smithy/types";
|
|
5
5
|
export { NodeHttpHandlerOptions };
|
|
@@ -35,7 +35,7 @@ export declare class NodeHttpHandler implements HttpHandler<NodeHttpHandlerOptio
|
|
|
35
35
|
* @param logger - channel for the warning.
|
|
36
36
|
* @returns timestamp of last emitted warning.
|
|
37
37
|
*/
|
|
38
|
-
static checkSocketUsage(agent: hAgentType |
|
|
38
|
+
static checkSocketUsage(agent: hAgentType | hsAgentType, socketWarningTimestamp: number, logger?: Logger): number;
|
|
39
39
|
constructor(options?: NodeHttpHandlerOptions | Provider<NodeHttpHandlerOptions | void>);
|
|
40
40
|
destroy(): void;
|
|
41
41
|
handle(request: HttpRequest, { abortSignal, requestTimeout }?: HttpHandlerOptions): Promise<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ClientSessionOptions, SecureClientSessionOptions } from "node:http2";
|
|
2
2
|
import { HttpResponse, type HttpHandler, type HttpRequest } from "@smithy/core/protocols";
|
|
3
3
|
import type { HttpHandlerOptions, Provider } from "@smithy/types";
|
|
4
4
|
/**
|
package/package.json
CHANGED
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"organization": false
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@cdk8s/projen-common": "0.0.
|
|
45
|
+
"@cdk8s/projen-common": "0.0.707",
|
|
46
46
|
"@stylistic/eslint-plugin": "^2",
|
|
47
47
|
"@types/fs-extra": "^11.0.4",
|
|
48
48
|
"@types/jest": "^27",
|
|
@@ -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.1062.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.590",
|
|
97
97
|
"jest": {
|
|
98
98
|
"coverageProvider": "v8",
|
|
99
99
|
"testMatch": [
|