@aws-sdk/middleware-endpoint-discovery 3.972.24 → 3.972.25
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-types/ts3.4/endpointDiscoveryMiddleware.d.ts +3 -7
- package/dist-types/ts3.4/getCacheKey.d.ts +1 -1
- package/dist-types/ts3.4/getEndpointDiscoveryPlugin.d.ts +6 -17
- package/dist-types/ts3.4/resolveEndpointDiscoveryConfig.d.ts +2 -6
- package/dist-types/ts3.4/updateDiscoveredEndpointInCache.d.ts +2 -3
- package/package.json +32 -32
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
BuildHandler,
|
|
3
|
-
HandlerExecutionContext,
|
|
4
|
-
MetadataBearer,
|
|
5
|
-
} from "@smithy/types";
|
|
1
|
+
import { BuildHandler, HandlerExecutionContext, MetadataBearer } from "@smithy/types";
|
|
6
2
|
import { EndpointDiscoveryMiddlewareConfig } from "./getEndpointDiscoveryPlugin";
|
|
7
3
|
import {
|
|
8
4
|
EndpointDiscoveryResolvedConfig,
|
|
@@ -10,8 +6,8 @@ import {
|
|
|
10
6
|
} from "./resolveEndpointDiscoveryConfig";
|
|
11
7
|
export declare const endpointDiscoveryMiddleware: (
|
|
12
8
|
config: EndpointDiscoveryResolvedConfig & PreviouslyResolved,
|
|
13
|
-
middlewareConfig: EndpointDiscoveryMiddlewareConfig
|
|
9
|
+
middlewareConfig: EndpointDiscoveryMiddlewareConfig,
|
|
14
10
|
) => <Output extends MetadataBearer = MetadataBearer>(
|
|
15
11
|
next: BuildHandler<any, Output>,
|
|
16
|
-
context: HandlerExecutionContext
|
|
12
|
+
context: HandlerExecutionContext,
|
|
17
13
|
) => BuildHandler<any, Output>;
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
BuildHandlerOptions,
|
|
3
|
-
HttpHandlerOptions,
|
|
4
|
-
MiddlewareStack,
|
|
5
|
-
Pluggable,
|
|
6
|
-
} from "@smithy/types";
|
|
1
|
+
import { BuildHandlerOptions, HttpHandlerOptions, MiddlewareStack, Pluggable } from "@smithy/types";
|
|
7
2
|
import {
|
|
8
3
|
EndpointDiscoveryResolvedConfig,
|
|
9
4
|
PreviouslyResolved,
|
|
@@ -17,25 +12,19 @@ export interface EndpointDiscoveryMiddlewareConfig {
|
|
|
17
12
|
}
|
|
18
13
|
export declare const getEndpointDiscoveryPlugin: (
|
|
19
14
|
pluginConfig: EndpointDiscoveryResolvedConfig & PreviouslyResolved,
|
|
20
|
-
middlewareConfig: EndpointDiscoveryMiddlewareConfig
|
|
15
|
+
middlewareConfig: EndpointDiscoveryMiddlewareConfig,
|
|
21
16
|
) => Pluggable<any, any>;
|
|
22
17
|
export declare const getEndpointDiscoveryRequiredPlugin: (
|
|
23
18
|
pluginConfig: EndpointDiscoveryResolvedConfig & PreviouslyResolved,
|
|
24
19
|
middlewareConfig: Pick<
|
|
25
20
|
EndpointDiscoveryMiddlewareConfig,
|
|
26
|
-
Exclude<
|
|
27
|
-
|
|
28
|
-
"isDiscoveredEndpointRequired"
|
|
29
|
-
>
|
|
30
|
-
>
|
|
21
|
+
Exclude<keyof EndpointDiscoveryMiddlewareConfig, "isDiscoveredEndpointRequired">
|
|
22
|
+
>,
|
|
31
23
|
) => Pluggable<any, any>;
|
|
32
24
|
export declare const getEndpointDiscoveryOptionalPlugin: (
|
|
33
25
|
pluginConfig: EndpointDiscoveryResolvedConfig & PreviouslyResolved,
|
|
34
26
|
middlewareConfig: Pick<
|
|
35
27
|
EndpointDiscoveryMiddlewareConfig,
|
|
36
|
-
Exclude<
|
|
37
|
-
|
|
38
|
-
"isDiscoveredEndpointRequired"
|
|
39
|
-
>
|
|
40
|
-
>
|
|
28
|
+
Exclude<keyof EndpointDiscoveryMiddlewareConfig, "isDiscoveredEndpointRequired">
|
|
29
|
+
>,
|
|
41
30
|
) => Pluggable<any, any>;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { EndpointCache } from "@aws-sdk/endpoint-cache";
|
|
2
|
-
import {
|
|
3
|
-
AwsCredentialIdentity,
|
|
4
|
-
MemoizedProvider,
|
|
5
|
-
Provider,
|
|
6
|
-
} from "@smithy/types";
|
|
2
|
+
import { AwsCredentialIdentity, MemoizedProvider, Provider } from "@smithy/types";
|
|
7
3
|
export interface PreviouslyResolved {
|
|
8
4
|
isCustomEndpoint?: boolean;
|
|
9
5
|
credentials: MemoizedProvider<AwsCredentialIdentity>;
|
|
@@ -24,5 +20,5 @@ export interface EndpointDiscoveryConfigOptions {
|
|
|
24
20
|
}
|
|
25
21
|
export declare const resolveEndpointDiscoveryConfig: <T>(
|
|
26
22
|
input: T & PreviouslyResolved & EndpointDiscoveryInputConfig,
|
|
27
|
-
{ endpointDiscoveryCommandCtor }: EndpointDiscoveryConfigOptions
|
|
23
|
+
{ endpointDiscoveryCommandCtor }: EndpointDiscoveryConfigOptions,
|
|
28
24
|
) => T & EndpointDiscoveryResolvedConfig;
|
|
@@ -3,13 +3,12 @@ import {
|
|
|
3
3
|
EndpointDiscoveryResolvedConfig,
|
|
4
4
|
PreviouslyResolved,
|
|
5
5
|
} from "./resolveEndpointDiscoveryConfig";
|
|
6
|
-
export interface UpdateDiscoveredEndpointInCacheOptions
|
|
7
|
-
extends EndpointDiscoveryMiddlewareConfig {
|
|
6
|
+
export interface UpdateDiscoveredEndpointInCacheOptions extends EndpointDiscoveryMiddlewareConfig {
|
|
8
7
|
cacheKey: string;
|
|
9
8
|
commandName: string;
|
|
10
9
|
endpointDiscoveryCommandCtor: new (comandConfig: any) => any;
|
|
11
10
|
}
|
|
12
11
|
export declare const updateDiscoveredEndpointInCache: (
|
|
13
12
|
config: EndpointDiscoveryResolvedConfig & PreviouslyResolved,
|
|
14
|
-
options: UpdateDiscoveredEndpointInCacheOptions
|
|
13
|
+
options: UpdateDiscoveredEndpointInCacheOptions,
|
|
15
14
|
) => Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-endpoint-discovery",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.25",
|
|
4
|
+
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/middleware-endpoint-discovery",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "AWS SDK for JavaScript Team",
|
|
8
|
+
"url": "https://aws.amazon.com/sdk-for-javascript/"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/aws/aws-sdk-js-v3.git",
|
|
13
|
+
"directory": "packages-internal/middleware-endpoint-discovery"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist-*/**"
|
|
17
|
+
],
|
|
18
|
+
"sideEffects": false,
|
|
19
|
+
"main": "./dist-cjs/index.js",
|
|
20
|
+
"module": "./dist-es/index.js",
|
|
21
|
+
"types": "./dist-types/index.d.ts",
|
|
22
|
+
"typesVersions": {
|
|
23
|
+
"<4.5": {
|
|
24
|
+
"dist-types/*": [
|
|
25
|
+
"dist-types/ts3.4/*"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
},
|
|
4
29
|
"scripts": {
|
|
5
30
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
6
31
|
"build:cjs": "node ../../scripts/compilation/inline",
|
|
@@ -13,15 +38,13 @@
|
|
|
13
38
|
"test": "yarn g:vitest run",
|
|
14
39
|
"test:watch": "yarn g:vitest watch"
|
|
15
40
|
},
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
"url": "https://aws.amazon.com/sdk-for-javascript/"
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@aws-sdk/endpoint-cache": "^3.972.9",
|
|
43
|
+
"@aws-sdk/types": "^3.974.2",
|
|
44
|
+
"@smithy/core": "^3.29.4",
|
|
45
|
+
"@smithy/types": "^4.16.1",
|
|
46
|
+
"tslib": "^2.6.2"
|
|
23
47
|
},
|
|
24
|
-
"license": "Apache-2.0",
|
|
25
48
|
"devDependencies": {
|
|
26
49
|
"@tsconfig/recommended": "1.0.1",
|
|
27
50
|
"concurrently": "7.0.0",
|
|
@@ -29,30 +52,7 @@
|
|
|
29
52
|
"premove": "4.0.0",
|
|
30
53
|
"typescript": "~5.8.3"
|
|
31
54
|
},
|
|
32
|
-
"dependencies": {
|
|
33
|
-
"@aws-sdk/endpoint-cache": "^3.972.9",
|
|
34
|
-
"@aws-sdk/types": "^3.974.1",
|
|
35
|
-
"@smithy/core": "^3.29.3",
|
|
36
|
-
"@smithy/types": "^4.16.1",
|
|
37
|
-
"tslib": "^2.6.2"
|
|
38
|
-
},
|
|
39
55
|
"engines": {
|
|
40
56
|
"node": ">=20.0.0"
|
|
41
|
-
},
|
|
42
|
-
"typesVersions": {
|
|
43
|
-
"<4.5": {
|
|
44
|
-
"dist-types/*": [
|
|
45
|
-
"dist-types/ts3.4/*"
|
|
46
|
-
]
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
"files": [
|
|
50
|
-
"dist-*/**"
|
|
51
|
-
],
|
|
52
|
-
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/middleware-endpoint-discovery",
|
|
53
|
-
"repository": {
|
|
54
|
-
"type": "git",
|
|
55
|
-
"url": "https://github.com/aws/aws-sdk-js-v3.git",
|
|
56
|
-
"directory": "packages-internal/middleware-endpoint-discovery"
|
|
57
57
|
}
|
|
58
58
|
}
|