@smithy/middleware-apply-body-checksum 4.1.2 → 4.2.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
@@ -18,14 +18,14 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
 
20
20
  // src/index.ts
21
- var src_exports = {};
22
- __export(src_exports, {
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
23
  applyMd5BodyChecksumMiddleware: () => applyMd5BodyChecksumMiddleware,
24
24
  applyMd5BodyChecksumMiddlewareOptions: () => applyMd5BodyChecksumMiddlewareOptions,
25
25
  getApplyMd5BodyChecksumPlugin: () => getApplyMd5BodyChecksumPlugin,
26
26
  resolveMd5BodyChecksumConfig: () => resolveMd5BodyChecksumConfig
27
27
  });
28
- module.exports = __toCommonJS(src_exports);
28
+ module.exports = __toCommonJS(index_exports);
29
29
 
30
30
  // src/applyMd5BodyChecksumMiddleware.ts
31
31
  var import_is_array_buffer = require("@smithy/is-array-buffer");
@@ -63,9 +63,9 @@ var applyMd5BodyChecksumMiddlewareOptions = {
63
63
  override: true
64
64
  };
65
65
  var getApplyMd5BodyChecksumPlugin = /* @__PURE__ */ __name((config) => ({
66
- applyToStack: (clientStack) => {
66
+ applyToStack: /* @__PURE__ */ __name((clientStack) => {
67
67
  clientStack.add(applyMd5BodyChecksumMiddleware(config), applyMd5BodyChecksumMiddlewareOptions);
68
- }
68
+ }, "applyToStack")
69
69
  }), "getApplyMd5BodyChecksumPlugin");
70
70
  var hasHeader = /* @__PURE__ */ __name((soughtHeader, headers) => {
71
71
  soughtHeader = soughtHeader.toLowerCase();
@@ -1,5 +1,5 @@
1
- import { BuildHandlerOptions, BuildMiddleware, Pluggable } from "@smithy/types";
2
- import { Md5BodyChecksumResolvedConfig } from "./md5Configuration";
1
+ import type { BuildHandlerOptions, BuildMiddleware, Pluggable } from "@smithy/types";
2
+ import type { Md5BodyChecksumResolvedConfig } from "./md5Configuration";
3
3
  export declare const applyMd5BodyChecksumMiddleware: (options: Md5BodyChecksumResolvedConfig) => BuildMiddleware<any, any>;
4
4
  export declare const applyMd5BodyChecksumMiddlewareOptions: BuildHandlerOptions;
5
5
  export declare const getApplyMd5BodyChecksumPlugin: (config: Md5BodyChecksumResolvedConfig) => Pluggable<any, any>;
@@ -1,4 +1,4 @@
1
- import { ChecksumConstructor, Encoder, HashConstructor, StreamHasher } from "@smithy/types";
1
+ import type { ChecksumConstructor, Encoder, HashConstructor, StreamHasher } from "@smithy/types";
2
2
  /**
3
3
  * @public
4
4
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-apply-body-checksum",
3
- "version": "4.1.2",
3
+ "version": "4.2.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline middleware-apply-body-checksum",
@@ -12,9 +12,9 @@
12
12
  "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
13
13
  "format": "prettier --config ../../prettier.config.js --ignore-path ../../.prettierignore --write \"**/*.{ts,md,json}\"",
14
14
  "test": "yarn g:vitest run",
15
- "test:integration": "yarn g:vitest run -c vitest.config.integ.ts",
15
+ "test:integration": "yarn g:vitest run -c vitest.config.integ.mts",
16
16
  "test:watch": "yarn g:vitest watch",
17
- "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.ts"
17
+ "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
18
18
  },
19
19
  "main": "./dist-cjs/index.js",
20
20
  "module": "./dist-es/index.js",
@@ -24,10 +24,11 @@
24
24
  "url": "https://aws.amazon.com/javascript/"
25
25
  },
26
26
  "license": "Apache-2.0",
27
+ "sideEffects": false,
27
28
  "dependencies": {
28
- "@smithy/is-array-buffer": "^4.0.0",
29
- "@smithy/protocol-http": "^5.1.2",
30
- "@smithy/types": "^4.3.1",
29
+ "@smithy/is-array-buffer": "^4.1.0",
30
+ "@smithy/protocol-http": "^5.2.0",
31
+ "@smithy/types": "^4.4.0",
31
32
  "tslib": "^2.6.2"
32
33
  },
33
34
  "engines": {