@tryghost/nodemailer 2.3.1 → 2.3.3

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/lib/nodemailer.js CHANGED
@@ -54,7 +54,11 @@ module.exports = function (transport, options = {}) {
54
54
  case 'ses':
55
55
  const { SESv2Client, SendEmailCommand } = require('@aws-sdk/client-sesv2');
56
56
 
57
+ // This keeps the legacy Ghost SES ServiceUrl parser compatible with
58
+ // existing config shapes; explicit `region` remains the preferred path.
59
+ // codeql[js/incomplete-hostname-regexp]
57
60
  const pattern = /(.*)email(.*)\.(.*).amazonaws.com/i;
61
+ // codeql[js/polynomial-redos]
58
62
  const result = pattern.exec(options.ServiceUrl);
59
63
  const region = options.region || (result && result[3]) || 'us-east-1';
60
64
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryghost/nodemailer",
3
- "version": "2.3.1",
3
+ "version": "2.3.3",
4
4
  "license": "MIT",
5
5
  "author": "Ghost Foundation",
6
6
  "repository": {
@@ -17,12 +17,12 @@
17
17
  "access": "public"
18
18
  },
19
19
  "dependencies": {
20
- "@aws-sdk/client-sesv2": "3.1073.0",
21
- "nodemailer": "9.0.1",
20
+ "@aws-sdk/client-sesv2": "3.1089.0",
21
+ "nodemailer": "9.0.3",
22
22
  "nodemailer-mailgun-transport": "2.1.5",
23
23
  "nodemailer-stub-transport": "1.1.0",
24
- "@tryghost/tpl": "2.3.1",
25
- "@tryghost/errors": "3.3.1"
24
+ "@tryghost/errors": "3.3.3",
25
+ "@tryghost/tpl": "2.3.3"
26
26
  },
27
27
  "devDependencies": {
28
28
  "sinon": "22.0.0"