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
5
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.226.0 to 3.254.0

4

dist-cjs/index.js

@@ -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 = [];
}
}

9

dist-types/index.d.ts

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

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