@aws-sdk/middleware-endpoint-discovery 3.357.0 → 3.369.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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.endpointDiscoveryMiddleware = void 0;
4
- const protocol_http_1 = require("@aws-sdk/protocol-http");
4
+ const protocol_http_1 = require("@smithy/protocol-http");
5
5
  const getCacheKey_1 = require("./getCacheKey");
6
6
  const updateDiscoveredEndpointInCache_1 = require("./updateDiscoveredEndpointInCache");
7
7
  const endpointDiscoveryMiddleware = (config, middlewareConfig) => (next, context) => async (args) => {
@@ -1,4 +1,4 @@
1
- import { HttpRequest } from "@aws-sdk/protocol-http";
1
+ import { HttpRequest } from "@smithy/protocol-http";
2
2
  import { getCacheKey } from "./getCacheKey";
3
3
  import { updateDiscoveredEndpointInCache } from "./updateDiscoveredEndpointInCache";
4
4
  export const endpointDiscoveryMiddleware = (config, middlewareConfig) => (next, context) => async (args) => {
@@ -1,2 +1,2 @@
1
- import { LoadedConfigSelectors } from "@aws-sdk/node-config-provider";
1
+ import { LoadedConfigSelectors } from "@smithy/node-config-provider";
2
2
  export declare const NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS: LoadedConfigSelectors<boolean | undefined>;
@@ -1,4 +1,4 @@
1
- import { BuildHandler, HandlerExecutionContext, MetadataBearer } from "@aws-sdk/types";
1
+ import { BuildHandler, HandlerExecutionContext, MetadataBearer } from "@smithy/types";
2
2
  import { EndpointDiscoveryMiddlewareConfig } from "./getEndpointDiscoveryPlugin";
3
3
  import { EndpointDiscoveryResolvedConfig, PreviouslyResolved } from "./resolveEndpointDiscoveryConfig";
4
4
  export declare const endpointDiscoveryMiddleware: (config: EndpointDiscoveryResolvedConfig & PreviouslyResolved, middlewareConfig: EndpointDiscoveryMiddlewareConfig) => <Output extends MetadataBearer = MetadataBearer>(next: BuildHandler<any, Output>, context: HandlerExecutionContext) => BuildHandler<any, Output>;
@@ -1,4 +1,4 @@
1
- import { AwsCredentialIdentity, Provider } from "@aws-sdk/types";
1
+ import { AwsCredentialIdentity, Provider } from "@smithy/types";
2
2
  /**
3
3
  * Generate key to index the endpoints in the cache
4
4
  */
@@ -1,4 +1,4 @@
1
- import { BuildHandlerOptions, HttpHandlerOptions, MiddlewareStack, Pluggable } from "@aws-sdk/types";
1
+ import { BuildHandlerOptions, HttpHandlerOptions, MiddlewareStack, Pluggable } from "@smithy/types";
2
2
  import { EndpointDiscoveryResolvedConfig, PreviouslyResolved } from "./resolveEndpointDiscoveryConfig";
3
3
  export declare const endpointDiscoveryMiddlewareOptions: BuildHandlerOptions;
4
4
  export interface EndpointDiscoveryMiddlewareConfig {
@@ -1,5 +1,5 @@
1
1
  import { EndpointCache } from "@aws-sdk/endpoint-cache";
2
- import { AwsCredentialIdentity, MemoizedProvider, Provider } from "@aws-sdk/types";
2
+ import { AwsCredentialIdentity, MemoizedProvider, Provider } from "@smithy/types";
3
3
  export interface PreviouslyResolved {
4
4
  isCustomEndpoint?: boolean;
5
5
  credentials: MemoizedProvider<AwsCredentialIdentity>;
@@ -1,4 +1,4 @@
1
- import { LoadedConfigSelectors } from "@aws-sdk/node-config-provider";
1
+ import { LoadedConfigSelectors } from "@smithy/node-config-provider";
2
2
  export declare const NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS: LoadedConfigSelectors<
3
3
  boolean | undefined
4
4
  >;
@@ -2,7 +2,7 @@ import {
2
2
  BuildHandler,
3
3
  HandlerExecutionContext,
4
4
  MetadataBearer,
5
- } from "@aws-sdk/types";
5
+ } from "@smithy/types";
6
6
  import { EndpointDiscoveryMiddlewareConfig } from "./getEndpointDiscoveryPlugin";
7
7
  import {
8
8
  EndpointDiscoveryResolvedConfig,
@@ -1,4 +1,4 @@
1
- import { AwsCredentialIdentity, Provider } from "@aws-sdk/types";
1
+ import { AwsCredentialIdentity, Provider } from "@smithy/types";
2
2
  export declare const getCacheKey: (
3
3
  commandName: string,
4
4
  config: {
@@ -3,7 +3,7 @@ import {
3
3
  HttpHandlerOptions,
4
4
  MiddlewareStack,
5
5
  Pluggable,
6
- } from "@aws-sdk/types";
6
+ } from "@smithy/types";
7
7
  import {
8
8
  EndpointDiscoveryResolvedConfig,
9
9
  PreviouslyResolved,
@@ -3,7 +3,7 @@ import {
3
3
  AwsCredentialIdentity,
4
4
  MemoizedProvider,
5
5
  Provider,
6
- } from "@aws-sdk/types";
6
+ } from "@smithy/types";
7
7
  export interface PreviouslyResolved {
8
8
  isCustomEndpoint?: boolean;
9
9
  credentials: MemoizedProvider<AwsCredentialIdentity>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-endpoint-discovery",
3
- "version": "3.357.0",
3
+ "version": "3.369.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "devDependencies": {
24
- "@aws-sdk/node-config-provider": "3.357.0",
24
+ "@smithy/node-config-provider": "^1.0.1",
25
25
  "@tsconfig/recommended": "1.0.1",
26
26
  "concurrently": "7.0.0",
27
27
  "downlevel-dts": "0.10.1",
@@ -31,8 +31,9 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@aws-sdk/endpoint-cache": "3.310.0",
34
- "@aws-sdk/protocol-http": "3.357.0",
35
- "@aws-sdk/types": "3.357.0",
34
+ "@aws-sdk/types": "3.369.0",
35
+ "@smithy/protocol-http": "^1.1.0",
36
+ "@smithy/types": "^1.1.0",
36
37
  "tslib": "^2.5.0"
37
38
  },
38
39
  "engines": {