Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
13 lines
333 B
Text
13 lines
333 B
Text
'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;
|