@aws-sdk/middleware-sdk-s3 3.54.1 → 3.58.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/CHANGELOG.md +24 -0
- package/dist-cjs/S3SignatureV4.js +2 -1
- package/dist-cjs/throw-200-exceptions.js +1 -1
- package/dist-cjs/use-regional-endpoint.js +1 -1
- package/dist-cjs/validate-bucket-name.js +1 -1
- package/dist-es/S3SignatureV4.js +3 -2
- package/dist-es/validate-bucket-name.js +1 -1
- package/package.json +13 -8
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,30 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.58.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.57.0...v3.58.0) (2022-03-28)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/middleware-sdk-s3
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.56.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.55.0...v3.56.0) (2022-03-24)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/middleware-sdk-s3
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.55.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.1...v3.55.0) (2022-03-21)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @aws-sdk/middleware-sdk-s3
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
6
30
|
## [3.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15)
|
|
7
31
|
|
|
8
32
|
**Note:** Version bump only for package @aws-sdk/middleware-sdk-s3
|
|
@@ -34,7 +34,8 @@ class S3SignatureV4 {
|
|
|
34
34
|
catch (e) {
|
|
35
35
|
e.message =
|
|
36
36
|
`${e.message}\nPlease check if you have installed "@aws-sdk/signature-v4-crt" package explicitly. \n` +
|
|
37
|
-
"For more information please go to
|
|
37
|
+
"For more information please go to " +
|
|
38
|
+
"https://github.com/aws/aws-sdk-js-v3##functionality-requiring-aws-common-runtime-crt";
|
|
38
39
|
throw e;
|
|
39
40
|
}
|
|
40
41
|
this.sigv4aSigner = new CrtSignerV4({
|
|
@@ -40,7 +40,7 @@ exports.throw200ExceptionsMiddlewareOptions = {
|
|
|
40
40
|
};
|
|
41
41
|
const getThrow200ExceptionsPlugin = (config) => ({
|
|
42
42
|
applyToStack: (clientStack) => {
|
|
43
|
-
clientStack.addRelativeTo(exports.throw200ExceptionsMiddleware(config), exports.throw200ExceptionsMiddlewareOptions);
|
|
43
|
+
clientStack.addRelativeTo((0, exports.throw200ExceptionsMiddleware)(config), exports.throw200ExceptionsMiddlewareOptions);
|
|
44
44
|
},
|
|
45
45
|
});
|
|
46
46
|
exports.getThrow200ExceptionsPlugin = getThrow200ExceptionsPlugin;
|
|
@@ -23,7 +23,7 @@ exports.useRegionalEndpointMiddlewareOptions = {
|
|
|
23
23
|
};
|
|
24
24
|
const getUseRegionalEndpointPlugin = (config) => ({
|
|
25
25
|
applyToStack: (clientStack) => {
|
|
26
|
-
clientStack.add(exports.useRegionalEndpointMiddleware(config), exports.useRegionalEndpointMiddlewareOptions);
|
|
26
|
+
clientStack.add((0, exports.useRegionalEndpointMiddleware)(config), exports.useRegionalEndpointMiddlewareOptions);
|
|
27
27
|
},
|
|
28
28
|
});
|
|
29
29
|
exports.getUseRegionalEndpointPlugin = getUseRegionalEndpointPlugin;
|
|
@@ -5,7 +5,7 @@ const util_arn_parser_1 = require("@aws-sdk/util-arn-parser");
|
|
|
5
5
|
function validateBucketNameMiddleware() {
|
|
6
6
|
return (next) => async (args) => {
|
|
7
7
|
const { input: { Bucket }, } = args;
|
|
8
|
-
if (typeof Bucket === "string" && !util_arn_parser_1.validate(Bucket) && Bucket.indexOf("/") >= 0) {
|
|
8
|
+
if (typeof Bucket === "string" && !(0, util_arn_parser_1.validate)(Bucket) && Bucket.indexOf("/") >= 0) {
|
|
9
9
|
const err = new Error(`Bucket name shouldn't contain '/', received '${Bucket}'`);
|
|
10
10
|
err.name = "InvalidBucketName";
|
|
11
11
|
throw err;
|
package/dist-es/S3SignatureV4.js
CHANGED
|
@@ -41,8 +41,9 @@ var S3SignatureV4 = (function () {
|
|
|
41
41
|
}
|
|
42
42
|
catch (e) {
|
|
43
43
|
e.message =
|
|
44
|
-
e.message
|
|
45
|
-
"For more information please go to
|
|
44
|
+
"".concat(e.message, "\nPlease check if you have installed \"@aws-sdk/signature-v4-crt\" package explicitly. \n") +
|
|
45
|
+
"For more information please go to " +
|
|
46
|
+
"https://github.com/aws/aws-sdk-js-v3##functionality-requiring-aws-common-runtime-crt";
|
|
46
47
|
throw e;
|
|
47
48
|
}
|
|
48
49
|
this.sigv4aSigner = new CrtSignerV4_1(__assign(__assign({}, this.signerOptions), { signingAlgorithm: 1 }));
|
|
@@ -8,7 +8,7 @@ export function validateBucketNameMiddleware() {
|
|
|
8
8
|
return __generator(this, function (_a) {
|
|
9
9
|
Bucket = args.input.Bucket;
|
|
10
10
|
if (typeof Bucket === "string" && !validateArn(Bucket) && Bucket.indexOf("/") >= 0) {
|
|
11
|
-
err = new Error("Bucket name shouldn't contain '/', received '"
|
|
11
|
+
err = new Error("Bucket name shouldn't contain '/', received '".concat(Bucket, "'"));
|
|
12
12
|
err.name = "InvalidBucketName";
|
|
13
13
|
throw err;
|
|
14
14
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-sdk-s3",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.58.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",
|
|
@@ -25,24 +25,29 @@
|
|
|
25
25
|
},
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@aws-sdk/protocol-http": "3.
|
|
29
|
-
"@aws-sdk/signature-v4": "3.
|
|
30
|
-
"@aws-sdk/types": "3.
|
|
31
|
-
"@aws-sdk/util-arn-parser": "3.
|
|
32
|
-
"tslib": "^2.3.
|
|
28
|
+
"@aws-sdk/protocol-http": "3.58.0",
|
|
29
|
+
"@aws-sdk/signature-v4": "3.58.0",
|
|
30
|
+
"@aws-sdk/types": "3.55.0",
|
|
31
|
+
"@aws-sdk/util-arn-parser": "3.55.0",
|
|
32
|
+
"tslib": "^2.3.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@aws-sdk/signature-v4-crt": "3.
|
|
35
|
+
"@aws-sdk/signature-v4-crt": "3.58.0",
|
|
36
36
|
"@tsconfig/recommended": "1.0.1",
|
|
37
37
|
"concurrently": "7.0.0",
|
|
38
38
|
"downlevel-dts": "0.7.0",
|
|
39
39
|
"rimraf": "3.0.2",
|
|
40
40
|
"typedoc": "0.19.2",
|
|
41
|
-
"typescript": "~4.
|
|
41
|
+
"typescript": "~4.6.2"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@aws-sdk/signature-v4-crt": "^3.54.1"
|
|
45
45
|
},
|
|
46
|
+
"peerDependenciesMeta": {
|
|
47
|
+
"@aws-sdk/signature-v4-crt": {
|
|
48
|
+
"optional": true
|
|
49
|
+
}
|
|
50
|
+
},
|
|
46
51
|
"engines": {
|
|
47
52
|
"node": ">= 12.0.0"
|
|
48
53
|
},
|