@aws-sdk/middleware-sdk-ec2 3.40.0 → 3.47.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 CHANGED
@@ -3,6 +3,44 @@
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.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/middleware-sdk-ec2
9
+
10
+
11
+
12
+
13
+
14
+ # [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
15
+
16
+
17
+ ### Features
18
+
19
+ * **packages:** end support for Node.js 10.x ([#3141](https://github.com/aws/aws-sdk-js-v3/issues/3141)) ([1a62865](https://github.com/aws/aws-sdk-js-v3/commit/1a6286513f7cdb556708845c512861c5f92eb883))
20
+
21
+
22
+
23
+
24
+
25
+ # [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/middleware-sdk-ec2
28
+
29
+
30
+
31
+
32
+
33
+ # [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
34
+
35
+
36
+ ### Bug Fixes
37
+
38
+ * **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))
39
+
40
+
41
+
42
+
43
+
6
44
  # [3.40.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.39.0...v3.40.0) (2021-11-05)
7
45
 
8
46
  **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: util_uri_escape_1.escapeUri(util_format_url_1.formatUrl(presignedRequest)),
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: escapeUri(formatUrl(presignedRequest)) }) });
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,12 +1,13 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-sdk-ec2",
3
- "version": "3.40.0",
3
+ "version": "3.47.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",
7
7
  "build:es": "tsc -p tsconfig.es.json",
8
8
  "build:types": "tsc -p tsconfig.types.json",
9
- "downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
9
+ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
10
+ "clean": "rimraf ./dist-*",
10
11
  "test": "jest"
11
12
  },
12
13
  "main": "./dist-cjs/index.js",
@@ -18,20 +19,14 @@
18
19
  },
19
20
  "license": "Apache-2.0",
20
21
  "dependencies": {
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",
25
- "@aws-sdk/util-uri-escape": "3.37.0",
22
+ "@aws-sdk/protocol-http": "3.47.0",
23
+ "@aws-sdk/signature-v4": "3.47.0",
24
+ "@aws-sdk/types": "3.47.0",
25
+ "@aws-sdk/util-format-url": "3.47.0",
26
26
  "tslib": "^2.3.0"
27
27
  },
28
- "devDependencies": {
29
- "@types/jest": "^26.0.4",
30
- "jest": "^26.1.0",
31
- "typescript": "~4.3.5"
32
- },
33
28
  "engines": {
34
- "node": ">= 10.0.0"
29
+ "node": ">= 12.0.0"
35
30
  },
36
31
  "typesVersions": {
37
32
  "<4.0": {