test-smtp-server 0.9.8 → 0.9.11
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.
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import { SMTPServerEnvelope } from "smtp-server";
|
|
3
2
|
import { ParsedMail } from "mailparser";
|
|
4
3
|
/**
|
|
@@ -43,7 +42,7 @@ export declare class testSmtpServer {
|
|
|
43
42
|
private localhostOnly;
|
|
44
43
|
private port;
|
|
45
44
|
private server;
|
|
46
|
-
constructor(options?: testSmtpServerOptions
|
|
45
|
+
constructor(options?: testSmtpServerOptions);
|
|
47
46
|
/**
|
|
48
47
|
* Clear the set of emails.
|
|
49
48
|
*
|
|
@@ -29,7 +29,7 @@ class eMail {
|
|
|
29
29
|
const options = {
|
|
30
30
|
skipHtmlToText: true,
|
|
31
31
|
skipTextLinks: true,
|
|
32
|
-
skipTextToHtml: true
|
|
32
|
+
skipTextToHtml: true,
|
|
33
33
|
};
|
|
34
34
|
return (0, mailparser_1.simpleParser)(stream, options);
|
|
35
35
|
}
|
|
@@ -46,7 +46,6 @@ exports.eMail = eMail;
|
|
|
46
46
|
*/
|
|
47
47
|
class testSmtpServer {
|
|
48
48
|
constructor(options) {
|
|
49
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
50
49
|
this.debug = (_message, ..._optionalParams) => { };
|
|
51
50
|
this.emails = [];
|
|
52
51
|
this.isDebugging = false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "test-smtp-server",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.11",
|
|
4
4
|
"description": "The test-smtp-server package allows internal testing of projects needing an SMTP server.",
|
|
5
5
|
"main": "./build/lib/test-smtp-server.js",
|
|
6
6
|
"types": "./build/lib/test-smtp-server.d.ts",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
],
|
|
15
15
|
"scripts": {
|
|
16
16
|
"build": "tsc",
|
|
17
|
-
"lint": "eslint
|
|
17
|
+
"lint": "eslint \"{lib,test}/**/*.{ts,tsx,mjs,js}\"",
|
|
18
18
|
"test": "npm run test:ts && npm run test:js",
|
|
19
19
|
"test:ts": "node build/test/index.js",
|
|
20
20
|
"test:js": "node test/jstest.mjs",
|
|
@@ -46,23 +46,25 @@
|
|
|
46
46
|
"url": "git+https://github.com/webstech/test-smtp-server"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@
|
|
50
|
-
"@types/
|
|
51
|
-
"@
|
|
52
|
-
"@
|
|
53
|
-
"commander": "^
|
|
54
|
-
"eslint": "^
|
|
55
|
-
"eslint-
|
|
56
|
-
"eslint-plugin-
|
|
57
|
-
"nodemailer": "^
|
|
58
|
-
"typescript": "^5.
|
|
49
|
+
"@stylistic/eslint-plugin": "^5.7.1",
|
|
50
|
+
"@types/node": "^25.2.0",
|
|
51
|
+
"@types/nodemailer": "^7.0.9",
|
|
52
|
+
"@types/smtp-server": "^3.5.12",
|
|
53
|
+
"commander": "^14.0.3",
|
|
54
|
+
"eslint": "^9.39.2",
|
|
55
|
+
"eslint-plugin-jsdoc": "^62.5.0",
|
|
56
|
+
"eslint-plugin-security": "^3.0.1",
|
|
57
|
+
"nodemailer": "^7.0.13",
|
|
58
|
+
"typescript": "^5.9.3",
|
|
59
|
+
"typescript-eslint": "8.54.0"
|
|
59
60
|
},
|
|
60
61
|
"dependencies": {
|
|
61
|
-
"@types/mailparser": "^3.4.
|
|
62
|
-
"mailparser": "^3.
|
|
63
|
-
"smtp-server": "^3.
|
|
62
|
+
"@types/mailparser": "^3.4.6",
|
|
63
|
+
"mailparser": "^3.9.3",
|
|
64
|
+
"smtp-server": "^3.18.1"
|
|
64
65
|
},
|
|
65
66
|
"engines": {
|
|
66
|
-
"node": ">=
|
|
67
|
+
"node": ">= 24.0.0",
|
|
68
|
+
"npm": "^11.6.2"
|
|
67
69
|
}
|
|
68
70
|
}
|