Initial
This commit is contained in:
8
resources/app/node_modules/@smithy/hash-blob-browser/dist-es/index.js
generated
vendored
Normal file
8
resources/app/node_modules/@smithy/hash-blob-browser/dist-es/index.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import { blobReader } from "@smithy/chunked-blob-reader";
|
||||
export const blobHasher = async function blobHasher(hashCtor, blob) {
|
||||
const hash = new hashCtor();
|
||||
await blobReader(blob, (chunk) => {
|
||||
hash.update(chunk);
|
||||
});
|
||||
return hash.digest();
|
||||
};
|
||||
Reference in New Issue
Block a user