@aws-sdk/client-s3 3.425.0 → 3.428.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.
@@ -41,6 +41,7 @@ class S3Client extends smithy_client_1.Client {
41
41
  this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config));
42
42
  this.middlewareStack.use((0, middleware_sdk_s3_1.getValidateBucketNamePlugin)(this.config));
43
43
  this.middlewareStack.use((0, middleware_expect_continue_1.getAddExpectContinuePlugin)(this.config));
44
+ this.middlewareStack.use((0, middleware_sdk_s3_1.getRegionRedirectMiddlewarePlugin)(this.config));
44
45
  this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
45
46
  }
46
47
  destroy() {
@@ -2,7 +2,7 @@ import { getAddExpectContinuePlugin } from "@aws-sdk/middleware-expect-continue"
2
2
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
3
3
  import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
4
4
  import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
5
- import { getValidateBucketNamePlugin, resolveS3Config, } from "@aws-sdk/middleware-sdk-s3";
5
+ import { getRegionRedirectMiddlewarePlugin, getValidateBucketNamePlugin, resolveS3Config, } from "@aws-sdk/middleware-sdk-s3";
6
6
  import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
7
7
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
8
8
  import { resolveRegionConfig } from "@smithy/config-resolver";
@@ -38,6 +38,7 @@ export class S3Client extends __Client {
38
38
  this.middlewareStack.use(getAwsAuthPlugin(this.config));
39
39
  this.middlewareStack.use(getValidateBucketNamePlugin(this.config));
40
40
  this.middlewareStack.use(getAddExpectContinuePlugin(this.config));
41
+ this.middlewareStack.use(getRegionRedirectMiddlewarePlugin(this.config));
41
42
  this.middlewareStack.use(getUserAgentPlugin(this.config));
42
43
  }
43
44
  destroy() {
@@ -53,6 +53,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
53
53
  forcePathStyle?: (boolean & (boolean | import("@smithy/types").Provider<boolean>)) | undefined;
54
54
  useAccelerateEndpoint?: (boolean & (boolean | import("@smithy/types").Provider<boolean>)) | undefined;
55
55
  disableMultiregionAccessPoints?: (boolean & (boolean | import("@smithy/types").Provider<boolean>)) | undefined;
56
+ followRegionRedirects?: boolean | undefined;
56
57
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
57
58
  useGlobalEndpoint?: boolean | import("@smithy/types").Provider<boolean> | undefined;
58
59
  };
@@ -54,6 +54,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
54
54
  forcePathStyle?: (boolean & (boolean | import("@aws-sdk/types").Provider<boolean>)) | undefined;
55
55
  useAccelerateEndpoint?: (boolean & (boolean | import("@aws-sdk/types").Provider<boolean>)) | undefined;
56
56
  disableMultiregionAccessPoints?: (boolean & (boolean | import("@aws-sdk/types").Provider<boolean>)) | undefined;
57
+ followRegionRedirects?: boolean | undefined;
57
58
  customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
58
59
  useGlobalEndpoint?: boolean | import("@aws-sdk/types").Provider<boolean> | undefined;
59
60
  };
@@ -52,6 +52,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
52
52
  forcePathStyle?: boolean | undefined;
53
53
  useAccelerateEndpoint?: boolean | undefined;
54
54
  disableMultiregionAccessPoints?: boolean | undefined;
55
+ followRegionRedirects?: boolean | undefined;
55
56
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
56
57
  useGlobalEndpoint?: boolean | import("@smithy/types").Provider<boolean> | undefined;
57
58
  };
@@ -115,6 +115,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
115
115
  disableMultiregionAccessPoints?:
116
116
  | (boolean & (boolean | import("@smithy/types").Provider<boolean>))
117
117
  | undefined;
118
+ followRegionRedirects?: boolean | undefined;
118
119
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
119
120
  useGlobalEndpoint?:
120
121
  | boolean
