@bgord/bun 1.4.3 → 1.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -4,13 +4,15 @@ import type { MailerPort } from "./mailer.port";
|
|
|
4
4
|
|
|
5
5
|
type MailerSendOptionsType = SendMailOptions;
|
|
6
6
|
|
|
7
|
+
type Dependencies = { Logger: LoggerPort };
|
|
8
|
+
|
|
7
9
|
export class MailerNoopAdapter implements MailerPort {
|
|
8
10
|
private readonly base = { component: "infra", operation: "mailer" };
|
|
9
11
|
|
|
10
|
-
constructor(private readonly
|
|
12
|
+
constructor(private readonly deps: Dependencies) {}
|
|
11
13
|
|
|
12
14
|
async send(message: MailerSendOptionsType): Promise<unknown> {
|
|
13
|
-
return this.
|
|
15
|
+
return this.deps.Logger.info({ message: "[NOOP] Mailer adapter", metadata: message, ...this.base });
|
|
14
16
|
}
|
|
15
17
|
|
|
16
18
|
async verify() {
|