@haskytech/bug-reporter (0.6.0)
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
Assets (1)
Versions (6)
View all
bug-reporter-0.6.0.tgz
29 KiB