初始化环境文件
This commit is contained in:
13
node_modules/@smithy/hash-blob-browser/dist-cjs/index.js
generated
vendored
Normal file
13
node_modules/@smithy/hash-blob-browser/dist-cjs/index.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
'use strict';
|
||||
|
||||
var chunkedBlobReader = require('@smithy/chunked-blob-reader');
|
||||
|
||||
const blobHasher = async function blobHasher(hashCtor, blob) {
|
||||
const hash = new hashCtor();
|
||||
await chunkedBlobReader.blobReader(blob, (chunk) => {
|
||||
hash.update(chunk);
|
||||
});
|
||||
return hash.digest();
|
||||
};
|
||||
|
||||
exports.blobHasher = blobHasher;
|
||||
Reference in New Issue
Block a user