@tryghost/nodemailer 0.3.0 → 0.3.1

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.
Files changed (2) hide show
  1. package/lib/nodemailer.js +11 -0
  2. package/package.json +2 -2
package/lib/nodemailer.js CHANGED
@@ -22,6 +22,17 @@ module.exports = function (transport, options = {}) {
22
22
  case 'smtp':
23
23
  transportOptions = options;
24
24
 
25
+ /**
26
+ * @deprecated `secureConnection` was removed in Nodemailer 1.0.2
27
+ * in favor of `secure` but Ghost has been recommending `secureConnection`
28
+ * and it's difficult to get everyone to switch at this point
29
+ *
30
+ * Therefore, we have to alias it here to keep things working
31
+ */
32
+ if (options.secureConnection === true) {
33
+ transportOptions.secure = true;
34
+ }
35
+
25
36
  if (options.service && options.service.toLowerCase() === 'sendmail') {
26
37
  transportOptions.sendmail = true;
27
38
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryghost/nodemailer",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "repository": "https://github.com/TryGhost/framework/tree/main/packages/nodemailer",
5
5
  "author": "Ghost Foundation",
6
6
  "license": "MIT",
@@ -31,5 +31,5 @@
31
31
  "nodemailer-direct-transport": "^3.3.2",
32
32
  "nodemailer-stub-transport": "^1.1.0"
33
33
  },
34
- "gitHead": "15ee75f7396fc5d29ede148cbc4e44fec95c7a9e"
34
+ "gitHead": "4dad1a7558cc2c485e6e044a332d6f9242bebf0b"
35
35
  }