Comparing version 5.2.1 to 5.2.2
{ | ||
"name": "hasha", | ||
"version": "5.2.1", | ||
"version": "5.2.2", | ||
"description": "Hashing made simple. Get the hash of a buffer/string/stream/file.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -15,3 +15,3 @@ 'use strict'; | ||
.on('finish', () => { | ||
const {buffer} = hasher.read(); | ||
const {buffer} = new Uint8Array(hasher.read()); | ||
resolve({value: buffer, transferList: [buffer]}); | ||
@@ -31,4 +31,4 @@ }); | ||
const hash = hasher.digest().buffer; | ||
return {value: hash, transferList: [hash]}; | ||
const {buffer} = new Uint8Array(hasher.digest()); | ||
return {value: buffer, transferList: [buffer]}; | ||
} | ||
@@ -35,0 +35,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
16011