@aws-sdk/middleware-endpoint-discovery 3.972.10 → 3.972.12

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
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var protocolHttp = require('@smithy/protocol-http');
3
+ var protocols = require('@smithy/core/protocols');
4
4
  var endpointCache = require('@aws-sdk/endpoint-cache');
5
5
 
6
6
  const ENV_ENDPOINT_DISCOVERY = ["AWS_ENABLE_ENDPOINT_DISCOVERY", "AWS_ENDPOINT_DISCOVERY_ENABLED"];
@@ -137,7 +137,7 @@ const endpointDiscoveryMiddleware = (config, middlewareConfig) => (next, context
137
137
  });
138
138
  }
139
139
  const { request } = args;
140
- if (cacheKey && protocolHttp.HttpRequest.isInstance(request)) {
140
+ if (cacheKey && protocols.HttpRequest.isInstance(request)) {
141
141
  const endpoint = config.endpointCache.getEndpoint(cacheKey);
142
142
  if (endpoint) {
143
143
  request.hostname = endpoint;
@@ -1,4 +1,4 @@
1
- import { HttpRequest } from "@smithy/protocol-http";
1
+ import { HttpRequest } from "@smithy/core/protocols";
2
2
  import { getCacheKey } from "./getCacheKey";
3
3
  import { updateDiscoveredEndpointInCache } from "./updateDiscoveredEndpointInCache";
4
4
  export const endpointDiscoveryMiddleware = (config, middlewareConfig) => (next, context) => async (args) => {
@@ -1,4 +1,4 @@
1
- import type { LoadedConfigSelectors } from "@smithy/node-config-provider";
1
+ import type { LoadedConfigSelectors } from "@smithy/core/config";
2
2
  /**
3
3
  * @internal
4
4
  */
@@ -1,4 +1,4 @@
1
- import { LoadedConfigSelectors } from "@smithy/node-config-provider";
1
+ import { LoadedConfigSelectors } from "@smithy/core/config";
2
2
  export declare const NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS: LoadedConfigSelectors<
3
3
  boolean | undefined
4
4
  >;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-endpoint-discovery",
3
- "version": "3.972.10",
3
+ "version": "3.972.12",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
6
6
  "build:cjs": "node ../../scripts/compilation/inline middleware-endpoint-discovery",
@@ -33,10 +33,9 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@aws-sdk/endpoint-cache": "^3.972.5",
36
- "@aws-sdk/types": "^3.973.7",
37
- "@smithy/node-config-provider": "^4.3.13",
38
- "@smithy/protocol-http": "^5.3.13",
39
- "@smithy/types": "^4.14.0",
36
+ "@aws-sdk/types": "^3.973.8",
37
+ "@smithy/core": "^3.24.1",
38
+ "@smithy/types": "^4.14.1",
40
39
  "tslib": "^2.6.2"
41
40
  },
42
41
  "engines": {