@aws-sdk/client-s3 3.627.0 → 3.631.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/auth/httpAuthSchemeProvider.js +2 -1
- package/dist-cjs/runtimeConfig.js +1 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +3 -2
- package/dist-es/runtimeConfig.js +2 -1
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +4 -4
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +12 -3
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +3 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/package.json +12 -12
|
@@ -119,8 +119,9 @@ exports.defaultS3HttpAuthSchemeProvider = createEndpointRuleSetHttpAuthSchemePro
|
|
|
119
119
|
});
|
|
120
120
|
const resolveHttpAuthSchemeConfig = (config) => {
|
|
121
121
|
const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
|
|
122
|
+
const config_1 = (0, core_1.resolveAwsSdkSigV4AConfig)(config_0);
|
|
122
123
|
return {
|
|
123
|
-
...
|
|
124
|
+
...config_1,
|
|
124
125
|
};
|
|
125
126
|
};
|
|
126
127
|
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
|
@@ -49,6 +49,7 @@ const getRuntimeConfig = (config) => {
|
|
|
49
49
|
}),
|
|
50
50
|
sha1: config?.sha1 ?? hash_node_1.Hash.bind(null, "sha1"),
|
|
51
51
|
sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
|
|
52
|
+
sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_SIGV4A_CONFIG_OPTIONS),
|
|
52
53
|
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
|
53
54
|
streamHasher: config?.streamHasher ?? hash_stream_node_1.readableStreamHasher,
|
|
54
55
|
useArnRegion: config?.useArnRegion ?? (0, node_config_provider_1.loadConfig)(middleware_bucket_endpoint_1.NODE_USE_ARN_REGION_CONFIG_OPTIONS),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resolveAwsSdkSigV4Config, } from "@aws-sdk/core";
|
|
1
|
+
import { resolveAwsSdkSigV4AConfig, resolveAwsSdkSigV4Config, } from "@aws-sdk/core";
|
|
2
2
|
import { signatureV4CrtContainer } from "@aws-sdk/signature-v4-multi-region";
|
|
3
3
|
import { resolveParams } from "@smithy/middleware-endpoint";
|
|
4
4
|
import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
|
|
@@ -116,7 +116,8 @@ export const defaultS3HttpAuthSchemeProvider = createEndpointRuleSetHttpAuthSche
|
|
|
116
116
|
});
|
|
117
117
|
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
118
118
|
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
119
|
+
const config_1 = resolveAwsSdkSigV4AConfig(config_0);
|
|
119
120
|
return {
|
|
120
|
-
...
|
|
121
|
+
...config_1,
|
|
121
122
|
};
|
|
122
123
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
|
-
import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
|
|
2
|
+
import { NODE_SIGV4A_CONFIG_OPTIONS, emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
|
|
3
3
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
4
4
|
import { NODE_USE_ARN_REGION_CONFIG_OPTIONS } from "@aws-sdk/middleware-bucket-endpoint";
|
|
5
5
|
import { NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS } from "@aws-sdk/middleware-sdk-s3";
|
|
@@ -45,6 +45,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
45
45
|
}),
|
|
46
46
|
sha1: config?.sha1 ?? Hash.bind(null, "sha1"),
|
|
47
47
|
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
48
|
+
sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? loadNodeConfig(NODE_SIGV4A_CONFIG_OPTIONS),
|
|
48
49
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
49
50
|
streamHasher: config?.streamHasher ?? streamHasher,
|
|
50
51
|
useArnRegion: config?.useArnRegion ?? loadNodeConfig(NODE_USE_ARN_REGION_CONFIG_OPTIONS),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
|
|
1
|
+
import { AwsSdkSigV4AAuthInputConfig, AwsSdkSigV4AAuthResolvedConfig, AwsSdkSigV4APreviouslyResolved, AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
|
|
2
2
|
import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider } from "@smithy/types";
|
|
3
3
|
import { EndpointParameters } from "../endpoint/EndpointParameters";
|
|
4
4
|
import { S3ClientResolvedConfig } from "../S3Client";
|
|
@@ -35,7 +35,7 @@ export declare const defaultS3HttpAuthSchemeProvider: S3HttpAuthSchemeProvider;
|
|
|
35
35
|
/**
|
|
36
36
|
* @internal
|
|
37
37
|
*/
|
|
38
|
-
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
38
|
+
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AAuthInputConfig {
|
|
39
39
|
/**
|
|
40
40
|
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
41
41
|
* @internal
|
|
@@ -50,7 +50,7 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
|
50
50
|
/**
|
|
51
51
|
* @internal
|
|
52
52
|
*/
|
|
53
|
-
export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
|
|
53
|
+
export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4AAuthResolvedConfig {
|
|
54
54
|
/**
|
|
55
55
|
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
56
56
|
* @internal
|
|
@@ -65,5 +65,5 @@ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedCon
|
|
|
65
65
|
/**
|
|
66
66
|
* @internal
|
|
67
67
|
*/
|
|
68
|
-
export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
|
|
68
|
+
export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved & AwsSdkSigV4APreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
|
|
69
69
|
export {};
|
|
@@ -50,6 +50,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
50
50
|
systemClockOffset?: number | undefined;
|
|
51
51
|
signingRegion?: string | undefined;
|
|
52
52
|
signerConstructor: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion;
|
|
53
|
+
sigv4aSigningRegionSet?: string[] | import("@smithy/types").Provider<string[] | undefined> | undefined;
|
|
53
54
|
forcePathStyle?: (boolean & (boolean | import("@smithy/types").Provider<boolean>)) | undefined;
|
|
54
55
|
useAccelerateEndpoint?: (boolean & (boolean | import("@smithy/types").Provider<boolean>)) | undefined;
|
|
55
56
|
disableMultiregionAccessPoints?: (boolean & (boolean | import("@smithy/types").Provider<boolean>)) | undefined;
|
|
@@ -20,6 +20,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
20
20
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
21
21
|
sha1: __HashConstructor;
|
|
22
22
|
sha256: __HashConstructor;
|
|
23
|
+
sigv4aSigningRegionSet: string[] | import("@aws-sdk/types").Provider<string[] | undefined>;
|
|
23
24
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
24
25
|
streamHasher: import("@aws-sdk/types").StreamHasher<import("stream").Readable> | import("@aws-sdk/types").StreamHasher<Blob>;
|
|
25
26
|
useArnRegion: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
@@ -49,6 +49,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
49
49
|
systemClockOffset?: number | undefined;
|
|
50
50
|
signingRegion?: string | undefined;
|
|
51
51
|
signerConstructor: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion;
|
|
52
|
+
sigv4aSigningRegionSet?: string[] | import("@smithy/types").Provider<string[] | undefined> | undefined;
|
|
52
53
|
forcePathStyle?: boolean | undefined;
|
|
53
54
|
useAccelerateEndpoint?: boolean | undefined;
|
|
54
55
|
disableMultiregionAccessPoints?: boolean | undefined;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
+
AwsSdkSigV4AAuthInputConfig,
|
|
3
|
+
AwsSdkSigV4AAuthResolvedConfig,
|
|
4
|
+
AwsSdkSigV4APreviouslyResolved,
|
|
2
5
|
AwsSdkSigV4AuthInputConfig,
|
|
3
6
|
AwsSdkSigV4AuthResolvedConfig,
|
|
4
7
|
AwsSdkSigV4PreviouslyResolved,
|
|
@@ -31,16 +34,22 @@ export declare const defaultS3HttpAuthSchemeParametersProvider: S3HttpAuthScheme
|
|
|
31
34
|
export interface S3HttpAuthSchemeProvider
|
|
32
35
|
extends HttpAuthSchemeProvider<S3HttpAuthSchemeParameters> {}
|
|
33
36
|
export declare const defaultS3HttpAuthSchemeProvider: S3HttpAuthSchemeProvider;
|
|
34
|
-
export interface HttpAuthSchemeInputConfig
|
|
37
|
+
export interface HttpAuthSchemeInputConfig
|
|
38
|
+
extends AwsSdkSigV4AuthInputConfig,
|
|
39
|
+
AwsSdkSigV4AAuthInputConfig {
|
|
35
40
|
httpAuthSchemes?: HttpAuthScheme[];
|
|
36
41
|
httpAuthSchemeProvider?: S3HttpAuthSchemeProvider;
|
|
37
42
|
}
|
|
38
43
|
export interface HttpAuthSchemeResolvedConfig
|
|
39
|
-
extends AwsSdkSigV4AuthResolvedConfig
|
|
44
|
+
extends AwsSdkSigV4AuthResolvedConfig,
|
|
45
|
+
AwsSdkSigV4AAuthResolvedConfig {
|
|
40
46
|
readonly httpAuthSchemes: HttpAuthScheme[];
|
|
41
47
|
readonly httpAuthSchemeProvider: S3HttpAuthSchemeProvider;
|
|
42
48
|
}
|
|
43
49
|
export declare const resolveHttpAuthSchemeConfig: <T>(
|
|
44
|
-
config: T &
|
|
50
|
+
config: T &
|
|
51
|
+
HttpAuthSchemeInputConfig &
|
|
52
|
+
AwsSdkSigV4PreviouslyResolved &
|
|
53
|
+
AwsSdkSigV4APreviouslyResolved
|
|
45
54
|
) => T & HttpAuthSchemeResolvedConfig;
|
|
46
55
|
export {};
|
|
@@ -95,6 +95,10 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
95
95
|
import("@smithy/signature-v4").SignatureV4CryptoInit
|
|
96
96
|
) => import("@smithy/types").RequestSigner)
|
|
97
97
|
| typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion;
|
|
98
|
+
sigv4aSigningRegionSet?:
|
|
99
|
+
| string[]
|
|
100
|
+
| import("@smithy/types").Provider<string[] | undefined>
|
|
101
|
+
| undefined;
|
|
98
102
|
forcePathStyle?:
|
|
99
103
|
| (boolean & (boolean | import("@smithy/types").Provider<boolean>))
|
|
100
104
|
| undefined;
|
|
@@ -30,6 +30,9 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
30
30
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
31
31
|
sha1: __HashConstructor;
|
|
32
32
|
sha256: __HashConstructor;
|
|
33
|
+
sigv4aSigningRegionSet:
|
|
34
|
+
| string[]
|
|
35
|
+
| import("@aws-sdk/types").Provider<string[] | undefined>;
|
|
33
36
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
34
37
|
streamHasher:
|
|
35
38
|
| import("@aws-sdk/types").StreamHasher<import("stream").Readable>
|
|
@@ -89,6 +89,10 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
|
|
|
89
89
|
import("@smithy/signature-v4").SignatureV4CryptoInit
|
|
90
90
|
) => import("@smithy/types").RequestSigner)
|
|
91
91
|
| typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion;
|
|
92
|
+
sigv4aSigningRegionSet?:
|
|
93
|
+
| string[]
|
|
94
|
+
| import("@smithy/types").Provider<string[] | undefined>
|
|
95
|
+
| undefined;
|
|
92
96
|
forcePathStyle?: boolean | undefined;
|
|
93
97
|
useAccelerateEndpoint?: boolean | undefined;
|
|
94
98
|
disableMultiregionAccessPoints?: boolean | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-s3",
|
|
3
3
|
"description": "AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.631.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",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"@aws-crypto/sha1-browser": "5.2.0",
|
|
27
27
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
28
28
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
29
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
30
|
-
"@aws-sdk/client-sts": "3.
|
|
31
|
-
"@aws-sdk/core": "3.
|
|
32
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
29
|
+
"@aws-sdk/client-sso-oidc": "3.631.0",
|
|
30
|
+
"@aws-sdk/client-sts": "3.631.0",
|
|
31
|
+
"@aws-sdk/core": "3.629.0",
|
|
32
|
+
"@aws-sdk/credential-provider-node": "3.631.0",
|
|
33
33
|
"@aws-sdk/middleware-bucket-endpoint": "3.620.0",
|
|
34
34
|
"@aws-sdk/middleware-expect-continue": "3.620.0",
|
|
35
35
|
"@aws-sdk/middleware-flexible-checksums": "3.620.0",
|
|
@@ -37,21 +37,21 @@
|
|
|
37
37
|
"@aws-sdk/middleware-location-constraint": "3.609.0",
|
|
38
38
|
"@aws-sdk/middleware-logger": "3.609.0",
|
|
39
39
|
"@aws-sdk/middleware-recursion-detection": "3.620.0",
|
|
40
|
-
"@aws-sdk/middleware-sdk-s3": "3.
|
|
40
|
+
"@aws-sdk/middleware-sdk-s3": "3.629.0",
|
|
41
41
|
"@aws-sdk/middleware-ssec": "3.609.0",
|
|
42
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
42
|
+
"@aws-sdk/middleware-user-agent": "3.631.0",
|
|
43
43
|
"@aws-sdk/region-config-resolver": "3.614.0",
|
|
44
|
-
"@aws-sdk/signature-v4-multi-region": "3.
|
|
44
|
+
"@aws-sdk/signature-v4-multi-region": "3.629.0",
|
|
45
45
|
"@aws-sdk/types": "3.609.0",
|
|
46
|
-
"@aws-sdk/util-endpoints": "3.
|
|
46
|
+
"@aws-sdk/util-endpoints": "3.631.0",
|
|
47
47
|
"@aws-sdk/util-user-agent-browser": "3.609.0",
|
|
48
48
|
"@aws-sdk/util-user-agent-node": "3.614.0",
|
|
49
49
|
"@aws-sdk/xml-builder": "3.609.0",
|
|
50
50
|
"@smithy/config-resolver": "^3.0.5",
|
|
51
51
|
"@smithy/core": "^2.3.2",
|
|
52
|
-
"@smithy/eventstream-serde-browser": "^3.0.
|
|
52
|
+
"@smithy/eventstream-serde-browser": "^3.0.6",
|
|
53
53
|
"@smithy/eventstream-serde-config-resolver": "^3.0.3",
|
|
54
|
-
"@smithy/eventstream-serde-node": "^3.0.
|
|
54
|
+
"@smithy/eventstream-serde-node": "^3.0.5",
|
|
55
55
|
"@smithy/fetch-http-handler": "^3.2.4",
|
|
56
56
|
"@smithy/hash-blob-browser": "^3.1.2",
|
|
57
57
|
"@smithy/hash-node": "^3.0.3",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"tslib": "^2.6.2"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
|
-
"@aws-sdk/signature-v4-crt": "3.
|
|
86
|
+
"@aws-sdk/signature-v4-crt": "3.629.0",
|
|
87
87
|
"@tsconfig/node16": "16.1.3",
|
|
88
88
|
"@types/chai": "^4.2.11",
|
|
89
89
|
"@types/mocha": "^8.0.4",
|