Socket
Book a DemoInstallSign in
Socket

@bugsnag/web-worker

Package Overview
Dependencies
Maintainers
8
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bugsnag/web-worker

BugSnag error reporter for JavaScript web workers and service workers

8.4.0
latest
npmnpm
Version published
Maintainers
8
Created
Source

@bugsnag/web-worker

This package contains the web worker / service worker implementation of the BugSnag library.

Features and limitations

This early release offers basic functionality for web workers and service workers, with the intent to support Chrome extension development using manifest v3. Using this library, you will be able to:

  • notify errors from within service workers and web workers, including browser extensions
  • detect and automatically notify unhandled errors from service workers and web workers, excluding Chrome browser extensions due to limitations in the Chrome Runtime API.

Getting tarted

Installation

npm i @bugsnag/web-worker

Usage

import Bugsnag from "@bugsnag/web-worker"

Bugsnag.start({
    apiKey: YOUR_API_KEY
})

function myFunction() {
    try {
        // something that will throw an error
    } catch (err) {
        Bugsnag.notify(err)
    }
}

For further information check out the documentation.

License

This package is free software released under the MIT License. See LICENSE.txt for details.

Keywords

worker

FAQs

Package last updated on 18 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.