@live-change/email-service 0.3.35 → 0.3.36
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/package.json +2 -2
- package/send.js +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/email-service",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.36",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"juice": "9.1.0",
|
|
30
30
|
"nodemailer": "^6.7.2"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "9923f931253953eafc935c0267db191ac9f62ef7"
|
|
33
33
|
}
|
package/send.js
CHANGED
|
@@ -14,7 +14,9 @@ const smtp = nodemailer.createTransport(config.transport || {
|
|
|
14
14
|
user: (config.user || process.env.SMTP_USER),
|
|
15
15
|
pass: (config.password || process.env.SMTP_PASSWORD)
|
|
16
16
|
},
|
|
17
|
-
secure:
|
|
17
|
+
secure: (config.secure || process.env.SMTP_SECURE) !== undefined
|
|
18
|
+
? !!((config.secure || process.env.SMTP_SECURE))
|
|
19
|
+
: undefined, // secure:true for port 465, secure:false for port 587
|
|
18
20
|
tls: {
|
|
19
21
|
// do not fail on invalid certs
|
|
20
22
|
rejectUnauthorized: !(config.ignoreTLS || process.env.SMTP_IGNORE_TLS)
|