@aws-sdk/md5-js
Advanced tools
Comparing version 3.226.0 to 3.254.0
@@ -8,7 +8,3 @@ "use strict"; | ||
constructor() { | ||
this.state = Uint32Array.from(constants_1.INIT); | ||
this.buffer = new DataView(new ArrayBuffer(constants_1.BLOCK_SIZE)); | ||
this.bufferLength = 0; | ||
this.bytesHashed = 0; | ||
this.finished = false; | ||
this.reset(); | ||
} | ||
@@ -133,2 +129,9 @@ update(sourceData) { | ||
} | ||
reset() { | ||
this.state = Uint32Array.from(constants_1.INIT); | ||
this.buffer = new DataView(new ArrayBuffer(constants_1.BLOCK_SIZE)); | ||
this.bufferLength = 0; | ||
this.bytesHashed = 0; | ||
this.finished = false; | ||
} | ||
} | ||
@@ -135,0 +138,0 @@ exports.Md5 = Md5; |
@@ -5,7 +5,3 @@ import { fromUtf8 } from "@aws-sdk/util-utf8-node"; | ||
constructor() { | ||
this.state = Uint32Array.from(INIT); | ||
this.buffer = new DataView(new ArrayBuffer(BLOCK_SIZE)); | ||
this.bufferLength = 0; | ||
this.bytesHashed = 0; | ||
this.finished = false; | ||
this.reset(); | ||
} | ||
@@ -130,2 +126,9 @@ update(sourceData) { | ||
} | ||
reset() { | ||
this.state = Uint32Array.from(INIT); | ||
this.buffer = new DataView(new ArrayBuffer(BLOCK_SIZE)); | ||
this.bufferLength = 0; | ||
this.bytesHashed = 0; | ||
this.finished = false; | ||
} | ||
} | ||
@@ -132,0 +135,0 @@ function cmn(q, a, b, x, s, t) { |
@@ -1,3 +0,3 @@ | ||
import { Hash, SourceData } from "@aws-sdk/types"; | ||
export declare class Md5 implements Hash { | ||
import { Checksum, SourceData } from "@aws-sdk/types"; | ||
export declare class Md5 implements Checksum { | ||
private state; | ||
@@ -8,5 +8,7 @@ private buffer; | ||
private finished; | ||
constructor(); | ||
update(sourceData: SourceData): void; | ||
digest(): Promise<Uint8Array>; | ||
private hashBuffer; | ||
reset(): void; | ||
} |
@@ -1,3 +0,3 @@ | ||
import { Hash, SourceData } from "@aws-sdk/types"; | ||
export declare class Md5 implements Hash { | ||
import { Checksum, SourceData } from "@aws-sdk/types"; | ||
export declare class Md5 implements Checksum { | ||
private state; | ||
@@ -8,5 +8,7 @@ private buffer; | ||
private finished; | ||
constructor(); | ||
update(sourceData: SourceData): void; | ||
digest(): Promise<Uint8Array>; | ||
private hashBuffer; | ||
reset(): void; | ||
} |
{ | ||
"name": "@aws-sdk/md5-js", | ||
"version": "3.226.0", | ||
"version": "3.254.0", | ||
"scripts": { | ||
@@ -35,3 +35,3 @@ "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-browser": "3.188.0", | ||
@@ -38,0 +38,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
31210
380
+ Added@aws-sdk/types@3.254.0(transitive)
- Removed@aws-sdk/types@3.226.0(transitive)
Updated@aws-sdk/types@3.254.0