@tryghost/nodemailer 1.2.1 → 2.0.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/lib/nodemailer.js +3 -4
- package/package.json +8 -8
package/lib/nodemailer.js
CHANGED
|
@@ -52,7 +52,7 @@ module.exports = function (transport, options = {}) {
|
|
|
52
52
|
transportOptions.sendmail = true;
|
|
53
53
|
break;
|
|
54
54
|
case 'ses':
|
|
55
|
-
const
|
|
55
|
+
const {SESv2Client, SendRawEmailCommand} = require('@aws-sdk/client-sesv2');
|
|
56
56
|
|
|
57
57
|
const pattern = /(.*)email(.*)\.(.*).amazonaws.com/i;
|
|
58
58
|
const result = pattern.exec(options.ServiceUrl);
|
|
@@ -62,14 +62,13 @@ module.exports = function (transport, options = {}) {
|
|
|
62
62
|
const secretAccessKey = options.secretAccessKey || options.AWSSecretKey;
|
|
63
63
|
const credentials = (accessKeyId && secretAccessKey) ? {accessKeyId, secretAccessKey} : undefined;
|
|
64
64
|
|
|
65
|
-
const
|
|
66
|
-
apiVersion: '2010-12-01',
|
|
65
|
+
const sesClient = new SESv2Client({
|
|
67
66
|
region,
|
|
68
67
|
credentials
|
|
69
68
|
});
|
|
70
69
|
|
|
71
70
|
transportOptions = {
|
|
72
|
-
SES: {
|
|
71
|
+
SES: {sesClient, SendRawEmailCommand}
|
|
73
72
|
};
|
|
74
73
|
|
|
75
74
|
break;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryghost/nodemailer",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/TryGhost/framework.git",
|
|
@@ -23,16 +23,16 @@
|
|
|
23
23
|
"access": "public"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"c8": "
|
|
26
|
+
"c8": "11.0.0",
|
|
27
27
|
"mocha": "11.7.5",
|
|
28
28
|
"sinon": "21.0.1"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@aws-sdk/client-
|
|
32
|
-
"@tryghost/errors": "^
|
|
33
|
-
"nodemailer": "
|
|
34
|
-
"nodemailer-direct-transport": "
|
|
35
|
-
"nodemailer-mailgun-transport": "
|
|
36
|
-
"nodemailer-stub-transport": "
|
|
31
|
+
"@aws-sdk/client-sesv2": "3.999.0",
|
|
32
|
+
"@tryghost/errors": "^3.0.0",
|
|
33
|
+
"nodemailer": "8.0.1",
|
|
34
|
+
"nodemailer-direct-transport": "3.3.2",
|
|
35
|
+
"nodemailer-mailgun-transport": "2.1.5",
|
|
36
|
+
"nodemailer-stub-transport": "1.1.0"
|
|
37
37
|
}
|
|
38
38
|
}
|