@aws-sdk/hash-stream-node
Advanced tools
Comparing version 3.226.0 to 3.254.0
"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", |
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
19883
176
3
+ Added@aws-sdk/util-utf8@3.254.0
+ Added@aws-sdk/is-array-buffer@3.201.0(transitive)
+ Added@aws-sdk/types@3.254.0(transitive)
+ Added@aws-sdk/util-buffer-from@3.208.0(transitive)
+ Added@aws-sdk/util-utf8@3.254.0(transitive)
- Removed@aws-sdk/types@3.226.0(transitive)
Updated@aws-sdk/types@3.254.0