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>
11 lines
443 B
Text
11 lines
443 B
Text
import { DatabaseError } from './messages'
|
|
import { serialize } from './serializer'
|
|
import { Parser, MessageCallback } from './parser'
|
|
|
|
export function parse(stream: NodeJS.ReadableStream, callback: MessageCallback): Promise<void> {
|
|
const parser = new Parser()
|
|
stream.on('data', (buffer: Buffer) => parser.parse(buffer, callback))
|
|
return new Promise((resolve) => stream.on('end', () => resolve()))
|
|
}
|
|
|
|
export { serialize, DatabaseError }
|