Class: MailWatcher
Defined in: watchers/mail.watcher.ts:49
Implements
OnModuleInitOnModuleDestroy
Constructors
Constructor
new MailWatcher(
collector,nestlensConfig,mailerService?):MailWatcher
Defined in: watchers/mail.watcher.ts:56
Parameters
collector
nestlensConfig
mailerService?
unknown
Returns
MailWatcher
Methods
onModuleDestroy()
onModuleDestroy():
void
Defined in: watchers/mail.watcher.ts:94
Puts sendMail back the way it was found.
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/mail.watcher.ts:68
Returns
void
Implementation of
OnModuleInit.onModuleInit
setupMailer()
setupMailer(
mailerService):void
Defined in: watchers/mail.watcher.ts:121
Setup interceptors on a mailer service. Can be called manually if you want to track a specific mailer instance.
Parameters
mailerService
unknown
Returns
void