@aws-sdk/middleware-flexible-checksums 3.891.0 → 3.893.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.
@@ -3,7 +3,7 @@ import { Checksum } from "@smithy/types";
3
3
  declare class NodeCrc32 implements Checksum {
4
4
  private checksum;
5
5
  update(data: Uint8Array): void;
6
- digest(): Promise<Uint8Array<ArrayBufferLike>>;
6
+ digest(): Promise<Uint8Array>;
7
7
  reset(): void;
8
8
  }
9
9
  export declare const getCrc32ChecksumAlgorithmFunction: () => typeof NodeCrc32 | typeof AwsCrc32;
@@ -2,4 +2,4 @@ import { ChecksumConstructor, HashConstructor } from "@smithy/types";
2
2
  /**
3
3
  * A function that, given a hash constructor and a string, calculates the hash of the string.
4
4
  */
5
- export declare const stringHasher: (checksumAlgorithmFn: ChecksumConstructor | HashConstructor, body: any) => Promise<Uint8Array<ArrayBufferLike>>;
5
+ export declare const stringHasher: (checksumAlgorithmFn: ChecksumConstructor | HashConstructor, body: any) => Promise<Uint8Array>;
@@ -3,7 +3,7 @@ import { Checksum } from "@smithy/types";
3
3
  declare class NodeCrc32 implements Checksum {
4
4
  private checksum;
5
5
  update(data: Uint8Array): void;
6
- digest(): Promise<Uint8Array<ArrayBufferLike>>;
6
+ digest(): Promise<Uint8Array>;
7
7
  reset(): void;
8
8
  }
9
9
  export declare const getCrc32ChecksumAlgorithmFunction: () =>
@@ -2,4 +2,4 @@ import { ChecksumConstructor, HashConstructor } from "@smithy/types";
2
2
  export declare const stringHasher: (
3
3
  checksumAlgorithmFn: ChecksumConstructor | HashConstructor,
4
4
  body: any
5
- ) => Promise<Uint8Array<ArrayBufferLike>>;
5
+ ) => Promise<Uint8Array>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-flexible-checksums",
3
- "version": "3.891.0",
3
+ "version": "3.893.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-flexible-checksums",
@@ -27,6 +27,7 @@
27
27
  "./dist-cjs/getCrc32ChecksumAlgorithmFunction": "./dist-cjs/getCrc32ChecksumAlgorithmFunction.browser"
28
28
  },
29
29
  "types": "./dist-types/index.d.ts",
30
+ "sideEffects": false,
30
31
  "author": {
31
32
  "name": "AWS SDK for JavaScript Team",
32
33
  "url": "https://aws.amazon.com/javascript/"
@@ -36,14 +37,14 @@
36
37
  "@aws-crypto/crc32": "5.2.0",
37
38
  "@aws-crypto/crc32c": "5.2.0",
38
39
  "@aws-crypto/util": "5.2.0",
39
- "@aws-sdk/core": "3.890.0",
40
- "@aws-sdk/types": "3.887.0",
40
+ "@aws-sdk/core": "3.893.0",
41
+ "@aws-sdk/types": "3.893.0",
41
42
  "@smithy/is-array-buffer": "^4.1.0",
42
43
  "@smithy/node-config-provider": "^4.2.2",
43
44
  "@smithy/protocol-http": "^5.2.1",
44
45
  "@smithy/types": "^4.5.0",
45
46
  "@smithy/util-middleware": "^4.1.1",
46
- "@smithy/util-stream": "^4.3.1",
47
+ "@smithy/util-stream": "^4.3.2",
47
48
  "@smithy/util-utf8": "^4.1.0",
48
49
  "tslib": "^2.6.2"
49
50
  },