
Product
Introducing Webhook Events for Pull Request Scans
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
bugsnag-js-windowless
Advanced tools
A Bugsnag client for all JS contexts without the window
global.
This was made originally for Manifest V3 Chrome Extension background service workers, but works in all browser JS contexts.
npm i --save bugsnag-js-windowless
yarn add bugsnag-js-windowless
pnpm i bugsnag-js-windowless
import BugsnagJs from '@bugsnag/js';
import BugsnagSw from 'bugsnag-js-windowless';
const Bugsnag = typeof window === 'undefined' ? BugsnagSw : BugsnagJs;
Bugsnag.start({ apiKey: 'your-api-key' });
@bugsnag/js
(docs)These are the differences between @bugsnag/js
's and bugsnag-js-windowless
's behavior that I don't care about for my use case. I will however accept PRs to add support for them!
config.autoTrackSessions
) is not implementedconfig.collectUserIp
is not implemented and thus disabled by defaultconfig.maxEvents
is not implemented - all events are collectedconfig.trackInlineScripts
is not implemented - this isn't really relevant to the JS contexts I built this for (chrome extension service workers)To get started contributing:
# Install PNPM
npm i -g pnpm
# Install dependencies
pnpm i
# Create a .env file (and include your api key)
cp .env.template .env
edit .env
# Start the demo application
pnpm start
# Run unit tests
pnpm test
# Type check and output to `dist/` directory
pnpm build
FAQs
Bugsnag client for JS contexts without the 'window' global
We found that bugsnag-js-windowless demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
Research
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.
Product
A single platform for static analysis, secrets detection, container scanning, and CVE checks—built on trusted open source tools, ready to run out of the box.