@smithy/middleware-apply-body-checksum 4.3.12 → 4.3.14

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/README.md CHANGED
@@ -3,5 +3,18 @@
3
3
  [![NPM version](https://img.shields.io/npm/v/@smithy/middleware-apply-body-checksum/latest.svg)](https://www.npmjs.com/package/@smithy/middleware-apply-body-checksum)
4
4
  [![NPM downloads](https://img.shields.io/npm/dm/@smithy/middleware-apply-body-checksum.svg)](https://www.npmjs.com/package/@smithy/middleware-apply-body-checksum)
5
5
 
6
+ ### :warning: Internal API :warning:
7
+
8
+ > This is an internal package.
9
+ > That means this is used as a dependency for other, public packages, but
10
+ > should not be taken directly as a dependency in your application's `package.json`.
11
+
12
+ > If you are updating the version of this package, for example to bring in a
13
+ > bug-fix, you should do so by updating your application lockfile with
14
+ > e.g. `npm up @scope/package` or equivalent command in another
15
+ > package manager, rather than taking a direct dependency.
16
+
17
+ ---
18
+
6
19
  This package provides AWS SDK for JavaScript middleware that applies a checksum
7
20
  of the request body as a header.
package/package.json CHANGED
@@ -1,20 +1,19 @@
1
1
  {
2
2
  "name": "@smithy/middleware-apply-body-checksum",
3
- "version": "4.3.12",
3
+ "version": "4.3.14",
4
4
  "scripts": {
5
- "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
- "build:cjs": "node ../../scripts/inline middleware-apply-body-checksum",
7
- "build:es": "yarn g:tsc -p tsconfig.es.json",
5
+ "build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
6
+ "build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline middleware-apply-body-checksum",
8
7
  "build:types": "yarn g:tsc -p tsconfig.types.json",
9
8
  "build:types:downlevel": "premove dist-types/ts3.4 && downlevel-dts dist-types dist-types/ts3.4",
10
- "stage-release": "premove .release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
11
9
  "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
12
- "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
13
10
  "format": "prettier --config ../../prettier.config.js --ignore-path ../../.prettierignore --write \"**/*.{ts,md,json}\"",
11
+ "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
12
+ "stage-release": "premove .release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
14
13
  "test": "yarn g:vitest run",
15
14
  "test:integration": "yarn g:vitest run -c vitest.config.integ.mts",
16
- "test:watch": "yarn g:vitest watch",
17
- "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
15
+ "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts",
16
+ "test:watch": "yarn g:vitest watch"
18
17
  },
19
18
  "main": "./dist-cjs/index.js",
20
19
  "module": "./dist-es/index.js",
@@ -27,8 +26,8 @@
27
26
  "sideEffects": false,
28
27
  "dependencies": {
29
28
  "@smithy/is-array-buffer": "^4.2.2",
30
- "@smithy/protocol-http": "^5.3.12",
31
- "@smithy/types": "^4.13.1",
29
+ "@smithy/protocol-http": "^5.3.14",
30
+ "@smithy/types": "^4.14.1",
32
31
  "tslib": "^2.6.2"
33
32
  },
34
33
  "engines": {
@@ -1,5 +0,0 @@
1
- import { BuildHandlerOptions, BuildMiddleware, Pluggable } from "@smithy/types";
2
- import { Md5BodyChecksumResolvedConfig } from "./md5Configuration";
3
- export declare const applyMd5BodyChecksumMiddleware: (options: Md5BodyChecksumResolvedConfig) => BuildMiddleware<any, any>;
4
- export declare const applyMd5BodyChecksumMiddlewareOptions: BuildHandlerOptions;
5
- export declare const getApplyMd5BodyChecksumPlugin: (config: Md5BodyChecksumResolvedConfig) => Pluggable<any, any>;
@@ -1,2 +0,0 @@
1
- export * from "./applyMd5BodyChecksumMiddleware";
2
- export * from "./md5Configuration";
@@ -1,30 +0,0 @@
1
- import { ChecksumConstructor, Encoder, HashConstructor, StreamHasher } from "@smithy/types";
2
- /**
3
- * @public
4
- */
5
- export interface Md5BodyChecksumInputConfig {
6
- }
7
- interface PreviouslyResolved {
8
- md5: ChecksumConstructor | HashConstructor;
9
- base64Encoder: Encoder;
10
- streamHasher: StreamHasher<any>;
11
- }
12
- export interface Md5BodyChecksumResolvedConfig {
13
- /**
14
- * A constructor for a class implementing the @smithy/types.Hash interface that computes MD5 hashes.
15
- * @internal
16
- */
17
- md5: ChecksumConstructor | HashConstructor;
18
- /**
19
- * The function that will be used to convert binary data to a base64-encoded string.
20
- * @internal
21
- */
22
- base64Encoder: Encoder;
23
- /**
24
- * A function that, given a hash constructor and a stream, calculates the hash of the streamed value.
25
- * @internal
26
- */
27
- streamHasher: StreamHasher<any>;
28
- }
29
- export declare const resolveMd5BodyChecksumConfig: <T>(input: T & PreviouslyResolved & Md5BodyChecksumInputConfig) => T & Md5BodyChecksumResolvedConfig;
30
- export {};