@aws-sdk/middleware-flexible-checksums 3.162.0 → 3.170.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,22 @@
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.170.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.169.0...v3.170.0) (2022-09-13)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/middleware-flexible-checksums
9
+
10
+
11
+
12
+
13
+
14
+ # [3.168.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.167.0...v3.168.0) (2022-09-09)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/middleware-flexible-checksums
17
+
18
+
19
+
20
+
21
+
6
22
  # [3.162.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.161.0...v3.162.0) (2022-08-31)
7
23
 
8
24
  **Note:** Version bump only for package @aws-sdk/middleware-flexible-checksums
@@ -1,17 +1,22 @@
1
- import { BodyLengthCalculator, Encoder, GetAwsChunkedEncodingStream, HashConstructor, StreamHasher } from "@aws-sdk/types";
2
- export interface PreviouslyResolved {
3
-
4
- base64Encoder: Encoder;
5
-
6
- bodyLengthChecker: BodyLengthCalculator;
7
-
8
- getAwsChunkedEncodingStream: GetAwsChunkedEncodingStream;
9
-
10
- md5: HashConstructor;
11
-
12
- sha1: HashConstructor;
13
-
14
- sha256: HashConstructor;
15
-
16
- streamHasher: StreamHasher<any>;
17
- }
1
+ import {
2
+ BodyLengthCalculator,
3
+ Encoder,
4
+ GetAwsChunkedEncodingStream,
5
+ HashConstructor,
6
+ StreamHasher,
7
+ } from "@aws-sdk/types";
8
+ export interface PreviouslyResolved {
9
+ base64Encoder: Encoder;
10
+
11
+ bodyLengthChecker: BodyLengthCalculator;
12
+
13
+ getAwsChunkedEncodingStream: GetAwsChunkedEncodingStream;
14
+
15
+ md5: HashConstructor;
16
+
17
+ sha1: HashConstructor;
18
+
19
+ sha256: HashConstructor;
20
+
21
+ streamHasher: StreamHasher<any>;
22
+ }
@@ -1,13 +1,12 @@
1
-
2
- export declare enum ChecksumAlgorithm {
3
- MD5 = "MD5",
4
- CRC32 = "CRC32",
5
- CRC32C = "CRC32C",
6
- SHA1 = "SHA1",
7
- SHA256 = "SHA256"
8
- }
9
-
10
- export declare enum ChecksumLocation {
11
- HEADER = "header",
12
- TRAILER = "trailer"
13
- }
1
+ export declare enum ChecksumAlgorithm {
2
+ MD5 = "MD5",
3
+ CRC32 = "CRC32",
4
+ CRC32C = "CRC32C",
5
+ SHA1 = "SHA1",
6
+ SHA256 = "SHA256",
7
+ }
8
+
9
+ export declare enum ChecksumLocation {
10
+ HEADER = "header",
11
+ TRAILER = "trailer",
12
+ }
@@ -1,4 +1,7 @@
1
- import { BuildMiddleware } from "@aws-sdk/types";
2
- import { PreviouslyResolved } from "./configuration";
3
- import { FlexibleChecksumsMiddlewareConfig } from "./getFlexibleChecksumsPlugin";
4
- export declare const flexibleChecksumsMiddleware: (config: PreviouslyResolved, middlewareConfig: FlexibleChecksumsMiddlewareConfig) => BuildMiddleware<any, any>;
1
+ import { BuildMiddleware } from "@aws-sdk/types";
2
+ import { PreviouslyResolved } from "./configuration";
3
+ import { FlexibleChecksumsMiddlewareConfig } from "./getFlexibleChecksumsPlugin";
4
+ export declare const flexibleChecksumsMiddleware: (
5
+ config: PreviouslyResolved,
6
+ middlewareConfig: FlexibleChecksumsMiddlewareConfig
7
+ ) => BuildMiddleware<any, any>;
@@ -1,7 +1,10 @@
1
- import { Encoder, HashConstructor, StreamHasher } from "@aws-sdk/types";
2
- export interface GetChecksumDigestOptions {
3
- streamHasher: StreamHasher<any>;
4
- checksumAlgorithmFn: HashConstructor;
5
- base64Encoder: Encoder;
6
- }
7
- export declare const getChecksum: (body: unknown, { streamHasher, checksumAlgorithmFn, base64Encoder }: GetChecksumDigestOptions) => Promise<string>;
1
+ import { Encoder, HashConstructor, StreamHasher } from "@aws-sdk/types";
2
+ export interface GetChecksumDigestOptions {
3
+ streamHasher: StreamHasher<any>;
4
+ checksumAlgorithmFn: HashConstructor;
5
+ base64Encoder: Encoder;
6
+ }
7
+ export declare const getChecksum: (
8
+ body: unknown,
9
+ { streamHasher, checksumAlgorithmFn, base64Encoder }: GetChecksumDigestOptions
10
+ ) => Promise<string>;
@@ -1,9 +1,14 @@
1
- import { ChecksumAlgorithm } from "./constants";
2
- export interface GetChecksumAlgorithmForRequestOptions {
3
-
4
- requestChecksumRequired: boolean;
5
-
6
- requestAlgorithmMember?: string;
7
- }
8
-
9
- export declare const getChecksumAlgorithmForRequest: (input: any, { requestChecksumRequired, requestAlgorithmMember }: GetChecksumAlgorithmForRequestOptions) => ChecksumAlgorithm | undefined;
1
+ import { ChecksumAlgorithm } from "./constants";
2
+ export interface GetChecksumAlgorithmForRequestOptions {
3
+ requestChecksumRequired: boolean;
4
+
5
+ requestAlgorithmMember?: string;
6
+ }
7
+
8
+ export declare const getChecksumAlgorithmForRequest: (
9
+ input: any,
10
+ {
11
+ requestChecksumRequired,
12
+ requestAlgorithmMember,
13
+ }: GetChecksumAlgorithmForRequestOptions
14
+ ) => ChecksumAlgorithm | undefined;
@@ -1,3 +1,5 @@
1
- import { ChecksumAlgorithm } from "./constants";
2
-
3
- export declare const getChecksumAlgorithmListForResponse: (responseAlgorithms?: string[]) => ChecksumAlgorithm[];
1
+ import { ChecksumAlgorithm } from "./constants";
2
+
3
+ export declare const getChecksumAlgorithmListForResponse: (
4
+ responseAlgorithms?: string[]
5
+ ) => ChecksumAlgorithm[];
@@ -1,3 +1,5 @@
1
- import { ChecksumAlgorithm } from "./constants";
2
-
3
- export declare const getChecksumLocationName: (algorithm: ChecksumAlgorithm) => string;
1
+ import { ChecksumAlgorithm } from "./constants";
2
+
3
+ export declare const getChecksumLocationName: (
4
+ algorithm: ChecksumAlgorithm
5
+ ) => string;
@@ -1,16 +1,18 @@
1
- import { BuildHandlerOptions, Pluggable } from "@aws-sdk/types";
2
- import { PreviouslyResolved } from "./configuration";
3
- export declare const flexibleChecksumsMiddlewareOptions: BuildHandlerOptions;
4
- export interface FlexibleChecksumsMiddlewareConfig {
5
-
6
- input: Object;
7
-
8
- requestChecksumRequired: boolean;
9
-
10
- requestAlgorithmMember?: string;
11
-
12
- requestValidationModeMember?: string;
13
-
14
- responseAlgorithms?: string[];
15
- }
16
- export declare const getFlexibleChecksumsPlugin: (config: PreviouslyResolved, middlewareConfig: FlexibleChecksumsMiddlewareConfig) => Pluggable<any, any>;
1
+ import { BuildHandlerOptions, Pluggable } from "@aws-sdk/types";
2
+ import { PreviouslyResolved } from "./configuration";
3
+ export declare const flexibleChecksumsMiddlewareOptions: BuildHandlerOptions;
4
+ export interface FlexibleChecksumsMiddlewareConfig {
5
+ input: Object;
6
+
7
+ requestChecksumRequired: boolean;
8
+
9
+ requestAlgorithmMember?: string;
10
+
11
+ requestValidationModeMember?: string;
12
+
13
+ responseAlgorithms?: string[];
14
+ }
15
+ export declare const getFlexibleChecksumsPlugin: (
16
+ config: PreviouslyResolved,
17
+ middlewareConfig: FlexibleChecksumsMiddlewareConfig
18
+ ) => Pluggable<any, any>;
@@ -1,3 +1,3 @@
1
- import { HeaderBag } from "@aws-sdk/types";
2
-
3
- export declare const hasHeader: (header: string, headers: HeaderBag) => boolean;
1
+ import { HeaderBag } from "@aws-sdk/types";
2
+
3
+ export declare const hasHeader: (header: string, headers: HeaderBag) => boolean;
@@ -1,3 +1,3 @@
1
- export * from "./constants";
2
- export * from "./flexibleChecksumsMiddleware";
3
- export * from "./getFlexibleChecksumsPlugin";
1
+ export * from "./constants";
2
+ export * from "./flexibleChecksumsMiddleware";
3
+ export * from "./getFlexibleChecksumsPlugin";
@@ -1,2 +1 @@
1
-
2
- export declare const isStreaming: (body: unknown) => boolean;
1
+ export declare const isStreaming: (body: unknown) => boolean;
@@ -1,5 +1,8 @@
1
- import { HashConstructor } from "@aws-sdk/types";
2
- import { PreviouslyResolved } from "./configuration";
3
- import { ChecksumAlgorithm } from "./constants";
4
-
5
- export declare const selectChecksumAlgorithmFunction: (checksumAlgorithm: ChecksumAlgorithm, config: PreviouslyResolved) => HashConstructor;
1
+ import { HashConstructor } from "@aws-sdk/types";
2
+ import { PreviouslyResolved } from "./configuration";
3
+ import { ChecksumAlgorithm } from "./constants";
4
+
5
+ export declare const selectChecksumAlgorithmFunction: (
6
+ checksumAlgorithm: ChecksumAlgorithm,
7
+ config: PreviouslyResolved
8
+ ) => HashConstructor;
@@ -1,3 +1,6 @@
1
- import { HashConstructor } from "@aws-sdk/types";
2
-
3
- export declare const stringHasher: (checksumAlgorithmFn: HashConstructor, body: any) => Promise<Uint8Array>;
1
+ import { HashConstructor } from "@aws-sdk/types";
2
+
3
+ export declare const stringHasher: (
4
+ checksumAlgorithmFn: HashConstructor,
5
+ body: any
6
+ ) => Promise<Uint8Array>;
@@ -1,5 +1,5 @@
1
- import { ChecksumAlgorithm } from "./constants";
2
-
3
- export declare const CLIENT_SUPPORTED_ALGORITHMS: ChecksumAlgorithm[];
4
-
5
- export declare const PRIORITY_ORDER_ALGORITHMS: ChecksumAlgorithm[];
1
+ import { ChecksumAlgorithm } from "./constants";
2
+
3
+ export declare const CLIENT_SUPPORTED_ALGORITHMS: ChecksumAlgorithm[];
4
+
5
+ export declare const PRIORITY_ORDER_ALGORITHMS: ChecksumAlgorithm[];
@@ -1,8 +1,11 @@
1
- import { HttpResponse } from "@aws-sdk/protocol-http";
2
- import { PreviouslyResolved } from "./configuration";
3
- export interface ValidateChecksumFromResponseOptions {
4
- config: PreviouslyResolved;
5
-
6
- responseAlgorithms?: string[];
7
- }
8
- export declare const validateChecksumFromResponse: (response: HttpResponse, { config, responseAlgorithms }: ValidateChecksumFromResponseOptions) => Promise<void>;
1
+ import { HttpResponse } from "@aws-sdk/protocol-http";
2
+ import { PreviouslyResolved } from "./configuration";
3
+ export interface ValidateChecksumFromResponseOptions {
4
+ config: PreviouslyResolved;
5
+
6
+ responseAlgorithms?: string[];
7
+ }
8
+ export declare const validateChecksumFromResponse: (
9
+ response: HttpResponse,
10
+ { config, responseAlgorithms }: ValidateChecksumFromResponseOptions
11
+ ) => Promise<void>;
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-flexible-checksums",
3
- "version": "3.162.0",
3
+ "version": "3.170.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",
7
7
  "build:es": "tsc -p tsconfig.es.json",
8
+ "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
8
9
  "build:types": "tsc -p tsconfig.types.json",
9
10
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
10
11
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
@@ -21,14 +22,14 @@
21
22
  "dependencies": {
22
23
  "@aws-crypto/crc32": "2.0.0",
23
24
  "@aws-crypto/crc32c": "2.0.0",
24
- "@aws-sdk/is-array-buffer": "3.55.0",
25
- "@aws-sdk/protocol-http": "3.162.0",
26
- "@aws-sdk/types": "3.162.0",
25
+ "@aws-sdk/is-array-buffer": "3.170.0",
26
+ "@aws-sdk/protocol-http": "3.170.0",
27
+ "@aws-sdk/types": "3.170.0",
27
28
  "tslib": "^2.3.1"
28
29
  },
29
30
  "devDependencies": {
30
31
  "concurrently": "7.0.0",
31
- "downlevel-dts": "0.7.0",
32
+ "downlevel-dts": "0.10.1",
32
33
  "rimraf": "3.0.2",
33
34
  "typescript": "~4.6.2"
34
35
  },