@qccareerschool/winston-nodemailer 4.0.2 → 4.0.3
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 +1 -1
- package/src/index.ts +6 -3
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -14,7 +14,8 @@ export interface INodemailerOptions extends Transport.TransportStreamOptions {
|
|
|
14
14
|
secure: boolean;
|
|
15
15
|
tags?: string[];
|
|
16
16
|
to: string | Address | (string | Address)[];
|
|
17
|
-
|
|
17
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
18
|
+
filter?: (info: any) => boolean;
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
export class NodemailerTransport extends Transport {
|
|
@@ -23,7 +24,8 @@ export class NodemailerTransport extends Transport {
|
|
|
23
24
|
private readonly to?: string | Address | (string | Address)[];
|
|
24
25
|
|
|
25
26
|
private readonly tags?: string;
|
|
26
|
-
|
|
27
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
28
|
+
private readonly filter?: (info: any) => boolean;
|
|
27
29
|
|
|
28
30
|
private readonly smtpTransport: nodemailer.Transporter;
|
|
29
31
|
|
|
@@ -50,7 +52,8 @@ export class NodemailerTransport extends Transport {
|
|
|
50
52
|
this.smtpTransport = nodemailer.createTransport(opts);
|
|
51
53
|
}
|
|
52
54
|
|
|
53
|
-
|
|
55
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
56
|
+
public log(info: any, next: () => void): any {
|
|
54
57
|
if (this.silent) {
|
|
55
58
|
return next();
|
|
56
59
|
}
|