nodemailer 4.3.1 → 4.4.0
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/mail-composer/index.js +1 -1
- package/package.json +3 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 4.4.0 2017-11-10
|
|
4
|
+
|
|
5
|
+
- Changed default behavior for attachment option contentTransferEncoding. If it is unset then base64 encoding is used for the attachment. If it is set to false then previous default applies (base64 for most, 7bit for text)
|
|
6
|
+
|
|
3
7
|
## 4.3.1 2017-10-25
|
|
4
8
|
|
|
5
9
|
- Fixed a confict with Electron.js where timers do not have unref method
|
|
@@ -94,7 +94,7 @@ class MailComposer {
|
|
|
94
94
|
data = {
|
|
95
95
|
contentType: attachment.contentType || mimeFuncs.detectMimeType(attachment.filename || attachment.path || attachment.href || 'bin'),
|
|
96
96
|
contentDisposition: attachment.contentDisposition || (isMessageNode ? 'inline' : 'attachment'),
|
|
97
|
-
contentTransferEncoding: attachment.contentTransferEncoding
|
|
97
|
+
contentTransferEncoding: 'contentTransferEncoding' in attachment ? attachment.contentTransferEncoding : 'base64'
|
|
98
98
|
};
|
|
99
99
|
|
|
100
100
|
if (attachment.filename) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nodemailer",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"description": "Easy as cake e-mail sending from your Node.js applications",
|
|
5
5
|
"main": "lib/nodemailer.js",
|
|
6
6
|
"scripts": {
|
|
@@ -10,9 +10,7 @@
|
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "https://github.com/nodemailer/nodemailer.git"
|
|
12
12
|
},
|
|
13
|
-
"keywords": [
|
|
14
|
-
"Nodemailer"
|
|
15
|
-
],
|
|
13
|
+
"keywords": ["Nodemailer"],
|
|
16
14
|
"author": "Andris Reinman",
|
|
17
15
|
"license": "MIT",
|
|
18
16
|
"bugs": {
|
|
@@ -33,7 +31,7 @@
|
|
|
33
31
|
"mocha": "^4.0.1",
|
|
34
32
|
"proxy": "^0.2.4",
|
|
35
33
|
"proxy-test-server": "^1.0.0",
|
|
36
|
-
"sinon": "^4.
|
|
34
|
+
"sinon": "^4.1.2",
|
|
37
35
|
"smtp-server": "^3.3.0"
|
|
38
36
|
},
|
|
39
37
|
"engines": {
|