feat: SernEmitter now captures promise rejections

This commit is contained in:
Jacob Nguyen
2023-05-06 23:23:24 -05:00
parent 4ff2f39fcf
commit 815cbf19eb

View File

@@ -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