Skip to main content

Class: NotificationWatcher

Defined in: watchers/notification.watcher.ts:28

NotificationWatcher tracks notification sending across multiple channels (email, sms, push, socket, webhook) while masking sensitive recipient information.

Implements​

  • OnModuleInit
  • OnModuleDestroy

Constructors​

Constructor​

new NotificationWatcher(collector, nestlensConfig, notificationService?): NotificationWatcher

Defined in: watchers/notification.watcher.ts:33

Parameters​

collector​

CollectorService

nestlensConfig​

NestLensConfig

notificationService?​

unknown

Returns​

NotificationWatcher

Methods​

onModuleDestroy()​

onModuleDestroy(): void

Defined in: watchers/notification.watcher.ts:111

Puts back what it replaced.

The wrappers live on an object the application owns and keeps, so closing the module has to give it back. Otherwise the host goes on calling through a watcher whose collector is gone — and where a process builds the module more than once against the same object, as tests and nest start --hmr do, each round wraps the last: one call, one entry per layer.

Returns​

void

Implementation of​

OnModuleDestroy.onModuleDestroy


onModuleInit()​

onModuleInit(): void

Defined in: watchers/notification.watcher.ts:45

Returns​

void

Implementation of​

OnModuleInit.onModuleInit