@aws-sdk/middleware-endpoint-discovery 3.774.0 → 3.804.0

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/dist-cjs/index.js CHANGED
@@ -207,13 +207,15 @@ var getEndpointDiscoveryOptionalPlugin = /* @__PURE__ */ __name((pluginConfig, m
207
207
 
208
208
  // src/resolveEndpointDiscoveryConfig.ts
209
209
  var import_endpoint_cache = require("@aws-sdk/endpoint-cache");
210
- var resolveEndpointDiscoveryConfig = /* @__PURE__ */ __name((input, { endpointDiscoveryCommandCtor }) => ({
211
- ...input,
212
- endpointDiscoveryCommandCtor,
213
- endpointCache: new import_endpoint_cache.EndpointCache(input.endpointCacheSize ?? 1e3),
214
- endpointDiscoveryEnabled: input.endpointDiscoveryEnabled !== void 0 ? () => Promise.resolve(input.endpointDiscoveryEnabled) : input.endpointDiscoveryEnabledProvider,
215
- isClientEndpointDiscoveryEnabled: input.endpointDiscoveryEnabled !== void 0
216
- }), "resolveEndpointDiscoveryConfig");
210
+ var resolveEndpointDiscoveryConfig = /* @__PURE__ */ __name((input, { endpointDiscoveryCommandCtor }) => {
211
+ const { endpointCacheSize, endpointDiscoveryEnabled, endpointDiscoveryEnabledProvider } = input;
212
+ return Object.assign(input, {
213
+ endpointDiscoveryCommandCtor,
214
+ endpointCache: new import_endpoint_cache.EndpointCache(endpointCacheSize ?? 1e3),
215
+ endpointDiscoveryEnabled: endpointDiscoveryEnabled !== void 0 ? () => Promise.resolve(endpointDiscoveryEnabled) : endpointDiscoveryEnabledProvider,
216
+ isClientEndpointDiscoveryEnabled: endpointDiscoveryEnabled !== void 0
217
+ });
218
+ }, "resolveEndpointDiscoveryConfig");
217
219
  // Annotate the CommonJS export names for ESM import in node:
218
220
 
219
221
  0 && (module.exports = {
@@ -1,10 +1,12 @@
1
1
  import { EndpointCache } from "@aws-sdk/endpoint-cache";
2
- export const resolveEndpointDiscoveryConfig = (input, { endpointDiscoveryCommandCtor }) => ({
3
- ...input,
4
- endpointDiscoveryCommandCtor,
5
- endpointCache: new EndpointCache(input.endpointCacheSize ?? 1000),
6
- endpointDiscoveryEnabled: input.endpointDiscoveryEnabled !== undefined
7
- ? () => Promise.resolve(input.endpointDiscoveryEnabled)
8
- : input.endpointDiscoveryEnabledProvider,
9
- isClientEndpointDiscoveryEnabled: input.endpointDiscoveryEnabled !== undefined,
10
- });
2
+ export const resolveEndpointDiscoveryConfig = (input, { endpointDiscoveryCommandCtor }) => {
3
+ const { endpointCacheSize, endpointDiscoveryEnabled, endpointDiscoveryEnabledProvider } = input;
4
+ return Object.assign(input, {
5
+ endpointDiscoveryCommandCtor,
6
+ endpointCache: new EndpointCache(endpointCacheSize ?? 1000),
7
+ endpointDiscoveryEnabled: endpointDiscoveryEnabled !== undefined
8
+ ? () => Promise.resolve(endpointDiscoveryEnabled)
9
+ : endpointDiscoveryEnabledProvider,
10
+ isClientEndpointDiscoveryEnabled: endpointDiscoveryEnabled !== undefined,
11
+ });
12
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-endpoint-discovery",
3
- "version": "3.774.0",
3
+ "version": "3.804.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "node ../../scripts/compilation/inline middleware-endpoint-discovery",
@@ -28,14 +28,14 @@
28
28
  "concurrently": "7.0.0",
29
29
  "downlevel-dts": "0.10.1",
30
30
  "rimraf": "3.0.2",
31
- "typescript": "~5.2.2"
31
+ "typescript": "~5.8.3"
32
32
  },
33
33
  "dependencies": {
34
- "@aws-sdk/endpoint-cache": "3.723.0",
35
- "@aws-sdk/types": "3.734.0",
36
- "@smithy/node-config-provider": "^4.0.1",
37
- "@smithy/protocol-http": "^5.0.1",
38
- "@smithy/types": "^4.1.0",
34
+ "@aws-sdk/endpoint-cache": "3.804.0",
35
+ "@aws-sdk/types": "3.804.0",
36
+ "@smithy/node-config-provider": "^4.0.2",
37
+ "@smithy/protocol-http": "^5.1.0",
38
+ "@smithy/types": "^4.2.0",
39
39
  "tslib": "^2.6.2"
40
40
  },
41
41
  "engines": {