emailjs 4.0.0 → 4.0.2
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/email.js +2 -1
- package/package.json +10 -10
- package/smtp/connection.ts +4 -1
package/email.js
CHANGED
|
@@ -1249,7 +1249,7 @@ class SMTPConnection extends EventEmitter {
|
|
|
1249
1249
|
this.user = () => user;
|
|
1250
1250
|
this.password = () => password;
|
|
1251
1251
|
if (typeof logger === 'function') {
|
|
1252
|
-
this.log =
|
|
1252
|
+
this.log = logger;
|
|
1253
1253
|
}
|
|
1254
1254
|
}
|
|
1255
1255
|
/**
|
|
@@ -1726,6 +1726,7 @@ class SMTPConnection extends EventEmitter {
|
|
|
1726
1726
|
const failed = (err, data) => {
|
|
1727
1727
|
this.loggedin = false;
|
|
1728
1728
|
this.close(); // if auth is bad, close the connection, it won't get better by itself
|
|
1729
|
+
err.message = err.message.replace(this.password(), 'REDACTED');
|
|
1729
1730
|
caller(callback, SMTPError.create('authorization.failed', SMTPErrorStates.AUTHFAILED, err, data));
|
|
1730
1731
|
};
|
|
1731
1732
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "emailjs",
|
|
3
3
|
"description": "send text/html emails and attachments (files, streams and strings) from node.js to any smtp server",
|
|
4
|
-
"version": "4.0.
|
|
4
|
+
"version": "4.0.2",
|
|
5
5
|
"author": "eleith",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"izuzak",
|
|
@@ -21,18 +21,18 @@
|
|
|
21
21
|
"@types/mailparser": "3.4.0",
|
|
22
22
|
"@types/node": "12.12.6",
|
|
23
23
|
"@types/smtp-server": "3.5.7",
|
|
24
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
25
|
-
"@typescript-eslint/parser": "5.
|
|
24
|
+
"@typescript-eslint/eslint-plugin": "5.21.0",
|
|
25
|
+
"@typescript-eslint/parser": "5.21.0",
|
|
26
26
|
"ava": "4.2.0",
|
|
27
|
-
"eslint": "8.
|
|
27
|
+
"eslint": "8.14.0",
|
|
28
28
|
"eslint-config-prettier": "8.5.0",
|
|
29
29
|
"eslint-plugin-prettier": "4.0.0",
|
|
30
|
-
"mailparser": "3.
|
|
30
|
+
"mailparser": "3.5.0",
|
|
31
31
|
"prettier": "2.6.2",
|
|
32
|
-
"rollup": "2.70.
|
|
33
|
-
"smtp-server": "3.
|
|
34
|
-
"ts-node": "10.
|
|
35
|
-
"tslib": "2.
|
|
32
|
+
"rollup": "2.70.2",
|
|
33
|
+
"smtp-server": "3.11.0",
|
|
34
|
+
"ts-node": "10.9.1",
|
|
35
|
+
"tslib": "2.4.0",
|
|
36
36
|
"typescript": "4.3.5"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
"resolutions": {
|
|
47
|
-
"nodemailer": "6.7.
|
|
47
|
+
"nodemailer": "6.7.4"
|
|
48
48
|
},
|
|
49
49
|
"engines": {
|
|
50
50
|
"node": ">=12"
|
package/smtp/connection.ts
CHANGED
|
@@ -183,7 +183,7 @@ export class SMTPConnection extends EventEmitter {
|
|
|
183
183
|
this.password = () => password as string;
|
|
184
184
|
|
|
185
185
|
if (typeof logger === 'function') {
|
|
186
|
-
this.log =
|
|
186
|
+
this.log = logger;
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
|
|
@@ -779,6 +779,9 @@ export class SMTPConnection extends EventEmitter {
|
|
|
779
779
|
const failed = (err: Error, data: unknown) => {
|
|
780
780
|
this.loggedin = false;
|
|
781
781
|
this.close(); // if auth is bad, close the connection, it won't get better by itself
|
|
782
|
+
|
|
783
|
+
err.message = err.message.replace(this.password(), 'REDACTED');
|
|
784
|
+
|
|
782
785
|
caller(
|
|
783
786
|
callback,
|
|
784
787
|
SMTPError.create(
|