@aws-sdk/middleware-sdk-s3 3.914.0 → 3.916.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/index.js
CHANGED
|
@@ -398,7 +398,7 @@ const getS3ExpressHttpSigningPlugin = (config) => ({
|
|
|
398
398
|
|
|
399
399
|
const resolveS3Config = (input, { session, }) => {
|
|
400
400
|
const [s3ClientProvider, CreateSessionCommandCtor] = session;
|
|
401
|
-
const { forcePathStyle, useAccelerateEndpoint, disableMultiregionAccessPoints, followRegionRedirects, s3ExpressIdentityProvider, bucketEndpoint, } = input;
|
|
401
|
+
const { forcePathStyle, useAccelerateEndpoint, disableMultiregionAccessPoints, followRegionRedirects, s3ExpressIdentityProvider, bucketEndpoint, expectContinueHeader, } = input;
|
|
402
402
|
return Object.assign(input, {
|
|
403
403
|
forcePathStyle: forcePathStyle ?? false,
|
|
404
404
|
useAccelerateEndpoint: useAccelerateEndpoint ?? false,
|
|
@@ -409,6 +409,7 @@ const resolveS3Config = (input, { session, }) => {
|
|
|
409
409
|
Bucket: key,
|
|
410
410
|
}))),
|
|
411
411
|
bucketEndpoint: bucketEndpoint ?? false,
|
|
412
|
+
expectContinueHeader: expectContinueHeader ?? 2_097_152,
|
|
412
413
|
});
|
|
413
414
|
};
|
|
414
415
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { S3ExpressIdentityProviderImpl } from "./s3-express";
|
|
2
2
|
export const resolveS3Config = (input, { session, }) => {
|
|
3
3
|
const [s3ClientProvider, CreateSessionCommandCtor] = session;
|
|
4
|
-
const { forcePathStyle, useAccelerateEndpoint, disableMultiregionAccessPoints, followRegionRedirects, s3ExpressIdentityProvider, bucketEndpoint, } = input;
|
|
4
|
+
const { forcePathStyle, useAccelerateEndpoint, disableMultiregionAccessPoints, followRegionRedirects, s3ExpressIdentityProvider, bucketEndpoint, expectContinueHeader, } = input;
|
|
5
5
|
return Object.assign(input, {
|
|
6
6
|
forcePathStyle: forcePathStyle ?? false,
|
|
7
7
|
useAccelerateEndpoint: useAccelerateEndpoint ?? false,
|
|
@@ -12,5 +12,6 @@ export const resolveS3Config = (input, { session, }) => {
|
|
|
12
12
|
Bucket: key,
|
|
13
13
|
}))),
|
|
14
14
|
bucketEndpoint: bucketEndpoint ?? false,
|
|
15
|
+
expectContinueHeader: expectContinueHeader ?? 2_097_152,
|
|
15
16
|
});
|
|
16
17
|
};
|
|
@@ -33,6 +33,22 @@ export interface S3InputConfig {
|
|
|
33
33
|
* Whether to use the bucket name as the endpoint for this client.
|
|
34
34
|
*/
|
|
35
35
|
bucketEndpoint?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* This field configures the SDK's behavior around setting the `expect: 100-continue` header.
|
|
38
|
+
*
|
|
39
|
+
* Default: 2_097_152 (2 MB)
|
|
40
|
+
*
|
|
41
|
+
* When given as a boolean - always send or omit the header.
|
|
42
|
+
* When given as a number - minimum byte threshold of the payload before setting the header.
|
|
43
|
+
* Unmeasurable payload sizes (streams) will set the header too.
|
|
44
|
+
*
|
|
45
|
+
* The `expect: 100-continue` header is used to allow the server a chance to validate the PUT request
|
|
46
|
+
* headers before the client begins to send the object payload. This avoids wasteful data transmission for a
|
|
47
|
+
* request that is rejected.
|
|
48
|
+
*
|
|
49
|
+
* However, there is a trade-off where the request will take longer to complete.
|
|
50
|
+
*/
|
|
51
|
+
expectContinueHeader?: boolean | number;
|
|
36
52
|
}
|
|
37
53
|
/**
|
|
38
54
|
* This is a placeholder for the actual
|
|
@@ -55,6 +71,7 @@ export interface S3ResolvedConfig {
|
|
|
55
71
|
followRegionRedirects: boolean;
|
|
56
72
|
s3ExpressIdentityProvider: S3ExpressIdentityProvider;
|
|
57
73
|
bucketEndpoint: boolean;
|
|
74
|
+
expectContinueHeader: boolean | number;
|
|
58
75
|
}
|
|
59
76
|
export declare const resolveS3Config: <T>(input: T & S3InputConfig, { session, }: {
|
|
60
77
|
session: [() => PlaceholderS3Client, PlaceholderCreateSessionCommandCtor];
|
|
@@ -7,6 +7,7 @@ export interface S3InputConfig {
|
|
|
7
7
|
followRegionRedirects?: boolean;
|
|
8
8
|
s3ExpressIdentityProvider?: S3ExpressIdentityProvider;
|
|
9
9
|
bucketEndpoint?: boolean;
|
|
10
|
+
expectContinueHeader?: boolean | number;
|
|
10
11
|
}
|
|
11
12
|
type PlaceholderS3Client = Client<any, any, any> & any;
|
|
12
13
|
type PlaceholderCreateSessionCommandCtor = {
|
|
@@ -19,6 +20,7 @@ export interface S3ResolvedConfig {
|
|
|
19
20
|
followRegionRedirects: boolean;
|
|
20
21
|
s3ExpressIdentityProvider: S3ExpressIdentityProvider;
|
|
21
22
|
bucketEndpoint: boolean;
|
|
23
|
+
expectContinueHeader: boolean | number;
|
|
22
24
|
}
|
|
23
25
|
export declare const resolveS3Config: <T>(
|
|
24
26
|
input: T & S3InputConfig,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-sdk-s3",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.916.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline middleware-sdk-s3",
|
|
@@ -28,18 +28,18 @@
|
|
|
28
28
|
},
|
|
29
29
|
"license": "Apache-2.0",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@aws-sdk/core": "3.
|
|
31
|
+
"@aws-sdk/core": "3.916.0",
|
|
32
32
|
"@aws-sdk/types": "3.914.0",
|
|
33
33
|
"@aws-sdk/util-arn-parser": "3.893.0",
|
|
34
|
-
"@smithy/core": "^3.17.
|
|
34
|
+
"@smithy/core": "^3.17.1",
|
|
35
35
|
"@smithy/node-config-provider": "^4.3.3",
|
|
36
36
|
"@smithy/protocol-http": "^5.3.3",
|
|
37
37
|
"@smithy/signature-v4": "^5.3.3",
|
|
38
|
-
"@smithy/smithy-client": "^4.9.
|
|
38
|
+
"@smithy/smithy-client": "^4.9.1",
|
|
39
39
|
"@smithy/types": "^4.8.0",
|
|
40
40
|
"@smithy/util-config-provider": "^4.2.0",
|
|
41
41
|
"@smithy/util-middleware": "^4.2.3",
|
|
42
|
-
"@smithy/util-stream": "^4.5.
|
|
42
|
+
"@smithy/util-stream": "^4.5.4",
|
|
43
43
|
"@smithy/util-utf8": "^4.2.0",
|
|
44
44
|
"tslib": "^2.6.2"
|
|
45
45
|
},
|