mirror of
https://github.com/sern-handler/handler
synced 2026-06-06 01:16:55 +00:00
feat: SernEmitter now captures promise rejections
This commit is contained in:
@@ -7,6 +7,10 @@ import type { Module } from '../../types/module';
|
||||
* @since 1.0.0
|
||||
*/
|
||||
export class SernEmitter extends EventEmitter {
|
||||
|
||||
constructor() {
|
||||
super({ captureRejections: true })
|
||||
}
|
||||
/**
|
||||
* Listening to sern events with on. This event stays on until a crash or a normal exit
|
||||
* @param eventName
|
||||
|
||||
Reference in New Issue
Block a user