@aws-sdk/sha256-tree-hash
Advanced tools
Comparing version 3.226.0 to 3.254.0
@@ -76,3 +76,7 @@ "use strict"; | ||
} | ||
reset() { | ||
this.buffer = undefined; | ||
this.collectedHashDigests = []; | ||
} | ||
} | ||
exports.TreeHash = TreeHash; |
@@ -73,2 +73,6 @@ const MiB = 1048576; | ||
} | ||
reset() { | ||
this.buffer = undefined; | ||
this.collectedHashDigests = []; | ||
} | ||
} |
@@ -1,6 +0,6 @@ | ||
import { Decoder, Hash, HashConstructor, SourceData } from "@aws-sdk/types"; | ||
import { Checksum, ChecksumConstructor, Decoder, HashConstructor, SourceData } from "@aws-sdk/types"; | ||
/** | ||
* A Hash that will calculate a Sha256 tree hash. | ||
*/ | ||
export declare class TreeHash implements Hash { | ||
export declare class TreeHash implements Checksum { | ||
private readonly Sha256; | ||
@@ -14,3 +14,3 @@ private readonly fromUtf8; | ||
*/ | ||
constructor(Sha256: HashConstructor, fromUtf8: Decoder); | ||
constructor(Sha256: ChecksumConstructor | HashConstructor, fromUtf8: Decoder); | ||
/** | ||
@@ -25,3 +25,3 @@ * Generates Sha256 hashes from 1 MiB chunks of the | ||
* Updates the tree hash with byte data. | ||
* @param chunk Byte data to apply to the tree hash. | ||
* @param data Byte data to apply to the tree hash. | ||
*/ | ||
@@ -38,2 +38,3 @@ update(data: SourceData): void; | ||
private convertToBuffer; | ||
reset(): void; | ||
} |
@@ -1,3 +0,9 @@ | ||
import { Decoder, Hash, HashConstructor, SourceData } from "@aws-sdk/types"; | ||
export declare class TreeHash implements Hash { | ||
import { | ||
Checksum, | ||
ChecksumConstructor, | ||
Decoder, | ||
HashConstructor, | ||
SourceData, | ||
} from "@aws-sdk/types"; | ||
export declare class TreeHash implements Checksum { | ||
private readonly Sha256; | ||
@@ -7,3 +13,3 @@ private readonly fromUtf8; | ||
private collectedHashDigests; | ||
constructor(Sha256: HashConstructor, fromUtf8: Decoder); | ||
constructor(Sha256: ChecksumConstructor | HashConstructor, fromUtf8: Decoder); | ||
private hashBuffer; | ||
@@ -13,2 +19,3 @@ update(data: SourceData): void; | ||
private convertToBuffer; | ||
reset(): void; | ||
} |
{ | ||
"name": "@aws-sdk/sha256-tree-hash", | ||
"version": "3.226.0", | ||
"version": "3.254.0", | ||
"scripts": { | ||
@@ -23,7 +23,7 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", | ||
"dependencies": { | ||
"@aws-sdk/types": "3.226.0", | ||
"@aws-sdk/types": "3.254.0", | ||
"tslib": "^2.3.1" | ||
}, | ||
"devDependencies": { | ||
"@aws-crypto/sha256-js": "2.0.0", | ||
"@aws-crypto/sha256-js": "3.0.0", | ||
"@aws-sdk/util-hex-encoding": "3.201.0", | ||
@@ -30,0 +30,0 @@ "@aws-sdk/util-utf8-node": "3.208.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
20810
214
+ Added@aws-sdk/types@3.254.0(transitive)
- Removed@aws-sdk/types@3.226.0(transitive)
Updated@aws-sdk/types@3.254.0