@@ -118,6 +118,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
118
118
  disableMultiregionAccessPoints?:
119
119
  | (boolean & (boolean | import("@aws-sdk/types").Provider<boolean>))
120
120
  | undefined;
121
+ followRegionRedirects?: boolean | undefined;
121
122
  customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
122
123
  useGlobalEndpoint?:
123
124
  | boolean
@@ -100,6 +100,7 @@ export declare const getRuntimeConfig: (config: S3ClientConfig) => {
100
100
  forcePathStyle?: boolean | undefined;
101
101
  useAccelerateEndpoint?: boolean | undefined;
102
102
  disableMultiregionAccessPoints?: boolean | undefined;
103
+ followRegionRedirects?: boolean | undefined;
103
104
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
104
105
  useGlobalEndpoint?:
105
106
  | boolean
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.425.0",
4
+ "version": "3.428.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -25,56 +25,56 @@
25
25
  "@aws-crypto/sha1-browser": "3.0.0",
26
26
  "@aws-crypto/sha256-browser": "3.0.0",
27
27
  "@aws-crypto/sha256-js": "3.0.0",
28
- "@aws-sdk/client-sts": "3.425.0",
29
- "@aws-sdk/credential-provider-node": "3.425.0",
30
- "@aws-sdk/middleware-bucket-endpoint": "3.425.0",
31
- "@aws-sdk/middleware-expect-continue": "3.425.0",
32
- "@aws-sdk/middleware-flexible-checksums": "3.425.0",
33
- "@aws-sdk/middleware-host-header": "3.425.0",
34
- "@aws-sdk/middleware-location-constraint": "3.425.0",
35
- "@aws-sdk/middleware-logger": "3.425.0",
36
- "@aws-sdk/middleware-recursion-detection": "3.425.0",
37
- "@aws-sdk/middleware-sdk-s3": "3.425.0",
38
- "@aws-sdk/middleware-signing": "3.425.0",
39
- "@aws-sdk/middleware-ssec": "3.425.0",
40
- "@aws-sdk/middleware-user-agent": "3.425.0",
41
- "@aws-sdk/region-config-resolver": "3.425.0",
42
- "@aws-sdk/signature-v4-multi-region": "3.425.0",
43
- "@aws-sdk/types": "3.425.0",
44
- "@aws-sdk/util-endpoints": "3.425.0",
45
- "@aws-sdk/util-user-agent-browser": "3.425.0",
46
- "@aws-sdk/util-user-agent-node": "3.425.0",
28
+ "@aws-sdk/client-sts": "3.428.0",
29
+ "@aws-sdk/credential-provider-node": "3.428.0",
30
+ "@aws-sdk/middleware-bucket-endpoint": "3.428.0",
31
+ "@aws-sdk/middleware-expect-continue": "3.428.0",
32
+ "@aws-sdk/middleware-flexible-checksums": "3.428.0",
33
+ "@aws-sdk/middleware-host-header": "3.428.0",
34
+ "@aws-sdk/middleware-location-constraint": "3.428.0",
35
+ "@aws-sdk/middleware-logger": "3.428.0",
36
+ "@aws-sdk/middleware-recursion-detection": "3.428.0",
37
+ "@aws-sdk/middleware-sdk-s3": "3.428.0",
38
+ "@aws-sdk/middleware-signing": "3.428.0",
39
+ "@aws-sdk/middleware-ssec": "3.428.0",
40
+ "@aws-sdk/middleware-user-agent": "3.428.0",
41
+ "@aws-sdk/region-config-resolver": "3.428.0",
42
+ "@aws-sdk/signature-v4-multi-region": "3.428.0",
43
+ "@aws-sdk/types": "3.428.0",
44
+ "@aws-sdk/util-endpoints": "3.428.0",
45
+ "@aws-sdk/util-user-agent-browser": "3.428.0",
46
+ "@aws-sdk/util-user-agent-node": "3.428.0",
47
47
  "@aws-sdk/xml-builder": "3.310.0",
48
- "@smithy/config-resolver": "^2.0.11",
49
- "@smithy/eventstream-serde-browser": "^2.0.10",
50
- "@smithy/eventstream-serde-config-resolver": "^2.0.10",
51
- "@smithy/eventstream-serde-node": "^2.0.10",
52
- "@smithy/fetch-http-handler": "^2.2.1",
53
- "@smithy/hash-blob-browser": "^2.0.10",
54
- "@smithy/hash-node": "^2.0.10",
55
- "@smithy/hash-stream-node": "^2.0.10",
56
- "@smithy/invalid-dependency": "^2.0.10",
57
- "@smithy/md5-js": "^2.0.10",
58
- "@smithy/middleware-content-length": "^2.0.12",
59
- "@smithy/middleware-endpoint": "^2.0.10",
60
- "@smithy/middleware-retry": "^2.0.13",
61
- "@smithy/middleware-serde": "^2.0.10",
62
- "@smithy/middleware-stack": "^2.0.4",
63
- "@smithy/node-config-provider": "^2.0.13",
64
- "@smithy/node-http-handler": "^2.1.6",
65
- "@smithy/protocol-http": "^3.0.6",
66
- "@smithy/smithy-client": "^2.1.9",
67
- "@smithy/types": "^2.3.4",
68
- "@smithy/url-parser": "^2.0.10",
48
+ "@smithy/config-resolver": "^2.0.14",
49
+ "@smithy/eventstream-serde-browser": "^2.0.11",
50
+ "@smithy/eventstream-serde-config-resolver": "^2.0.11",
51
+ "@smithy/eventstream-serde-node": "^2.0.11",
52
+ "@smithy/fetch-http-handler": "^2.2.3",
53
+ "@smithy/hash-blob-browser": "^2.0.11",
54
+ "@smithy/hash-node": "^2.0.11",
55
+ "@smithy/hash-stream-node": "^2.0.11",
56
+ "@smithy/invalid-dependency": "^2.0.11",
57
+ "@smithy/md5-js": "^2.0.11",
58
+ "@smithy/middleware-content-length": "^2.0.13",
59
+ "@smithy/middleware-endpoint": "^2.1.0",
60
+ "@smithy/middleware-retry": "^2.0.16",
61
+ "@smithy/middleware-serde": "^2.0.11",
62
+ "@smithy/middleware-stack": "^2.0.5",
63
+ "@smithy/node-config-provider": "^2.1.1",
64
+ "@smithy/node-http-handler": "^2.1.7",
65
+ "@smithy/protocol-http": "^3.0.7",
66
+ "@smithy/smithy-client": "^2.1.11",
67
+ "@smithy/types": "^2.3.5",
68
+ "@smithy/url-parser": "^2.0.11",
69
69
  "@smithy/util-base64": "^2.0.0",
70
70
  "@smithy/util-body-length-browser": "^2.0.0",
71
71
  "@smithy/util-body-length-node": "^2.1.0",
72
- "@smithy/util-defaults-mode-browser": "^2.0.13",
73
- "@smithy/util-defaults-mode-node": "^2.0.15",
74
- "@smithy/util-retry": "^2.0.3",
75
- "@smithy/util-stream": "^2.0.14",
72
+ "@smithy/util-defaults-mode-browser": "^2.0.15",
73
+ "@smithy/util-defaults-mode-node": "^2.0.19",
74
+ "@smithy/util-retry": "^2.0.4",
75
+ "@smithy/util-stream": "^2.0.16",
76
76
  "@smithy/util-utf8": "^2.0.0",
77
- "@smithy/util-waiter": "^2.0.10",
77
+ "@smithy/util-waiter": "^2.0.11",
78
78
  "fast-xml-parser": "4.2.5",
79
79
  "tslib": "^2.5.0"
80
80
  },