@aws-sdk/middleware-sdk-s3 3.433.0 → 3.449.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.
|
@@ -10,7 +10,6 @@ function regionRedirectMiddleware(clientConfig) {
|
|
|
10
10
|
}
|
|
11
11
|
catch (err) {
|
|
12
12
|
if (clientConfig.followRegionRedirects &&
|
|
13
|
-
err.name === "PermanentRedirect" &&
|
|
14
13
|
err.$metadata.httpStatusCode === 301) {
|
|
15
14
|
try {
|
|
16
15
|
const actualRegion = err.$response.headers["x-amz-bucket-region"];
|
|
@@ -6,7 +6,6 @@ export function regionRedirectMiddleware(clientConfig) {
|
|
|
6
6
|
}
|
|
7
7
|
catch (err) {
|
|
8
8
|
if (clientConfig.followRegionRedirects &&
|
|
9
|
-
err.name === "PermanentRedirect" &&
|
|
10
9
|
err.$metadata.httpStatusCode === 301) {
|
|
11
10
|
try {
|
|
12
11
|
const actualRegion = err.$response.headers["x-amz-bucket-region"];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-sdk-s3",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.449.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@aws-sdk/types": "3.
|
|
26
|
+
"@aws-sdk/types": "3.449.0",
|
|
27
27
|
"@aws-sdk/util-arn-parser": "3.310.0",
|
|
28
28
|
"@smithy/protocol-http": "^3.0.8",
|
|
29
29
|
"@smithy/smithy-client": "^2.1.12",
|