nodemailer 6.9.1 → 6.9.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/CHANGELOG.md +4 -0
- package/lib/mime-node/index.js +17 -2
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
package/lib/mime-node/index.js
CHANGED
|
@@ -950,7 +950,15 @@ class MimeNode {
|
|
|
950
950
|
if (content._resolvedValue) {
|
|
951
951
|
// pass string or buffer content as a stream
|
|
952
952
|
contentStream = new PassThrough();
|
|
953
|
-
|
|
953
|
+
|
|
954
|
+
setImmediate(() => {
|
|
955
|
+
try {
|
|
956
|
+
contentStream.end(content._resolvedValue);
|
|
957
|
+
} catch (err) {
|
|
958
|
+
contentStream.emit('error', err);
|
|
959
|
+
}
|
|
960
|
+
});
|
|
961
|
+
|
|
954
962
|
return contentStream;
|
|
955
963
|
} else if (typeof content.pipe === 'function') {
|
|
956
964
|
// assume as stream
|
|
@@ -974,7 +982,14 @@ class MimeNode {
|
|
|
974
982
|
} else {
|
|
975
983
|
// pass string or buffer content as a stream
|
|
976
984
|
contentStream = new PassThrough();
|
|
977
|
-
|
|
985
|
+
|
|
986
|
+
setImmediate(() => {
|
|
987
|
+
try {
|
|
988
|
+
contentStream.end(content || '');
|
|
989
|
+
} catch (err) {
|
|
990
|
+
contentStream.emit('error', err);
|
|
991
|
+
}
|
|
992
|
+
});
|
|
978
993
|
return contentStream;
|
|
979
994
|
}
|
|
980
995
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nodemailer",
|
|
3
|
-
"version": "6.9.
|
|
3
|
+
"version": "6.9.2",
|
|
4
4
|
"description": "Easy as cake e-mail sending from your Node.js applications",
|
|
5
5
|
"main": "lib/nodemailer.js",
|
|
6
6
|
"scripts": {
|
|
@@ -20,24 +20,24 @@
|
|
|
20
20
|
},
|
|
21
21
|
"homepage": "https://nodemailer.com/",
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@aws-sdk/client-ses": "3.
|
|
24
|
-
"aws-sdk": "2.
|
|
23
|
+
"@aws-sdk/client-ses": "3.329.0",
|
|
24
|
+
"aws-sdk": "2.1376.0",
|
|
25
25
|
"bunyan": "1.8.15",
|
|
26
26
|
"chai": "4.3.7",
|
|
27
27
|
"eslint-config-nodemailer": "1.2.0",
|
|
28
|
-
"eslint-config-prettier": "8.
|
|
29
|
-
"grunt": "1.
|
|
28
|
+
"eslint-config-prettier": "8.8.0",
|
|
29
|
+
"grunt": "1.6.1",
|
|
30
30
|
"grunt-cli": "1.4.3",
|
|
31
|
-
"grunt-eslint": "24.0
|
|
31
|
+
"grunt-eslint": "24.1.0",
|
|
32
32
|
"grunt-mocha-test": "0.13.3",
|
|
33
33
|
"libbase64": "1.2.1",
|
|
34
|
-
"libmime": "5.2.
|
|
34
|
+
"libmime": "5.2.1",
|
|
35
35
|
"libqp": "2.0.1",
|
|
36
36
|
"mocha": "10.2.0",
|
|
37
37
|
"nodemailer-ntlm-auth": "1.0.3",
|
|
38
38
|
"proxy": "1.0.2",
|
|
39
39
|
"proxy-test-server": "1.0.0",
|
|
40
|
-
"sinon": "15.0.
|
|
40
|
+
"sinon": "15.0.4",
|
|
41
41
|
"smtp-server": "3.11.0"
|
|
42
42
|
},
|
|
43
43
|
"engines": {
|