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

@aws-sdk/hash-stream-node

Package Overview
Dependencies
Maintainers
5
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/hash-stream-node - npm Package Compare versions

Comparing version 3.226.0 to 3.254.0

3

dist-cjs/HashCalculator.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.HashCalculator = void 0;
const util_utf8_1 = require("@aws-sdk/util-utf8");
const stream_1 = require("stream");

@@ -12,3 +13,3 @@ class HashCalculator extends stream_1.Writable {

try {
this.hash.update(chunk);
this.hash.update((0, util_utf8_1.toUint8Array)(chunk));
}

@@ -15,0 +16,0 @@ catch (err) {

@@ -0,1 +1,2 @@

import { toUint8Array } from "@aws-sdk/util-utf8";
import { Writable } from "stream";

@@ -9,3 +10,3 @@ export class HashCalculator extends Writable {

try {
this.hash.update(chunk);
this.hash.update(toUint8Array(chunk));
}

@@ -12,0 +13,0 @@ catch (err) {

/// <reference types="node" />
import { Hash } from "@aws-sdk/types";
import { Checksum, Hash } from "@aws-sdk/types";
import { Writable, WritableOptions } from "stream";
export declare class HashCalculator extends Writable {
readonly hash: Hash;
constructor(hash: Hash, options?: WritableOptions);
readonly hash: Checksum | Hash;
constructor(hash: Checksum | Hash, options?: WritableOptions);
_write(chunk: Buffer, encoding: string, callback: (err?: Error) => void): void;
}

@@ -1,6 +0,6 @@

import { Hash } from "@aws-sdk/types";
import { Checksum, Hash } from "@aws-sdk/types";
import { Writable, WritableOptions } from "stream";
export declare class HashCalculator extends Writable {
readonly hash: Hash;
constructor(hash: Hash, options?: WritableOptions);
readonly hash: Checksum | Hash;
constructor(hash: Checksum | Hash, options?: WritableOptions);
_write(

@@ -7,0 +7,0 @@ chunk: Buffer,

{
"name": "@aws-sdk/hash-stream-node",
"version": "3.226.0",
"version": "3.254.0",
"scripts": {

@@ -23,7 +23,8 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",

"dependencies": {
"@aws-sdk/types": "3.226.0",
"@aws-sdk/types": "3.254.0",
"@aws-sdk/util-utf8": "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 +31,0 @@ "@tsconfig/recommended": "1.0.1",

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