@haskytech/bug-reporter (0.6.0)

Published 2026-07-30 01:25:30 +00:00 by john in haskytech/bug-reporter

Installation

@haskytech:registry=
npm install @haskytech/bug-reporter@0.6.0
"@haskytech/bug-reporter": "0.6.0"

About this package

@haskytech/bug-reporter

Universal bug reporting SDK — captures browser evidence, synthesizes reports, submits to HaskyOS.

Install

npm install @haskytech/bug-reporter

Usage

import { initBugReporter } from '@haskytech/bug-reporter'

initBugReporter({
  endpoint: 'https://api.example.com/bugs',
  workstream: 'my-app',
})

Capture channels

Channel Module Covers
Errors ErrorBuffer window.onerror, unhandledrejection
Console ConsoleBuffer console.log / warn / info / error
Network NetworkInterceptor fetch and XMLHttpRequest (axios and any other XHR-based client)

NetworkInterceptor patches both network transports, so an axios-based app needs no application-level error-logging workaround. Both transports feed the same getFailures() and getRequestLog() buffers.

Build

npm run build

Outputs ESM (dist/index.js) and CJS (dist/index.cjs) bundles with type declarations (dist/index.d.ts).

License

MIT

Dependencies

Dependencies

ID Version
html-to-image ^1.11.13

Development dependencies

ID Version
@eslint/js ^9.0.0
eslint ^9.0.0
jsdom ^30.0.0
typescript ~5.8.0
typescript-eslint ^8.0.0
vite ^7.0.0
vite-plugin-dts ^4.0.0
vitest ^3.0.0
Details
npm
2026-07-30 01:25:30 +00:00
299
MIT
latest
29 KiB
Assets (1)
Versions (6) View all
0.6.0 2026-07-30
0.5.0 2026-06-17
0.4.0 2026-06-16
0.3.0 2026-06-15
0.2.0 2026-06-15