Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
bugsnag-angular
Advanced tools
A bugsnag-js plugin for Angular.
This package enables you to integrate Bugsnag's error reporting with an Angular (v2+) application at a detailed level. It provides an implementation of the @angular/core
ErrorHandler
which you can use to capture and report unhandled errors in your app.
Reported errors will contain useful debugging info from Angular's internals, such as the component and context.
npm i --save bugsnag-js bugsnag-angular
# or
yarn add bugsnag-js bugsnag-angular
In your the root of your angular app, typically app.module.ts
:
// Import bugsnag-js and bugsnag-angular
import BugsnagErrorHandler from 'bugsnag-angular'
import bugsnag from 'bugsnag-js'
// configure Bugsnag ASAP, before any other imports
const bugsnagClient = bugsnag('API_KEY')
// create a factory which will return the bugsnag error handler
export function errorHandlerFactory() {
return new BugsnagErrorHandler(bugsnagClient)
}
import { ErrorHandler, NgModule } from '@angular/core'
// ... other imports omitted for brevity
@NgModule({
/* Pass the BugsnagErrorHandler class along to the providers for your module */
providers: [ { provide: ErrorHandler, useFactory: errorHandlerFactory } ]
/* other properties passed to the decorator omitted for brevity */
})
See the example for more info.
The Bugsnag JS library and official plugins are free software released under the MIT License. See LICENSE.txt for details.
2.0.1 (30-04-2018)
ngc
version 4 to compile the built assets. The v5 compiler output was not backwards-compatible with v4 apps. v4 compiler assets are compatible with v4 and v5 apps.FAQs
Angular integration for bugsnag-js
The npm package bugsnag-angular receives a total of 84 weekly downloads. As such, bugsnag-angular popularity was classified as not popular.
We found that bugsnag-angular demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.