
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
nest-bugsnag
Advanced tools
A Nest module wrapper for bugsnag logger.
A Nest module wrapper for bugsnag-js logger.
$ npm i nest-bugsnag --save
Import the BugsnagModule into the module. For example AppModule:
import { Module } from '@nestjs/common';
import { BugsnagModule } from 'nest-bugsnag';
@Module({
imports: [
BugsnagModule.forRoot({
// options
}),
],
})
export class AppModule { }
Then you can inject BugsnagService. Example:
import { Controller } from '@nestjs/common';
import { BugsnagService } from 'nest-bugsnag';
@Controller('cats')
export class CatsController {
constructor(private readonly logger: BugsnagService) { }
}
BugsnagService has instance property which wrap bugsnag client. So you can access it by calling:
this.logger.instance.notify('message');
Note that BugsnagModule is a global module, it will be available in all you feature modules.
import { Module } from '@nestjs/common';
import { BugsnagModule } from 'nest-bugsnag';
import { ConfigService } from 'nest-config';
@Module({
imports: [
BugsnagModule.forRootAsync({
useFactory: (configService: ConfigService) => ({
// options
}),
inject: [ConfigService],
}),
],
})
export class AppModule { }
The factory might be async and is able to inject dependencies through the inject option.
bugsnagJs, nestJs, logger
FAQs
A Nest module wrapper for bugsnag
We found that nest-bugsnag 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.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.