Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws-sdk/sha256-tree-hash

Package Overview
Dependencies
Maintainers
7
Versions
164
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/sha256-tree-hash - npm Package Compare versions

Comparing version 3.36.0 to 3.37.0

8

CHANGELOG.md

@@ -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 @@

30

dist-types/ts3.4/index.d.ts
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;
}

8

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc