@aws-sdk/middleware-sdk-ec2 3.37.0 → 3.42.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 +35 -0
- package/dist-cjs/index.js +1 -2
- package/dist-es/index.js +1 -2
- package/package.json +5 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,41 @@
|
|
|
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.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **middleware-sdk-ec2:** remove double encoding of presigned url ([#3022](https://github.com/aws/aws-sdk-js-v3/issues/3022)) ([7cf73ea](https://github.com/aws/aws-sdk-js-v3/commit/7cf73eac3103b0a0ad7c0d84c04882f07a576245))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.40.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.39.0...v3.40.0) (2021-11-05)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/middleware-sdk-ec2
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.39.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.38.0...v3.39.0) (2021-10-29)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/middleware-sdk-ec2
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
# [3.38.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.37.0...v3.38.0) (2021-10-22)
|
|
34
|
+
|
|
35
|
+
**Note:** Version bump only for package @aws-sdk/middleware-sdk-ec2
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
6
41
|
# [3.37.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.1...v3.37.0) (2021-10-15)
|
|
7
42
|
|
|
8
43
|
**Note:** Version bump only for package @aws-sdk/middleware-sdk-ec2
|
package/dist-cjs/index.js
CHANGED
|
@@ -4,7 +4,6 @@ exports.getCopySnapshotPresignedUrlPlugin = exports.copySnapshotPresignedUrlMidd
|
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const signature_v4_1 = require("@aws-sdk/signature-v4");
|
|
6
6
|
const util_format_url_1 = require("@aws-sdk/util-format-url");
|
|
7
|
-
const util_uri_escape_1 = require("@aws-sdk/util-uri-escape");
|
|
8
7
|
const version = "2016-11-15";
|
|
9
8
|
function copySnapshotPresignedUrlMiddleware(options) {
|
|
10
9
|
return (next) => async (args) => {
|
|
@@ -42,7 +41,7 @@ function copySnapshotPresignedUrlMiddleware(options) {
|
|
|
42
41
|
input: {
|
|
43
42
|
...args.input,
|
|
44
43
|
DestinationRegion: region,
|
|
45
|
-
PresignedUrl:
|
|
44
|
+
PresignedUrl: util_format_url_1.formatUrl(presignedRequest),
|
|
46
45
|
},
|
|
47
46
|
};
|
|
48
47
|
}
|
package/dist-es/index.js
CHANGED
|
@@ -2,7 +2,6 @@ import { __assign, __awaiter, __generator } from "tslib";
|
|
|
2
2
|
import { HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
3
|
import { SignatureV4 } from "@aws-sdk/signature-v4";
|
|
4
4
|
import { formatUrl } from "@aws-sdk/util-format-url";
|
|
5
|
-
import { escapeUri } from "@aws-sdk/util-uri-escape";
|
|
6
5
|
var version = "2016-11-15";
|
|
7
6
|
export function copySnapshotPresignedUrlMiddleware(options) {
|
|
8
7
|
var _this = this;
|
|
@@ -42,7 +41,7 @@ export function copySnapshotPresignedUrlMiddleware(options) {
|
|
|
42
41
|
})];
|
|
43
42
|
case 3:
|
|
44
43
|
presignedRequest = _a.sent();
|
|
45
|
-
args = __assign(__assign({}, args), { input: __assign(__assign({}, args.input), { DestinationRegion: region, PresignedUrl:
|
|
44
|
+
args = __assign(__assign({}, args), { input: __assign(__assign({}, args.input), { DestinationRegion: region, PresignedUrl: formatUrl(presignedRequest) }) });
|
|
46
45
|
_a.label = 4;
|
|
47
46
|
case 4: return [2, next(args)];
|
|
48
47
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-sdk-ec2",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.42.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "yarn build:cjs && yarn build:es && yarn build:types",
|
|
6
6
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,11 +18,10 @@
|
|
|
18
18
|
},
|
|
19
19
|
"license": "Apache-2.0",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@aws-sdk/protocol-http": "3.
|
|
22
|
-
"@aws-sdk/signature-v4": "3.
|
|
23
|
-
"@aws-sdk/types": "3.
|
|
24
|
-
"@aws-sdk/util-format-url": "3.
|
|
25
|
-
"@aws-sdk/util-uri-escape": "3.37.0",
|
|
21
|
+
"@aws-sdk/protocol-http": "3.40.0",
|
|
22
|
+
"@aws-sdk/signature-v4": "3.40.0",
|
|
23
|
+
"@aws-sdk/types": "3.40.0",
|
|
24
|
+
"@aws-sdk/util-format-url": "3.40.0",
|
|
26
25
|
"tslib": "^2.3.0"
|
|
27
26
|
},
|
|
28
27
|
"devDependencies": {
|