@aws-sdk/middleware-sdk-sqs 3.54.1 → 3.55.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,14 @@
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.55.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.1...v3.55.0) (2022-03-21)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/middleware-sdk-sqs
9
+
10
+
11
+
12
+
13
+
6
14
  ## [3.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15)
7
15
 
8
16
  **Note:** Version bump only for package @aws-sdk/middleware-sdk-sqs
@@ -12,7 +12,7 @@ function receiveMessageMiddleware(options) {
12
12
  const md5 = message.MD5OfBody;
13
13
  const hash = new options.md5();
14
14
  hash.update(message.Body || "");
15
- if (md5 !== util_hex_encoding_1.toHex(await hash.digest())) {
15
+ if (md5 !== (0, util_hex_encoding_1.toHex)(await hash.digest())) {
16
16
  messageIds.push(message.MessageId);
17
17
  }
18
18
  }
@@ -19,7 +19,7 @@ const sendMessageBatchMiddleware = (options) => (next) => async (args) => {
19
19
  const md5 = entries[entry.Id].MD5OfMessageBody;
20
20
  const hash = new options.md5();
21
21
  hash.update(entry.MessageBody || "");
22
- if (md5 !== util_hex_encoding_1.toHex(await hash.digest())) {
22
+ if (md5 !== (0, util_hex_encoding_1.toHex)(await hash.digest())) {
23
23
  messageIds.push(entries[entry.Id].MessageId);
24
24
  }
25
25
  }
@@ -38,7 +38,7 @@ exports.sendMessageBatchMiddlewareOptions = {
38
38
  };
39
39
  const getSendMessageBatchPlugin = (config) => ({
40
40
  applyToStack: (clientStack) => {
41
- clientStack.add(exports.sendMessageBatchMiddleware(config), exports.sendMessageBatchMiddlewareOptions);
41
+ clientStack.add((0, exports.sendMessageBatchMiddleware)(config), exports.sendMessageBatchMiddlewareOptions);
42
42
  },
43
43
  });
44
44
  exports.getSendMessageBatchPlugin = getSendMessageBatchPlugin;
@@ -7,7 +7,7 @@ const sendMessageMiddleware = (options) => (next) => async (args) => {
7
7
  const output = resp.output;
8
8
  const hash = new options.md5();
9
9
  hash.update(args.input.MessageBody || "");
10
- if (output.MD5OfMessageBody !== util_hex_encoding_1.toHex(await hash.digest())) {
10
+ if (output.MD5OfMessageBody !== (0, util_hex_encoding_1.toHex)(await hash.digest())) {
11
11
  throw new Error("InvalidChecksumError");
12
12
  }
13
13
  return resp;
@@ -21,7 +21,7 @@ exports.sendMessageMiddlewareOptions = {
21
21
  };
22
22
  const getSendMessagePlugin = (config) => ({
23
23
  applyToStack: (clientStack) => {
24
- clientStack.add(exports.sendMessageMiddleware(config), exports.sendMessageMiddlewareOptions);
24
+ clientStack.add((0, exports.sendMessageMiddleware)(config), exports.sendMessageMiddlewareOptions);
25
25
  },
26
26
  });
27
27
  exports.getSendMessagePlugin = getSendMessagePlugin;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-sdk-sqs",
3
- "version": "3.54.1",
3
+ "version": "3.55.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",
@@ -19,9 +19,9 @@
19
19
  },
20
20
  "license": "Apache-2.0",
21
21
  "dependencies": {
22
- "@aws-sdk/types": "3.54.1",
23
- "@aws-sdk/util-hex-encoding": "3.52.0",
24
- "tslib": "^2.3.0"
22
+ "@aws-sdk/types": "3.55.0",
23
+ "@aws-sdk/util-hex-encoding": "3.55.0",
24
+ "tslib": "^2.3.1"
25
25
  },
26
26
  "engines": {
27
27
  "node": ">= 12.0.0"
@@ -48,6 +48,6 @@
48
48
  "downlevel-dts": "0.7.0",
49
49
  "rimraf": "3.0.2",
50
50
  "typedoc": "0.19.2",
51
- "typescript": "~4.3.5"
51
+ "typescript": "~4.6.2"
52
52
  }
53
53
  }