Rocky_Mountain_Vending/.pnpm-store/v10/files/6f/6efe297bf8fb4b36e813c16f3032f1c4011411645b4a000b3282854cae84a25836781bb2eb7b3a46783b69d29bd396fa3f918af6e01f4d595376e081ce076a
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
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>
2026-02-12 16:22:15 -07:00

26 lines
No EOL
1,015 B
Text

import native from './native.js';
import { NodeHash } from '../node/hash-instance.js';
import { NodeHashReader } from '../node/hash-reader.js';
// A buffer we reuse for sending bigints. set_position is synchronous, so
// this just saves creating garbage.
const bigIntBuffer = Buffer.alloc(8);
const readerFactory = (r) => new NodeHashReader({
fill: target => r.fill(target),
set_position: position => {
bigIntBuffer.writeBigUInt64BE(position);
r.set_position(bigIntBuffer);
},
});
/**
* A Node.js crypto-like createHash method.
*/
export const createHash = () => new NodeHash(new native.Hasher(), readerFactory);
/**
* Construct a new Hasher for the keyed hash function.
*/
export const createKeyed = (key) => new NodeHash(new native.Hasher(key), readerFactory);
/**
* Construct a new Hasher for the key derivation function.
*/
export const createDeriveKey = (context) => new NodeHash(new native.Hasher(undefined, context), readerFactory);
//# sourceMappingURL=hash-instance.js.map