@cdk8s/awscdk-resolver 0.0.63 → 0.0.65

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.
Files changed (154) hide show
  1. package/.jsii +3 -3
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.browser.js +1 -1
  4. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.js +1 -1
  5. package/node_modules/@aws-sdk/client-cloudformation/dist-es/runtimeConfig.browser.js +1 -1
  6. package/node_modules/@aws-sdk/client-cloudformation/dist-es/runtimeConfig.js +1 -1
  7. package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormationClient.d.ts +4 -4
  8. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.browser.d.ts +1 -4
  9. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.d.ts +1 -4
  10. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.native.d.ts +1 -4
  11. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/CloudFormationClient.d.ts +3 -3
  12. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -13
  13. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.d.ts +2 -14
  14. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -13
  15. package/node_modules/@aws-sdk/client-cloudformation/package.json +35 -35
  16. package/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.browser.js +1 -1
  17. package/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js +1 -1
  18. package/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.browser.js +1 -1
  19. package/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.js +1 -1
  20. package/node_modules/@aws-sdk/client-sso/dist-types/SSOClient.d.ts +4 -4
  21. package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.browser.d.ts +1 -4
  22. package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.d.ts +1 -4
  23. package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.native.d.ts +1 -4
  24. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/SSOClient.d.ts +3 -3
  25. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -13
  26. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.d.ts +2 -14
  27. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -13
  28. package/node_modules/@aws-sdk/client-sso/package.json +32 -32
  29. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.browser.js +1 -1
  30. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js +1 -1
  31. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.browser.js +1 -1
  32. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.js +1 -1
  33. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDCClient.d.ts +4 -4
  34. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.browser.d.ts +1 -4
  35. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.d.ts +1 -4
  36. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.native.d.ts +1 -4
  37. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/SSOOIDCClient.d.ts +3 -3
  38. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -13
  39. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.d.ts +2 -14
  40. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -13
  41. package/node_modules/@aws-sdk/client-sso-oidc/package.json +34 -34
  42. package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.browser.js +1 -1
  43. package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js +1 -1
  44. package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.browser.js +1 -1
  45. package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.js +1 -1
  46. package/node_modules/@aws-sdk/client-sts/dist-types/STSClient.d.ts +4 -4
  47. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.browser.d.ts +1 -4
  48. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.d.ts +1 -4
  49. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.native.d.ts +1 -4
  50. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/STSClient.d.ts +3 -3
  51. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -13
  52. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts +2 -14
  53. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -13
  54. package/node_modules/@aws-sdk/client-sts/package.json +33 -33
  55. package/node_modules/@aws-sdk/core/CHANGELOG.md +22 -0
  56. package/node_modules/@aws-sdk/core/dist-cjs/index.js +7 -8
  57. package/node_modules/@aws-sdk/core/dist-es/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js +5 -0
  58. package/node_modules/@aws-sdk/core/integ/request-handlers/request-handlers.integ.spec.ts +158 -0
  59. package/node_modules/@aws-sdk/core/jest.config.integ.js +4 -0
  60. package/node_modules/@aws-sdk/core/package.json +8 -7
  61. package/node_modules/@aws-sdk/core/src/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.spec.ts +30 -0
  62. package/node_modules/@aws-sdk/core/src/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.ts +10 -8
  63. package/node_modules/@aws-sdk/core/tsconfig.cjs.tsbuildinfo +1 -1
  64. package/node_modules/@aws-sdk/core/tsconfig.es.tsbuildinfo +1 -1
  65. package/node_modules/@aws-sdk/core/tsconfig.types.tsbuildinfo +1 -1
  66. package/node_modules/@aws-sdk/credential-provider-env/package.json +4 -4
  67. package/node_modules/@aws-sdk/credential-provider-http/package.json +9 -9
  68. package/node_modules/@aws-sdk/credential-provider-ini/package.json +11 -11
  69. package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
  70. package/node_modules/@aws-sdk/credential-provider-process/package.json +5 -5
  71. package/node_modules/@aws-sdk/credential-provider-sso/package.json +7 -7
  72. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +5 -5
  73. package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
  74. package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
  75. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
  76. package/node_modules/@aws-sdk/middleware-user-agent/package.json +5 -5
  77. package/node_modules/@aws-sdk/region-config-resolver/package.json +5 -5
  78. package/node_modules/@aws-sdk/token-providers/package.json +6 -6
  79. package/node_modules/@aws-sdk/types/package.json +2 -2
  80. package/node_modules/@aws-sdk/util-endpoints/package.json +4 -4
  81. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
  82. package/node_modules/@aws-sdk/util-user-agent-node/package.json +4 -4
  83. package/node_modules/@smithy/abort-controller/dist-cjs/index.js +1 -4
  84. package/node_modules/@smithy/abort-controller/package.json +2 -2
  85. package/node_modules/@smithy/config-resolver/dist-cjs/index.js +10 -10
  86. package/node_modules/@smithy/config-resolver/package.json +4 -4
  87. package/node_modules/@smithy/core/package.json +8 -8
  88. package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +5 -5
  89. package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
  90. package/node_modules/@smithy/eventstream-codec/package.json +2 -2
  91. package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +1 -1
  92. package/node_modules/@smithy/fetch-http-handler/package.json +5 -5
  93. package/node_modules/@smithy/hash-node/package.json +2 -2
  94. package/node_modules/@smithy/invalid-dependency/package.json +2 -2
  95. package/node_modules/@smithy/middleware-content-length/package.json +4 -4
  96. package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +4 -4
  97. package/node_modules/@smithy/middleware-endpoint/package.json +7 -7
  98. package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +11 -10
  99. package/node_modules/@smithy/middleware-retry/dist-es/retryMiddleware.js +1 -0
  100. package/node_modules/@smithy/middleware-retry/dist-types/configurations.d.ts +7 -2
  101. package/node_modules/@smithy/middleware-retry/dist-types/retryDecider.d.ts +3 -0
  102. package/node_modules/@smithy/middleware-retry/dist-types/ts3.4/configurations.d.ts +7 -2
  103. package/node_modules/@smithy/middleware-retry/dist-types/ts3.4/retryDecider.d.ts +3 -0
  104. package/node_modules/@smithy/middleware-retry/package.json +9 -9
  105. package/node_modules/@smithy/middleware-serde/dist-cjs/index.js +2 -2
  106. package/node_modules/@smithy/middleware-serde/package.json +3 -3
  107. package/node_modules/@smithy/middleware-stack/package.json +2 -2
  108. package/node_modules/@smithy/node-config-provider/package.json +4 -4
  109. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +54 -4
  110. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +41 -3
  111. package/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +12 -0
  112. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +11 -0
  113. package/node_modules/@smithy/node-http-handler/package.json +5 -5
  114. package/node_modules/@smithy/property-provider/package.json +2 -2
  115. package/node_modules/@smithy/protocol-http/dist-cjs/index.js +3 -3
  116. package/node_modules/@smithy/protocol-http/dist-types/httpHandler.d.ts +22 -3
  117. package/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpHandler.d.ts +20 -1
  118. package/node_modules/@smithy/protocol-http/package.json +2 -2
  119. package/node_modules/@smithy/querystring-builder/package.json +2 -2
  120. package/node_modules/@smithy/querystring-parser/package.json +2 -2
  121. package/node_modules/@smithy/service-error-classification/dist-cjs/index.js +10 -4
  122. package/node_modules/@smithy/service-error-classification/dist-es/index.js +3 -1
  123. package/node_modules/@smithy/service-error-classification/dist-types/index.d.ts +7 -0
  124. package/node_modules/@smithy/service-error-classification/dist-types/ts3.4/index.d.ts +7 -0
  125. package/node_modules/@smithy/service-error-classification/package.json +2 -2
  126. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +7 -7
  127. package/node_modules/@smithy/shared-ini-file-loader/dist-es/getSsoSessionData.js +1 -1
  128. package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
  129. package/node_modules/@smithy/signature-v4/dist-cjs/index.js +5 -5
  130. package/node_modules/@smithy/signature-v4/package.json +5 -5
  131. package/node_modules/@smithy/smithy-client/dist-cjs/index.js +38 -38
  132. package/node_modules/@smithy/smithy-client/dist-types/client.d.ts +6 -3
  133. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/client.d.ts +6 -3
  134. package/node_modules/@smithy/smithy-client/package.json +6 -6
  135. package/node_modules/@smithy/types/dist-cjs/index.js +7 -7
  136. package/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts +18 -4
  137. package/node_modules/@smithy/types/dist-types/retry.d.ts +6 -1
  138. package/node_modules/@smithy/types/dist-types/shapes.d.ts +10 -1
  139. package/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +18 -4
  140. package/node_modules/@smithy/types/dist-types/ts3.4/retry.d.ts +6 -1
  141. package/node_modules/@smithy/types/dist-types/ts3.4/shapes.d.ts +10 -1
  142. package/node_modules/@smithy/types/package.json +1 -1
  143. package/node_modules/@smithy/url-parser/package.json +3 -3
  144. package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
  145. package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
  146. package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +3 -3
  147. package/node_modules/@smithy/util-endpoints/package.json +3 -3
  148. package/node_modules/@smithy/util-middleware/package.json +2 -2
  149. package/node_modules/@smithy/util-retry/dist-cjs/index.js +10 -10
  150. package/node_modules/@smithy/util-retry/package.json +3 -3
  151. package/node_modules/@smithy/util-stream/package.json +5 -5
  152. package/node_modules/@smithy/util-waiter/dist-cjs/index.js +3 -3
  153. package/node_modules/@smithy/util-waiter/package.json +3 -3
  154. package/package.json +5 -5
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-serde",
3
- "version": "2.1.1",
3
+ "version": "2.1.3",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline middleware-serde",
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@smithy/types": "^2.9.1",
26
+ "@smithy/types": "^2.10.1",
27
27
  "tslib": "^2.5.0"
