@aws-sdk/client-s3-control 3.645.0 → 3.649.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/endpoint/endpointResolver.js +17 -2
- package/dist-es/endpoint/endpointResolver.js +18 -3
- package/dist-types/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/runtimeConfig.d.ts +2 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
- package/package.json +41 -41
|
@@ -4,11 +4,26 @@ exports.defaultEndpointResolver = void 0;
|
|
|
4
4
|
const util_endpoints_1 = require("@aws-sdk/util-endpoints");
|
|
5
5
|
const util_endpoints_2 = require("@smithy/util-endpoints");
|
|
6
6
|
const ruleset_1 = require("./ruleset");
|
|
7
|
+
const cache = new util_endpoints_2.EndpointCache({
|
|
8
|
+
size: 50,
|
|
9
|
+
params: [
|
|
10
|
+
"AccessPointName",
|
|
11
|
+
"AccountId",
|
|
12
|
+
"Bucket",
|
|
13
|
+
"Endpoint",
|
|
14
|
+
"OutpostId",
|
|
15
|
+
"Region",
|
|
16
|
+
"RequiresAccountId",
|
|
17
|
+
"UseArnRegion",
|
|
18
|
+
"UseDualStack",
|
|
19
|
+
"UseFIPS",
|
|
20
|
+
],
|
|
21
|
+
});
|
|
7
22
|
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
8
|
-
return (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
|
|
23
|
+
return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
|
|
9
24
|
endpointParams: endpointParams,
|
|
10
25
|
logger: context.logger,
|
|
11
|
-
});
|
|
26
|
+
}));
|
|
12
27
|
};
|
|
13
28
|
exports.defaultEndpointResolver = defaultEndpointResolver;
|
|
14
29
|
util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|
|
@@ -1,10 +1,25 @@
|
|
|
1
1
|
import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
|
|
2
|
-
import { customEndpointFunctions, resolveEndpoint } from "@smithy/util-endpoints";
|
|
2
|
+
import { customEndpointFunctions, EndpointCache, resolveEndpoint } from "@smithy/util-endpoints";
|
|
3
3
|
import { ruleSet } from "./ruleset";
|
|
4
|
+
const cache = new EndpointCache({
|
|
5
|
+
size: 50,
|
|
6
|
+
params: [
|
|
7
|
+
"AccessPointName",
|
|
8
|
+
"AccountId",
|
|
9
|
+
"Bucket",
|
|
10
|
+
"Endpoint",
|
|
11
|
+
"OutpostId",
|
|
12
|
+
"Region",
|
|
13
|
+
"RequiresAccountId",
|
|
14
|
+
"UseArnRegion",
|
|
15
|
+
"UseDualStack",
|
|
16
|
+
"UseFIPS",
|
|
17
|
+
],
|
|
18
|
+
});
|
|
4
19
|
export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
5
|
-
return resolveEndpoint(ruleSet, {
|
|
20
|
+
return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
|
|
6
21
|
endpointParams: endpointParams,
|
|
7
22
|
logger: context.logger,
|
|
8
|
-
});
|
|
23
|
+
}));
|
|
9
24
|
};
|
|
10
25
|
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
@@ -21,6 +21,7 @@ export declare const getRuntimeConfig: (config: S3ControlClientConfig) => {
|
|
|
21
21
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
22
22
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
23
23
|
apiVersion: string;
|
|
24
|
+
cacheMiddleware?: boolean | undefined;
|
|
24
25
|
urlParser: import("@smithy/types").UrlParser;
|
|
25
26
|
base64Decoder: import("@smithy/types").Decoder;
|
|
26
27
|
base64Encoder: (_input: string | Uint8Array) => string;
|
|
@@ -37,6 +38,7 @@ export declare const getRuntimeConfig: (config: S3ControlClientConfig) => {
|
|
|
37
38
|
logger?: import("@smithy/types").Logger | undefined;
|
|
38
39
|
}) => import("@smithy/types").EndpointV2;
|
|
39
40
|
tls?: boolean | undefined;
|
|
41
|
+
serviceConfiguredEndpoint?: undefined;
|
|
40
42
|
useArnRegion?: boolean | import("@smithy/types").Provider<boolean> | undefined;
|
|
41
43
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
42
44
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").S3ControlHttpAuthSchemeProvider;
|
|
@@ -21,6 +21,7 @@ export declare const getRuntimeConfig: (config: S3ControlClientConfig) => {
|
|
|
21
21
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
22
22
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
23
23
|
apiVersion: string;
|
|
24
|
+
cacheMiddleware?: boolean | undefined;
|
|
24
25
|
urlParser: import("@smithy/types").UrlParser;
|
|
25
26
|
base64Decoder: import("@smithy/types").Decoder;
|
|
26
27
|
base64Encoder: (_input: string | Uint8Array) => string;
|
|
@@ -37,6 +38,7 @@ export declare const getRuntimeConfig: (config: S3ControlClientConfig) => {
|
|
|
37
38
|
logger?: import("@smithy/types").Logger | undefined;
|
|
38
39
|
}) => import("@smithy/types").EndpointV2;
|
|
39
40
|
tls?: boolean | undefined;
|
|
41
|
+
serviceConfiguredEndpoint?: undefined;
|
|
40
42
|
useArnRegion?: boolean | import("@smithy/types").Provider<boolean> | undefined;
|
|
41
43
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
42
44
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").S3ControlHttpAuthSchemeProvider;
|
|
@@ -8,6 +8,7 @@ export declare const getRuntimeConfig: (config: S3ControlClientConfig) => {
|
|
|
8
8
|
sha256: import("@smithy/types").HashConstructor;
|
|
9
9
|
requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
|
|
10
10
|
apiVersion: string;
|
|
11
|
+
cacheMiddleware?: boolean | undefined;
|
|
11
12
|
urlParser: import("@smithy/types").UrlParser;
|
|
12
13
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
13
14
|
streamCollector: import("@smithy/types").StreamCollector;
|
|
@@ -36,6 +37,7 @@ export declare const getRuntimeConfig: (config: S3ControlClientConfig) => {
|
|
|
36
37
|
logger?: import("@smithy/types").Logger | undefined;
|
|
37
38
|
}) => import("@smithy/types").EndpointV2;
|
|
38
39
|
tls?: boolean | undefined;
|
|
40
|
+
serviceConfiguredEndpoint?: undefined;
|
|
39
41
|
useArnRegion?: boolean | import("@smithy/types").Provider<boolean> | undefined;
|
|
40
42
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
41
43
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").S3ControlHttpAuthSchemeProvider;
|
|
@@ -27,6 +27,7 @@ export declare const getRuntimeConfig: (config: S3ControlClientConfig) => {
|
|
|
27
27
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
28
28
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
29
29
|
apiVersion: string;
|
|
30
|
+
cacheMiddleware?: boolean | undefined;
|
|
30
31
|
urlParser: import("@smithy/types").UrlParser;
|
|
31
32
|
base64Decoder: import("@smithy/types").Decoder;
|
|
32
33
|
base64Encoder: (_input: string | Uint8Array) => string;
|
|
@@ -65,6 +66,7 @@ export declare const getRuntimeConfig: (config: S3ControlClientConfig) => {
|
|
|
65
66
|
}
|
|
66
67
|
) => import("@smithy/types").EndpointV2;
|
|
67
68
|
tls?: boolean | undefined;
|
|
69
|
+
serviceConfiguredEndpoint?: undefined;
|
|
68
70
|
useArnRegion?:
|
|
69
71
|
| boolean
|
|
70
72
|
| import("@smithy/types").Provider<boolean>
|
|
@@ -31,6 +31,7 @@ export declare const getRuntimeConfig: (config: S3ControlClientConfig) => {
|
|
|
31
31
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
32
32
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
33
33
|
apiVersion: string;
|
|
34
|
+
cacheMiddleware?: boolean | undefined;
|
|
34
35
|
urlParser: import("@smithy/types").UrlParser;
|
|
35
36
|
base64Decoder: import("@smithy/types").Decoder;
|
|
36
37
|
base64Encoder: (_input: string | Uint8Array) => string;
|
|
@@ -69,6 +70,7 @@ export declare const getRuntimeConfig: (config: S3ControlClientConfig) => {
|
|
|
69
70
|
}
|
|
70
71
|
) => import("@smithy/types").EndpointV2;
|
|
71
72
|
tls?: boolean | undefined;
|
|
73
|
+
serviceConfiguredEndpoint?: undefined;
|
|
72
74
|
useArnRegion?:
|
|
73
75
|
| boolean
|
|
74
76
|
| import("@smithy/types").Provider<boolean>
|
|
@@ -9,6 +9,7 @@ export declare const getRuntimeConfig: (config: S3ControlClientConfig) => {
|
|
|
9
9
|
| import("@smithy/protocol-http").HttpHandler<any>
|
|
10
10
|
| import("@smithy/fetch-http-handler").FetchHttpHandler;
|
|
11
11
|
apiVersion: string;
|
|
12
|
+
cacheMiddleware?: boolean | undefined;
|
|
12
13
|
urlParser: import("@smithy/types").UrlParser;
|
|
13
14
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
14
15
|
streamCollector: import("@smithy/types").StreamCollector;
|
|
@@ -59,6 +60,7 @@ export declare const getRuntimeConfig: (config: S3ControlClientConfig) => {
|
|
|
59
60
|
}
|
|
60
61
|
) => import("@smithy/types").EndpointV2;
|
|
61
62
|
tls?: boolean | undefined;
|
|
63
|
+
serviceConfiguredEndpoint?: undefined;
|
|
62
64
|
useArnRegion?:
|
|
63
65
|
| boolean
|
|
64
66
|
| import("@smithy/types").Provider<boolean>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-s3-control",
|
|
3
3
|
"description": "AWS SDK for JavaScript S3 Control Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.649.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-s3-control",
|
|
@@ -22,49 +22,49 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
24
24
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
25
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
26
|
-
"@aws-sdk/client-sts": "3.
|
|
27
|
-
"@aws-sdk/core": "3.
|
|
28
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
29
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
30
|
-
"@aws-sdk/middleware-logger": "3.
|
|
31
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
32
|
-
"@aws-sdk/middleware-sdk-s3-control": "3.
|
|
33
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
34
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
35
|
-
"@aws-sdk/types": "3.
|
|
36
|
-
"@aws-sdk/util-endpoints": "3.
|
|
37
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
38
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
39
|
-
"@aws-sdk/xml-builder": "3.
|
|
40
|
-
"@smithy/config-resolver": "^3.0.
|
|
41
|
-
"@smithy/core": "^2.4.
|
|
42
|
-
"@smithy/fetch-http-handler": "^3.2.
|
|
43
|
-
"@smithy/hash-blob-browser": "^3.1.
|
|
44
|
-
"@smithy/hash-node": "^3.0.
|
|
45
|
-
"@smithy/hash-stream-node": "^3.1.
|
|
46
|
-
"@smithy/invalid-dependency": "^3.0.
|
|
47
|
-
"@smithy/md5-js": "^3.0.
|
|
48
|
-
"@smithy/middleware-apply-body-checksum": "^3.0.
|
|
49
|
-
"@smithy/middleware-content-length": "^3.0.
|
|
50
|
-
"@smithy/middleware-endpoint": "^3.1.
|
|
51
|
-
"@smithy/middleware-retry": "^3.0.
|
|
52
|
-
"@smithy/middleware-serde": "^3.0.
|
|
53
|
-
"@smithy/middleware-stack": "^3.0.
|
|
54
|
-
"@smithy/node-config-provider": "^3.1.
|
|
55
|
-
"@smithy/node-http-handler": "^3.
|
|
56
|
-
"@smithy/protocol-http": "^4.1.
|
|
57
|
-
"@smithy/smithy-client": "^3.
|
|
58
|
-
"@smithy/types": "^3.
|
|
59
|
-
"@smithy/url-parser": "^3.0.
|
|
25
|
+
"@aws-sdk/client-sso-oidc": "3.649.0",
|
|
26
|
+
"@aws-sdk/client-sts": "3.649.0",
|
|
27
|
+
"@aws-sdk/core": "3.649.0",
|
|
28
|
+
"@aws-sdk/credential-provider-node": "3.649.0",
|
|
29
|
+
"@aws-sdk/middleware-host-header": "3.649.0",
|
|
30
|
+
"@aws-sdk/middleware-logger": "3.649.0",
|
|
31
|
+
"@aws-sdk/middleware-recursion-detection": "3.649.0",
|
|
32
|
+
"@aws-sdk/middleware-sdk-s3-control": "3.649.0",
|
|
33
|
+
"@aws-sdk/middleware-user-agent": "3.649.0",
|
|
34
|
+
"@aws-sdk/region-config-resolver": "3.649.0",
|
|
35
|
+
"@aws-sdk/types": "3.649.0",
|
|
36
|
+
"@aws-sdk/util-endpoints": "3.649.0",
|
|
37
|
+
"@aws-sdk/util-user-agent-browser": "3.649.0",
|
|
38
|
+
"@aws-sdk/util-user-agent-node": "3.649.0",
|
|
39
|
+
"@aws-sdk/xml-builder": "3.649.0",
|
|
40
|
+
"@smithy/config-resolver": "^3.0.6",
|
|
41
|
+
"@smithy/core": "^2.4.1",
|
|
42
|
+
"@smithy/fetch-http-handler": "^3.2.5",
|
|
43
|
+
"@smithy/hash-blob-browser": "^3.1.3",
|
|
44
|
+
"@smithy/hash-node": "^3.0.4",
|
|
45
|
+
"@smithy/hash-stream-node": "^3.1.3",
|
|
46
|
+
"@smithy/invalid-dependency": "^3.0.4",
|
|
47
|
+
"@smithy/md5-js": "^3.0.4",
|
|
48
|
+
"@smithy/middleware-apply-body-checksum": "^3.0.6",
|
|
49
|
+
"@smithy/middleware-content-length": "^3.0.6",
|
|
50
|
+
"@smithy/middleware-endpoint": "^3.1.1",
|
|
51
|
+
"@smithy/middleware-retry": "^3.0.16",
|
|
52
|
+
"@smithy/middleware-serde": "^3.0.4",
|
|
53
|
+
"@smithy/middleware-stack": "^3.0.4",
|
|
54
|
+
"@smithy/node-config-provider": "^3.1.5",
|
|
55
|
+
"@smithy/node-http-handler": "^3.2.0",
|
|
56
|
+
"@smithy/protocol-http": "^4.1.1",
|
|
57
|
+
"@smithy/smithy-client": "^3.3.0",
|
|
58
|
+
"@smithy/types": "^3.4.0",
|
|
59
|
+
"@smithy/url-parser": "^3.0.4",
|
|
60
60
|
"@smithy/util-base64": "^3.0.0",
|
|
61
61
|
"@smithy/util-body-length-browser": "^3.0.0",
|
|
62
62
|
"@smithy/util-body-length-node": "^3.0.0",
|
|
63
|
-
"@smithy/util-defaults-mode-browser": "^3.0.
|
|
64
|
-
"@smithy/util-defaults-mode-node": "^3.0.
|
|
65
|
-
"@smithy/util-endpoints": "^2.0
|
|
66
|
-
"@smithy/util-middleware": "^3.0.
|
|
67
|
-
"@smithy/util-retry": "^3.0.
|
|
63
|
+
"@smithy/util-defaults-mode-browser": "^3.0.16",
|
|
64
|
+
"@smithy/util-defaults-mode-node": "^3.0.16",
|
|
65
|
+
"@smithy/util-endpoints": "^2.1.0",
|
|
66
|
+
"@smithy/util-middleware": "^3.0.4",
|
|
67
|
+
"@smithy/util-retry": "^3.0.4",
|
|
68
68
|
"@smithy/util-utf8": "^3.0.0",
|
|
69
69
|
"tslib": "^2.6.2",
|
|
70
70
|
"uuid": "^9.0.1"
|