@aws-sdk/middleware-sdk-sqs 3.533.0 → 3.547.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/dist-cjs/index.js CHANGED
@@ -89,6 +89,9 @@ var import_util_utf8 = require("@smithy/util-utf8");
89
89
  function receiveMessageMiddleware(options) {
90
90
  return (next) => async (args) => {
91
91
  const resp = await next({ ...args });
92
+ if (options.md5 === false) {
93
+ return resp;
94
+ }
92
95
  const output = resp.output;
93
96
  const messageIds = [];
94
97
  if (output.Messages !== void 0) {
@@ -125,6 +128,9 @@ var getReceiveMessagePlugin = /* @__PURE__ */ __name((config) => ({
125
128
  var import_util_utf82 = require("@smithy/util-utf8");
126
129
  var sendMessageMiddleware = /* @__PURE__ */ __name((options) => (next) => async (args) => {
127
130
  const resp = await next({ ...args });
131
+ if (options.md5 === false) {
132
+ return resp;
133
+ }
128
134
  const output = resp.output;
129
135
  const hash = new options.md5();
130
136
  hash.update((0, import_util_utf82.toUint8Array)(args.input.MessageBody || ""));
@@ -150,6 +156,9 @@ var getSendMessagePlugin = /* @__PURE__ */ __name((config) => ({
150
156
  var import_util_utf83 = require("@smithy/util-utf8");
151
157
  var sendMessageBatchMiddleware = /* @__PURE__ */ __name((options) => (next) => async (args) => {
152
158
  const resp = await next({ ...args });
159
+ if (options.md5 === false) {
160
+ return resp;
161
+ }
153
162
  const output = resp.output;
154
163
  const messageIds = [];
155
164
  const entries = {};
@@ -3,6 +3,9 @@ import { toUint8Array } from "@smithy/util-utf8";
3
3
  export function receiveMessageMiddleware(options) {
4
4
  return (next) => async (args) => {
5
5
  const resp = await next({ ...args });
6
+ if (options.md5 === false) {
7
+ return resp;
8
+ }
6
9
  const output = resp.output;
7
10
  const messageIds = [];
8
11
  if (output.Messages !== undefined) {
@@ -2,6 +2,9 @@ import { toHex } from "@smithy/util-hex-encoding";
2
2
  import { toUint8Array } from "@smithy/util-utf8";
3
3
  export const sendMessageBatchMiddleware = (options) => (next) => async (args) => {
4
4
  const resp = await next({ ...args });
5
+ if (options.md5 === false) {
6
+ return resp;
7
+ }
5
8
  const output = resp.output;
6
9
  const messageIds = [];
7
10
  const entries = {};
@@ -2,6 +2,9 @@ import { toHex } from "@smithy/util-hex-encoding";
2
2
  import { toUint8Array } from "@smithy/util-utf8";
3
3
  export const sendMessageMiddleware = (options) => (next) => async (args) => {
4
4
  const resp = await next({ ...args });
5
+ if (options.md5 === false) {
6
+ return resp;
7
+ }
5
8
  const output = resp.output;
6
9
  const hash = new options.md5();
7
10
  hash.update(toUint8Array(args.input.MessageBody || ""));
@@ -1,4 +1,4 @@
1
1
  import { ChecksumConstructor, HashConstructor } from "@smithy/types";
2
2
  export interface PreviouslyResolved {
3
- md5: ChecksumConstructor | HashConstructor;
3
+ md5: ChecksumConstructor | HashConstructor | false;
4
4
  }
@@ -1,4 +1,4 @@
1
1
  import { ChecksumConstructor, HashConstructor } from "@smithy/types";
2
2
  export interface PreviouslyResolved {
3
- md5: ChecksumConstructor | HashConstructor;
3
+ md5: ChecksumConstructor | HashConstructor | false;
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-sdk-sqs",
3
- "version": "3.533.0",
3
+ "version": "3.547.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "node ../../scripts/compilation/inline middleware-sdk-sqs",
@@ -21,12 +21,12 @@
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@aws-sdk/types": "3.533.0",
25
- "@smithy/smithy-client": "^2.4.5",
26
- "@smithy/types": "^2.11.0",
27
- "@smithy/util-hex-encoding": "^2.1.1",
28
- "@smithy/util-utf8": "^2.2.0",
29
- "tslib": "^2.5.0"
24
+ "@aws-sdk/types": "3.535.0",
25
+ "@smithy/smithy-client": "^2.5.0",
26
+ "@smithy/types": "^2.12.0",
27
+ "@smithy/util-hex-encoding": "^2.2.0",
28
+ "@smithy/util-utf8": "^2.3.0",
29
+ "tslib": "^2.6.2"
30
30
  },
31
31
  "engines": {
32
32
  "node": ">=14.0.0"