28
28
  },
29
29
  "engines": {
@@ -46,7 +46,7 @@
46
46
  "directory": "packages/middleware-serde"
47
47
  },
48
48
  "devDependencies": {
49
- "@smithy/util-test": "^0.1.14",
49
+ "@smithy/util-test": "^0.1.16",
50
50
  "@tsconfig/recommended": "1.0.1",
51
51
  "concurrently": "7.0.0",
52
52
  "downlevel-dts": "0.10.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-stack",
3
- "version": "2.1.1",
3
+ "version": "2.1.3",
4
4
  "description": "Provides a means for composing multiple middleware functions into a single handler",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
@@ -25,7 +25,7 @@
25
25
  "module": "./dist-es/index.js",
26
26
  "types": "./dist-types/index.d.ts",
27
27
  "dependencies": {
28
- "@smithy/types": "^2.9.1",
28
+ "@smithy/types": "^2.10.1",
29
29
  "tslib": "^2.5.0"
30
30
  },
31
31
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/node-config-provider",
3
- "version": "2.2.1",
3
+ "version": "2.2.4",
4
4
  "description": "Load config default values from ini config files and environmental variable",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
@@ -24,9 +24,9 @@
24
24
  "module": "./dist-es/index.js",
25
25
  "types": "./dist-types/index.d.ts",
26
26
  "dependencies": {
27
- "@smithy/property-provider": "^2.1.1",
28
- "@smithy/shared-ini-file-loader": "^2.3.1",
29
- "@smithy/types": "^2.9.1",
27
+ "@smithy/property-provider": "^2.1.3",
28
+ "@smithy/shared-ini-file-loader": "^2.3.4",
29
+ "@smithy/types": "^2.10.1",
30
30
  "tslib": "^2.5.0"
31
31
  },
32
32
  "devDependencies": {
@@ -144,6 +144,7 @@ __name(writeBody, "writeBody");
144
144
  var DEFAULT_REQUEST_TIMEOUT = 0;
145
145
  var _NodeHttpHandler = class _NodeHttpHandler {
146
146
  constructor(options) {
147
+ this.socketWarningTimestamp = 0;
147
148
  // Node http handler is hard-coded to http/1.1: https://github.com/nodejs/node/blob/ff5664b83b89c55e4ab5d5f60068fb457f1f5872/lib/_http_server.js#L286
148
149
  this.metadata = { handlerProtocol: "http/1.1" };
149
150
  this.configProvider = new Promise((resolve, reject) => {
@@ -166,6 +167,39 @@ var _NodeHttpHandler = class _NodeHttpHandler {
166
167
  }
167
168
  return new _NodeHttpHandler(instanceOrOptions);
168
169
  }
170
+ /**
171
+ * @internal
172
+ *
173
+ * @param agent - http(s) agent in use by the NodeHttpHandler instance.
174
+ * @returns timestamp of last emitted warning.
175
+ */
176
+ static checkSocketUsage(agent, socketWarningTimestamp) {
177
+ var _a, _b;
178
+ const { sockets, requests, maxSockets } = agent;
179
+ if (typeof maxSockets !== "number" || maxSockets === Infinity) {
180
+ return socketWarningTimestamp;
181
+ }
182
+ const interval = 15e3;
183
+ if (Date.now() - interval < socketWarningTimestamp) {
184
+ return socketWarningTimestamp;
185
+ }
186
+ if (sockets && requests) {
187
+ for (const origin in sockets) {
188
+ const socketsInUse = ((_a = sockets[origin]) == null ? void 0 : _a.length) ?? 0;
189
+ const requestsEnqueued = ((_b = requests[origin]) == null ? void 0 : _b.length) ?? 0;
190
+ if (socketsInUse >= maxSockets && requestsEnqueued >= 2 * maxSockets) {
191
+ console.warn(
192
+ "@smithy/node-http-handler:WARN",
193
+ `socket usage at capacity=${socketsInUse} and ${requestsEnqueued} additional requests are enqueued.`,
194
+ "See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html",
195
+ "or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config."
196
+ );
197
+ return Date.now();
198
+ }
199
+ }
200
+ }
201
+ return socketWarningTimestamp;
202
+ }
169
203
  resolveDefaultConfig(options) {
170
204
  const { requestTimeout, connectionTimeout, socketTimeout, httpAgent, httpsAgent } = options || {};
171
205
  const keepAlive = true;
@@ -173,8 +207,18 @@ var _NodeHttpHandler = class _NodeHttpHandler {
173
207
  return {
174
208
  connectionTimeout,
175
209
  requestTimeout: requestTimeout ?? socketTimeout,
176
- httpAgent: httpAgent || new import_http.Agent({ keepAlive, maxSockets }),
177
- httpsAgent: httpsAgent || new import_https.Agent({ keepAlive, maxSockets })
210
+ httpAgent: (() => {
211
+ if (httpAgent instanceof import_http.Agent || typeof (httpAgent == null ? void 0 : httpAgent.destroy) === "function") {
212
+ return httpAgent;
213
+ }
214
+ return new import_http.Agent({ keepAlive, maxSockets, ...httpAgent });
215
+ })(),
216
+ httpsAgent: (() => {
217
+ if (httpsAgent instanceof import_https.Agent || typeof (httpsAgent == null ? void 0 : httpsAgent.destroy) === "function") {
218
+ return httpsAgent;
219
+ }
220
+ return new import_https.Agent({ keepAlive, maxSockets, ...httpsAgent });
221
+ })()
178
222
  };
179
223
  }
180
224
  destroy() {
@@ -186,10 +230,12 @@ var _NodeHttpHandler = class _NodeHttpHandler {
186
230
  if (!this.config) {
187
231
  this.config = await this.configProvider;
188
232
  }
233
+ let socketCheckTimeoutId;
189
234
  return new Promise((_resolve, _reject) => {
190
235
  let writeRequestBodyPromise = void 0;
191
236
  const resolve = /* @__PURE__ */ __name(async (arg) => {
192
237
  await writeRequestBodyPromise;
238
+ clearTimeout(socketCheckTimeoutId);
193
239
  _resolve(arg);
194
240
  }, "resolve");
195
241
  const reject = /* @__PURE__ */ __name(async (arg) => {
@@ -206,6 +252,10 @@ var _NodeHttpHandler = class _NodeHttpHandler {
206
252
  return;
207
253
  }
208
254
  const isSSL = request.protocol === "https:";
255
+ const agent = isSSL ? this.config.httpsAgent : this.config.httpAgent;
256
+ socketCheckTimeoutId = setTimeout(() => {
257
+ this.socketWarningTimestamp = _NodeHttpHandler.checkSocketUsage(agent, this.socketWarningTimestamp);
258
+ }, this.config.socketAcquisitionWarningTimeout ?? (this.config.requestTimeout ?? 2e3) + (this.config.connectionTimeout ?? 1e3));
209
259
  const queryString = (0, import_querystring_builder.buildQueryString)(request.query || {});
210
260
  let auth = void 0;
211
261
  if (request.username != null || request.password != null) {
@@ -226,7 +276,7 @@ var _NodeHttpHandler = class _NodeHttpHandler {
226
276
  method: request.method,
227
277
  path,
228
278
  port: request.port,
229
- agent: isSSL ? this.config.httpsAgent : this.config.httpAgent,
279
+ agent,
230
280
  auth
231
281
  };
232
282
  const requestFunc = isSSL ? import_https.request : import_http.request;
@@ -619,8 +669,8 @@ var streamCollector = /* @__PURE__ */ __name((stream) => new Promise((resolve, r
619
669
 
620
670
  0 && (module.exports = {
621
671
  DEFAULT_REQUEST_TIMEOUT,
622
- NodeHttp2Handler,
623
672
  NodeHttpHandler,
673
+ NodeHttp2Handler,
624
674
  streamCollector
625
675
  });
626
676
 
@@ -16,7 +16,29 @@ export class NodeHttpHandler {
16
16
  }
17
17
  return new NodeHttpHandler(instanceOrOptions);
18
18
  }
19
+ static checkSocketUsage(agent, socketWarningTimestamp) {
20
+ const { sockets, requests, maxSockets } = agent;
21
+ if (typeof maxSockets !== "number" || maxSockets === Infinity) {
22
+ return socketWarningTimestamp;
23
+ }
24
+ const interval = 15000;
25
+ if (Date.now() - interval < socketWarningTimestamp) {
26
+ return socketWarningTimestamp;
27
+ }
28
+ if (sockets && requests) {
29
+ for (const origin in sockets) {
30
+ const socketsInUse = sockets[origin]?.length ?? 0;
31
+ const requestsEnqueued = requests[origin]?.length ?? 0;
32
+ if (socketsInUse >= maxSockets && requestsEnqueued >= 2 * maxSockets) {
33
+ console.warn("@smithy/node-http-handler:WARN", `socket usage at capacity=${socketsInUse} and ${requestsEnqueued} additional requests are enqueued.`, "See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html", "or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.");
34
+ return Date.now();
35
+ }
36
+ }
37
+ }
38
+ return socketWarningTimestamp;
39
+ }
19
40
  constructor(options) {
41
+ this.socketWarningTimestamp = 0;
20
42
  this.metadata = { handlerProtocol: "http/1.1" };
21
43
  this.configProvider = new Promise((resolve, reject) => {
22
44
  if (typeof options === "function") {
@@ -38,8 +60,18 @@ export class NodeHttpHandler {
38
60
  return {
39
61
  connectionTimeout,
40
62
  requestTimeout: requestTimeout ?? socketTimeout,
41
- httpAgent: httpAgent || new hAgent({ keepAlive, maxSockets }),
42
- httpsAgent: httpsAgent || new hsAgent({ keepAlive, maxSockets }),
63
+ httpAgent: (() => {
64
+ if (httpAgent instanceof hAgent || typeof httpAgent?.destroy === "function") {
65
+ return httpAgent;
66
+ }
67
+ return new hAgent({ keepAlive, maxSockets, ...httpAgent });
68
+ })(),
69
+ httpsAgent: (() => {
70
+ if (httpsAgent instanceof hsAgent || typeof httpsAgent?.destroy === "function") {
71
+ return httpsAgent;
72
+ }
73
+ return new hsAgent({ keepAlive, maxSockets, ...httpsAgent });
74
+ })(),
43
75
  };
44
76
  }
45
77
  destroy() {
@@ -50,10 +82,12 @@ export class NodeHttpHandler {
50
82
  if (!this.config) {
51
83
  this.config = await this.configProvider;
52
84
  }
85
+ let socketCheckTimeoutId;
53
86
  return new Promise((_resolve, _reject) => {
54
87
  let writeRequestBodyPromise = undefined;
55
88
  const resolve = async (arg) => {
56
89
  await writeRequestBodyPromise;
90
+ clearTimeout(socketCheckTimeoutId);
57
91
  _resolve(arg);
58
92
  };
59
93
  const reject = async (arg) => {
@@ -70,6 +104,10 @@ export class NodeHttpHandler {
70
104
  return;
71
105
  }
72
106
  const isSSL = request.protocol === "https:";
107
+ const agent = isSSL ? this.config.httpsAgent : this.config.httpAgent;
108
+ socketCheckTimeoutId = setTimeout(() => {
109
+ this.socketWarningTimestamp = NodeHttpHandler.checkSocketUsage(agent, this.socketWarningTimestamp);
110
+ }, this.config.socketAcquisitionWarningTimeout ?? (this.config.requestTimeout ?? 2000) + (this.config.connectionTimeout ?? 1000));
73
111
  const queryString = buildQueryString(request.query || {});
74
112
  let auth = undefined;
75
113
  if (request.username != null || request.password != null) {
@@ -90,7 +128,7 @@ export class NodeHttpHandler {
90
128
  method: request.method,
91
129
  path,
92
130
  port: request.port,
93
- agent: isSSL ? this.config.httpsAgent : this.config.httpAgent,
131
+ agent,
94
132
  auth,
95
133
  };
96
134
  const requestFunc = isSSL ? hsRequest : hRequest;
@@ -1,11 +1,16 @@
1
+ /// <reference types="node" />
2
+ /// <reference types="node" />
1
3
  import { HttpHandler, HttpRequest, HttpResponse } from "@smithy/protocol-http";
2
4
  import type { NodeHttpHandlerOptions } from "@smithy/types";
3
5
  import { HttpHandlerOptions, Provider } from "@smithy/types";
6
+ import { Agent as hAgent } from "http";
7
+ import { Agent as hsAgent } from "https";
4
8
  export { NodeHttpHandlerOptions };
5
9
  export declare const DEFAULT_REQUEST_TIMEOUT = 0;
6
10
  export declare class NodeHttpHandler implements HttpHandler<NodeHttpHandlerOptions> {
7
11
  private config?;
8
12
  private configProvider;
13
+ private socketWarningTimestamp;
9
14
  readonly metadata: {
10
15
  handlerProtocol: string;
11
16
  };
@@ -14,6 +19,13 @@ export declare class NodeHttpHandler implements HttpHandler<NodeHttpHandlerOptio
14
19
  * or instantiates a new instance of this handler.
15
20
  */
16
21
  static create(instanceOrOptions?: HttpHandler<any> | NodeHttpHandlerOptions | Provider<NodeHttpHandlerOptions | void>): NodeHttpHandler | HttpHandler<any>;
22
+ /**
23
+ * @internal
24
+ *
25
+ * @param agent - http(s) agent in use by the NodeHttpHandler instance.
26
+ * @returns timestamp of last emitted warning.
27
+ */
28
+ static checkSocketUsage(agent: hAgent | hsAgent, socketWarningTimestamp: number): number;
17
29
  constructor(options?: NodeHttpHandlerOptions | Provider<NodeHttpHandlerOptions | void>);
18
30
  private resolveDefaultConfig;
19
31
  destroy(): void;
@@ -1,11 +1,15 @@
1
+ /// <reference types="node" />
1
2
  import { HttpHandler, HttpRequest, HttpResponse } from "@smithy/protocol-http";
2
3
  import { NodeHttpHandlerOptions } from "@smithy/types";
3
4
  import { HttpHandlerOptions, Provider } from "@smithy/types";
5
+ import { Agent as hAgent } from "http";
6
+ import { Agent as hsAgent } from "https";
4
7
  export { NodeHttpHandlerOptions };
5
8
  export declare const DEFAULT_REQUEST_TIMEOUT = 0;
6
9
  export declare class NodeHttpHandler implements HttpHandler<NodeHttpHandlerOptions> {
7
10
  private config?;
8
11
  private configProvider;
12
+ private socketWarningTimestamp;
9
13
  readonly metadata: {
10
14
  handlerProtocol: string;
11
15
  };
@@ -14,6 +18,13 @@ export declare class NodeHttpHandler implements HttpHandler<NodeHttpHandlerOptio
14
18
  * or instantiates a new instance of this handler.
15
19
  */
16
20
  static create(instanceOrOptions?: HttpHandler<any> | NodeHttpHandlerOptions | Provider<NodeHttpHandlerOptions | void>): NodeHttpHandler | HttpHandler<any>;
21
+ /**
22
+ * @internal
23
+ *
24
+ * @param agent - http(s) agent in use by the NodeHttpHandler instance.
25
+ * @returns timestamp of last emitted warning.
26
+ */
27
+ static checkSocketUsage(agent: hAgent | hsAgent, socketWarningTimestamp: number): number;
17
28
  constructor(options?: NodeHttpHandlerOptions | Provider<NodeHttpHandlerOptions | void>);
18
29
  private resolveDefaultConfig;
19
30
  destroy(): void;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/node-http-handler",
3
- "version": "2.3.1",
3
+ "version": "2.4.1",
4
4
  "description": "Provides a way to make requests",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
@@ -25,10 +25,10 @@
25
25
  "module": "./dist-es/index.js",
26
26
  "types": "./dist-types/index.d.ts",
27
27
  "dependencies": {
28
- "@smithy/abort-controller": "^2.1.1",
29
- "@smithy/protocol-http": "^3.1.1",
30
- "@smithy/querystring-builder": "^2.1.1",
31
- "@smithy/types": "^2.9.1",
28
+ "@smithy/abort-controller": "^2.1.3",
29
+ "@smithy/protocol-http": "^3.2.1",
30
+ "@smithy/querystring-builder": "^2.1.3",
31
+ "@smithy/types": "^2.10.1",
32
32
  "tslib": "^2.5.0"
33
33
  },
34
34
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/property-provider",
3
- "version": "2.1.1",
3
+ "version": "2.1.3",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline property-provider",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@smithy/types": "^2.9.1",
25
+ "@smithy/types": "^2.10.1",
26
26
  "tslib": "^2.5.0"
27
27
  },
28
28
  "engines": {
@@ -226,12 +226,12 @@ __name(isValidHostname, "isValidHostname");
226
226
  // Annotate the CommonJS export names for ESM import in node:
227
227
 
228
228
  0 && (module.exports = {
229
+ getHttpHandlerExtensionConfiguration,
230
+ resolveHttpHandlerRuntimeConfig,
229
231
  Field,
230
232
  Fields,
231
233
  HttpRequest,
232
234
  HttpResponse,
233
- getHttpHandlerExtensionConfiguration,
234
- isValidHostname,
235
- resolveHttpHandlerRuntimeConfig
235
+ isValidHostname
236
236
  });
237
237
 
@@ -1,6 +1,6 @@
1
- import { HttpHandlerOptions, RequestHandler } from "@smithy/types";
2
- import { HttpRequest } from "./httpRequest";
3
- import { HttpResponse } from "./httpResponse";
1
+ import type { FetchHttpHandlerOptions, HttpHandlerOptions, NodeHttpHandlerOptions, RequestHandler } from "@smithy/types";
2
+ import type { HttpRequest } from "./httpRequest";
3
+ import type { HttpResponse } from "./httpResponse";
4
4
  /**
5
5
  * @internal
6
6
  */
@@ -16,3 +16,22 @@ export type HttpHandler<HttpHandlerConfig extends object = {}> = RequestHandler<
16
16
  */
17
17
  httpHandlerConfigs(): HttpHandlerConfig;
18
18
  };
19
+ /**
20
+ * @public
21
+ *
22
+ * A type representing the accepted user inputs for the `requestHandler` field
23
+ * of a client's constructor object.
24
+ *
25
+ * You may provide an instance of an HttpHandler, or alternatively
26
+ * provide the constructor arguments as an object which will be passed
27
+ * to the constructor of the default request handler.
28
+ *
29
+ * The default class constructor to which your arguments will be passed
30
+ * varies. The Node.js default is the NodeHttpHandler and the browser/react-native
31
+ * default is the FetchHttpHandler. In rarer cases specific clients may be
32
+ * configured to use other default implementations such as Websocket or HTTP2.
33
+ *
34
+ * The fallback type Record<string, unknown> is part of the union to allow
35
+ * passing constructor params to an unknown requestHandler type.
36
+ */
37
+ export type HttpHandlerUserInput = HttpHandler | NodeHttpHandlerOptions | FetchHttpHandlerOptions | Record<string, unknown>;
@@ -1,4 +1,4 @@
1
- import { HttpHandlerOptions, RequestHandler } from "@smithy/types";
1
+ import { FetchHttpHandlerOptions, HttpHandlerOptions, NodeHttpHandlerOptions, RequestHandler } from "@smithy/types";
2
2
  import { HttpRequest } from "./httpRequest";
3
3
  import { HttpResponse } from "./httpResponse";
4
4
  /**
@@ -16,3 +16,22 @@ export type HttpHandler<HttpHandlerConfig extends object = {}> = RequestHandler<
16
16
  */
17
17
  httpHandlerConfigs(): HttpHandlerConfig;
18
18
  };
19
+ /**
20
+ * @public
21
+ *
22
+ * A type representing the accepted user inputs for the `requestHandler` field
23
+ * of a client's constructor object.
24
+ *
25
+ * You may provide an instance of an HttpHandler, or alternatively
26
+ * provide the constructor arguments as an object which will be passed
27
+ * to the constructor of the default request handler.
28
+ *
29
+ * The default class constructor to which your arguments will be passed
30
+ * varies. The Node.js default is the NodeHttpHandler and the browser/react-native
31
+ * default is the FetchHttpHandler. In rarer cases specific clients may be
32
+ * configured to use other default implementations such as Websocket or HTTP2.
33
+ *
34
+ * The fallback type Record<string, unknown> is part of the union to allow
35
+ * passing constructor params to an unknown requestHandler type.
36
+ */
37
+ export type HttpHandlerUserInput = HttpHandler | NodeHttpHandlerOptions | FetchHttpHandlerOptions | Record<string, unknown>;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/protocol-http",
3
- "version": "3.1.1",
3
+ "version": "3.2.1",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline protocol-http",
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@smithy/types": "^2.9.1",
26
+ "@smithy/types": "^2.10.1",
27
27
  "tslib": "^2.5.0"
28
28
  },
29
29
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/querystring-builder",
3
- "version": "2.1.1",
3
+ "version": "2.1.3",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline querystring-builder",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@smithy/types": "^2.9.1",
25
+ "@smithy/types": "^2.10.1",
26
26
  "@smithy/util-uri-escape": "^2.1.1",
27
27
  "tslib": "^2.5.0"
28
28
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/querystring-parser",
3
- "version": "2.1.1",
3
+ "version": "2.1.3",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline querystring-parser",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@smithy/types": "^2.9.1",
25
+ "@smithy/types": "^2.10.1",
26
26
  "tslib": "^2.5.0"
27
27
  },
28
28
  "engines": {
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/index.ts
21
21
  var src_exports = {};
22
22
  __export(src_exports, {
23
+ isClockSkewCorrectedError: () => isClockSkewCorrectedError,
23
24
  isClockSkewError: () => isClockSkewError,
24
25
  isRetryableByTrait: () => isRetryableByTrait,
25
26
  isServerError: () => isServerError,
@@ -61,13 +62,17 @@ var NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "ECONNREFUSED", "EPIPE", "ETIMED
61
62
  // src/index.ts
62
63
  var isRetryableByTrait = /* @__PURE__ */ __name((error) => error.$retryable !== void 0, "isRetryableByTrait");
63
64
  var isClockSkewError = /* @__PURE__ */ __name((error) => CLOCK_SKEW_ERROR_CODES.includes(error.name), "isClockSkewError");
65
+ var isClockSkewCorrectedError = /* @__PURE__ */ __name((error) => {
66
+ var _a;
67
+ return (_a = error.$metadata) == null ? void 0 : _a.clockSkewCorrected;
68
+ }, "isClockSkewCorrectedError");
64
69
  var isThrottlingError = /* @__PURE__ */ __name((error) => {
65
70
  var _a, _b;
66
71
  return ((_a = error.$metadata) == null ? void 0 : _a.httpStatusCode) === 429 || THROTTLING_ERROR_CODES.includes(error.name) || ((_b = error.$retryable) == null ? void 0 : _b.throttling) == true;
67
72
  }, "isThrottlingError");
68
73
  var isTransientError = /* @__PURE__ */ __name((error) => {
69
74
  var _a;
70
- return TRANSIENT_ERROR_CODES.includes(error.name) || NODEJS_TIMEOUT_ERROR_CODES.includes((error == null ? void 0 : error.code) || "") || TRANSIENT_ERROR_STATUS_CODES.includes(((_a = error.$metadata) == null ? void 0 : _a.httpStatusCode) || 0);
75
+ return isClockSkewCorrectedError(error) || TRANSIENT_ERROR_CODES.includes(error.name) || NODEJS_TIMEOUT_ERROR_CODES.includes((error == null ? void 0 : error.code) || "") || TRANSIENT_ERROR_STATUS_CODES.includes(((_a = error.$metadata) == null ? void 0 : _a.httpStatusCode) || 0);
71
76
  }, "isTransientError");
72
77
  var isServerError = /* @__PURE__ */ __name((error) => {
73
78
  var _a;
@@ -83,10 +88,11 @@ var isServerError = /* @__PURE__ */ __name((error) => {
83
88
  // Annotate the CommonJS export names for ESM import in node:
84
89
 
85
90
  0 && (module.exports = {
86
- isClockSkewError,
87
91
  isRetryableByTrait,
88
- isServerError,
92
+ isClockSkewError,
93
+ isClockSkewCorrectedError,
89
94
  isThrottlingError,
90
- isTransientError
95
+ isTransientError,
96
+ isServerError
91
97
  });
92
98
 
@@ -1,10 +1,12 @@
1
1
  import { CLOCK_SKEW_ERROR_CODES, NODEJS_TIMEOUT_ERROR_CODES, THROTTLING_ERROR_CODES, TRANSIENT_ERROR_CODES, TRANSIENT_ERROR_STATUS_CODES, } from "./constants";
2
2
  export const isRetryableByTrait = (error) => error.$retryable !== undefined;
3
3
  export const isClockSkewError = (error) => CLOCK_SKEW_ERROR_CODES.includes(error.name);
4
+ export const isClockSkewCorrectedError = (error) => error.$metadata?.clockSkewCorrected;
4
5
  export const isThrottlingError = (error) => error.$metadata?.httpStatusCode === 429 ||
5
6
  THROTTLING_ERROR_CODES.includes(error.name) ||
6
7
  error.$retryable?.throttling == true;
7
- export const isTransientError = (error) => TRANSIENT_ERROR_CODES.includes(error.name) ||
8
+ export const isTransientError = (error) => isClockSkewCorrectedError(error) ||
9
+ TRANSIENT_ERROR_CODES.includes(error.name) ||
8
10
  NODEJS_TIMEOUT_ERROR_CODES.includes(error?.code || "") ||
9
11
  TRANSIENT_ERROR_STATUS_CODES.includes(error.$metadata?.httpStatusCode || 0);
10
12
  export const isServerError = (error) => {
@@ -1,6 +1,13 @@
1
1
  import { SdkError } from "@smithy/types";
2
2
  export declare const isRetryableByTrait: (error: SdkError) => boolean;
3
+ /**
4
+ * @deprecated use isClockSkewCorrectedError. This is only used in deprecated code.
5
+ */
3
6
  export declare const isClockSkewError: (error: SdkError) => boolean;
7
+ /**
8
+ * @returns whether the error resulted in a systemClockOffset aka clock skew correction.
9
+ */
10
+ export declare const isClockSkewCorrectedError: (error: SdkError) => true | undefined;
4
11
  export declare const isThrottlingError: (error: SdkError) => boolean;
5
12
  /**
6
13
  * Though NODEJS_TIMEOUT_ERROR_CODES are platform specific, they are
@@ -1,6 +1,13 @@
1
1
  import { SdkError } from "@smithy/types";
2
2
  export declare const isRetryableByTrait: (error: SdkError) => boolean;
3
+ /**
4
+ * @deprecated use isClockSkewCorrectedError. This is only used in deprecated code.
5
+ */
3
6
  export declare const isClockSkewError: (error: SdkError) => boolean;
7
+ /**
8
+ * @returns whether the error resulted in a systemClockOffset aka clock skew correction.
9
+ */
10
+ export declare const isClockSkewCorrectedError: (error: SdkError) => true | undefined;
4
11
  export declare const isThrottlingError: (error: SdkError) => boolean;
5
12
  /**
6
13
  * Though NODEJS_TIMEOUT_ERROR_CODES are platform specific, they are
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/service-error-classification",
3
- "version": "2.1.1",
3
+ "version": "2.1.3",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline service-error-classification",
@@ -54,6 +54,6 @@
54
54
  "directory": ".release/package"
55
55
  },
56
56
  "dependencies": {
57
- "@smithy/types": "^2.9.1"
57
+ "@smithy/types": "^2.10.1"
58
58
  }
59
59
  }
@@ -146,7 +146,7 @@ var loadSharedConfigFiles = /* @__PURE__ */ __name(async (init = {}) => {
146
146
 
147
147
  // src/getSsoSessionData.ts
148
148
 
149
- var getSsoSessionData = /* @__PURE__ */ __name((data) => Object.entries(data).filter(([key]) => key.startsWith(import_types.IniSectionType.SSO_SESSION + CONFIG_PREFIX_SEPARATOR)).reduce((acc, [key, value]) => ({ ...acc, [key.split(CONFIG_PREFIX_SEPARATOR)[1]]: value }), {}), "getSsoSessionData");
149
+ var getSsoSessionData = /* @__PURE__ */ __name((data) => Object.entries(data).filter(([key]) => key.startsWith(import_types.IniSectionType.SSO_SESSION + CONFIG_PREFIX_SEPARATOR)).reduce((acc, [key, value]) => ({ ...acc, [key.substring(key.indexOf(CONFIG_PREFIX_SEPARATOR) + 1)]: value }), {}), "getSsoSessionData");
150
150
 
151
151
  // src/loadSsoSessionData.ts
152
152
  var import_slurpFile2 = require("././slurpFile");
@@ -176,15 +176,15 @@ var parseKnownFiles = /* @__PURE__ */ __name(async (init) => {
176
176
  // Annotate the CommonJS export names for ESM import in node:
177
177
 
178
178
  0 && (module.exports = {
179
- CONFIG_PREFIX_SEPARATOR,
180
- DEFAULT_PROFILE,
179
+ getHomeDir,
181
180
  ENV_PROFILE,
181
+ DEFAULT_PROFILE,
182
182
  getProfileName,
183
+ getSSOTokenFilepath,
184
+ getSSOTokenFromFile,
185
+ CONFIG_PREFIX_SEPARATOR,
183
186
  loadSharedConfigFiles,
184
187
  loadSsoSessionData,
185
- parseKnownFiles,
186
- getHomeDir,
187
- getSSOTokenFilepath,
188
- getSSOTokenFromFile
188
+ parseKnownFiles
189
189
  });
190
190
 
@@ -2,4 +2,4 @@ import { IniSectionType } from "@smithy/types";
2
2
  import { CONFIG_PREFIX_SEPARATOR } from "./loadSharedConfigFiles";
3
3
  export const getSsoSessionData = (data) => Object.entries(data)
4
4
  .filter(([key]) => key.startsWith(IniSectionType.SSO_SESSION + CONFIG_PREFIX_SEPARATOR))
5
- .reduce((acc, [key, value]) => ({ ...acc, [key.split(CONFIG_PREFIX_SEPARATOR)[1]]: value }), {});
5
+ .reduce((acc, [key, value]) => ({ ...acc, [key.substring(key.indexOf(CONFIG_PREFIX_SEPARATOR) + 1)]: value }), {});
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@smithy/shared-ini-file-loader",
3
- "version": "2.3.1",
3
+ "version": "2.3.4",
4
4
  "dependencies": {
5
- "@smithy/types": "^2.9.1",
5
+ "@smithy/types": "^2.10.1",
6
6
  "tslib": "^2.5.0"
7
7
  },
8
8
  "devDependencies": {