@qccareerschool/winston-nodemailer 3.0.1 → 4.0.1
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/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.spec.js +0 -1
- package/package.json +13 -12
- package/src/index.ts +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export interface INodemailerOptions extends Transport.TransportStreamOptions {
|
|
|
10
10
|
port: number;
|
|
11
11
|
secure: boolean;
|
|
12
12
|
tags?: string[];
|
|
13
|
-
to: string | Address |
|
|
13
|
+
to: string | Address | (string | Address)[];
|
|
14
14
|
filter?: (obj: {
|
|
15
15
|
level: string;
|
|
16
16
|
message: any;
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
6
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
|
-
}
|
|
8
|
+
};
|
|
9
9
|
return function (d, b) {
|
|
10
10
|
extendStatics(d, b);
|
|
11
11
|
function __() { this.constructor = d; }
|
package/dist/index.spec.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qccareerschool/winston-nodemailer",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "An email transport for winston v3 using nodemailer written in typescript.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -10,23 +10,24 @@
|
|
|
10
10
|
"author": "Dave Welsh",
|
|
11
11
|
"license": "ISC",
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@types/chai": "^4.
|
|
13
|
+
"@types/chai": "^4.2.10",
|
|
14
14
|
"@types/dotenv": "^4.0.3",
|
|
15
15
|
"@types/mocha": "^2.2.48",
|
|
16
|
-
"chai": "^4.
|
|
17
|
-
"dotenv": "^6.
|
|
16
|
+
"chai": "^4.2.0",
|
|
17
|
+
"dotenv": "^6.2.0",
|
|
18
18
|
"mocha": "^5.2.0",
|
|
19
|
-
"tslint": "^
|
|
20
|
-
"typescript": "^
|
|
21
|
-
"winston": "^3.
|
|
19
|
+
"tslint": "^6.0.0",
|
|
20
|
+
"typescript": "^3.8.3",
|
|
21
|
+
"winston": "^3.2.1"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@types/node": "^9.
|
|
25
|
-
"@types/nodemailer": "^4.6.
|
|
26
|
-
"
|
|
27
|
-
"
|
|
24
|
+
"@types/node": "^13.9.0",
|
|
25
|
+
"@types/nodemailer": "^4.6.8",
|
|
26
|
+
"@types/winston": "^2.4.4",
|
|
27
|
+
"nodemailer": "^6.4.4",
|
|
28
|
+
"winston-transport": "^4.3.0"
|
|
28
29
|
},
|
|
29
30
|
"peerDependencies": {
|
|
30
|
-
"winston": "^3.
|
|
31
|
+
"winston": "^3.2.1"
|
|
31
32
|
}
|
|
32
33
|
}
|
package/src/index.ts
CHANGED
|
@@ -13,14 +13,14 @@ export interface INodemailerOptions extends Transport.TransportStreamOptions {
|
|
|
13
13
|
port: number;
|
|
14
14
|
secure: boolean;
|
|
15
15
|
tags?: string[];
|
|
16
|
-
to: string | Address |
|
|
16
|
+
to: string | Address | (string | Address)[];
|
|
17
17
|
filter?: (obj: { level: string; message: any; meta: any }) => boolean;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export class NodemailerTransport extends Transport {
|
|
21
21
|
|
|
22
22
|
private from?: string | Address;
|
|
23
|
-
private to?: string | Address |
|
|
23
|
+
private to?: string | Address | (string | Address)[];
|
|
24
24
|
|
|
25
25
|
private tags?: string;
|
|
26
26
|
private filter?: (obj: { level: string; message: any; meta: any }) => boolean;
|