@aws-sdk/sha256-tree-hash
Advanced tools
Comparing version 3.36.0 to 3.37.0
@@ -6,2 +6,10 @@ # Change Log | ||
# [3.37.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.1...v3.37.0) (2021-10-15) | ||
**Note:** Version bump only for package @aws-sdk/sha256-tree-hash | ||
# [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08) | ||
@@ -8,0 +16,0 @@ |
import { Decoder, Hash, HashConstructor, SourceData } from "@aws-sdk/types"; | ||
/** | ||
* A Hash that will calculate a Sha256 tree hash. | ||
*/ | ||
export declare class TreeHash implements Hash { | ||
@@ -10,28 +8,12 @@ private readonly Sha256; | ||
private collectedHashDigests; | ||
/** | ||
* Initializes a TreeHash. | ||
* @param Sha256 A Sha256 hash constructor. | ||
*/ | ||
constructor(Sha256: HashConstructor, fromUtf8: Decoder); | ||
/** | ||
* Generates Sha256 hashes from 1 MiB chunks of the | ||
* internal buffer. | ||
* Will set the internal buffer to any bytes remaining | ||
* that is less than 1 MiB. | ||
*/ | ||
private hashBuffer; | ||
/** | ||
* Updates the tree hash with byte data. | ||
* @param chunk Byte data to apply to the tree hash. | ||
*/ | ||
update(data: SourceData): void; | ||
/** | ||
* Calculates the digest for the tree hash. | ||
*/ | ||
digest(): Promise<Uint8Array>; | ||
/** | ||
* Converts source data into a Uint8Array. | ||
* @param data Data to convert to a Uint8Array. | ||
*/ | ||
private convertToBuffer; | ||
} |
{ | ||
"name": "@aws-sdk/sha256-tree-hash", | ||
"version": "3.36.0", | ||
"version": "3.37.0", | ||
"scripts": { | ||
@@ -21,3 +21,3 @@ "build": "yarn build:cjs && yarn build:es && yarn build:types", | ||
"dependencies": { | ||
"@aws-sdk/types": "3.36.0", | ||
"@aws-sdk/types": "3.37.0", | ||
"tslib": "^2.3.0" | ||
@@ -27,4 +27,4 @@ }, | ||
"@aws-crypto/sha256-js": "^1.0.0", | ||
"@aws-sdk/util-hex-encoding": "3.36.0", | ||
"@aws-sdk/util-utf8-node": "3.36.0", | ||
"@aws-sdk/util-hex-encoding": "3.37.0", | ||
"@aws-sdk/util-utf8-node": "3.37.0", | ||
"@types/jest": "^26.0.4", | ||
@@ -31,0 +31,0 @@ "jest": "^26.1.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50728
219
+ Added@aws-sdk/types@3.37.0(transitive)
- Removed@aws-sdk/types@3.36.0(transitive)
Updated@aws-sdk/types@3.37.0