idea-aws 4.5.0 → 4.5.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.
- package/dist/src/ses.js +3 -6
- package/package.json +2 -3
package/dist/src/ses.js
CHANGED
|
@@ -34,7 +34,6 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.SES = void 0;
|
|
37
|
-
const client_ses_1 = require("@aws-sdk/client-ses");
|
|
38
37
|
const AWSSES = __importStar(require("@aws-sdk/client-sesv2"));
|
|
39
38
|
const nodemailer_1 = require("nodemailer");
|
|
40
39
|
const dynamoDB_1 = require("./dynamoDB");
|
|
@@ -175,12 +174,10 @@ class SES {
|
|
|
175
174
|
if (emailData.text)
|
|
176
175
|
mailOptions.text = emailData.text;
|
|
177
176
|
mailOptions.attachments = emailData.attachments;
|
|
178
|
-
|
|
179
|
-
const
|
|
177
|
+
const sesClient = new AWSSES.SESv2Client({ region: sesParams.region });
|
|
178
|
+
const SendEmailCommand = AWSSES.SendEmailCommand;
|
|
180
179
|
this.logger.trace('SES send email (Nodemailer)');
|
|
181
|
-
|
|
182
|
-
// see: https://github.com/nodemailer/nodemailer/issues/1430
|
|
183
|
-
return await (0, nodemailer_1.createTransport)({ SES: { ses, aws: { SendRawEmailCommand: client_ses_1.SendRawEmailCommand } } }).sendMail(mailOptions);
|
|
180
|
+
return await (0, nodemailer_1.createTransport)({ SES: { sesClient, SendEmailCommand } }).sendMail(mailOptions);
|
|
184
181
|
}
|
|
185
182
|
prepareEmailDestination(emailData) {
|
|
186
183
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "idea-aws",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.1",
|
|
4
4
|
"description": "AWS wrappers to use in IDEA's back-ends",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -52,7 +52,6 @@
|
|
|
52
52
|
"@aws-sdk/client-lambda": "^3.851.0",
|
|
53
53
|
"@aws-sdk/client-s3": "^3.850.0",
|
|
54
54
|
"@aws-sdk/client-secrets-manager": "^3.848.0",
|
|
55
|
-
"@aws-sdk/client-ses": "^3.848.0",
|
|
56
55
|
"@aws-sdk/client-sesv2": "^3.849.0",
|
|
57
56
|
"@aws-sdk/client-sns": "^3.848.0",
|
|
58
57
|
"@aws-sdk/client-ssm": "^3.849.0",
|
|
@@ -63,7 +62,7 @@
|
|
|
63
62
|
"@aws-sdk/util-dynamodb": "^3.848.0"
|
|
64
63
|
},
|
|
65
64
|
"devDependencies": {
|
|
66
|
-
"@tsconfig/
|
|
65
|
+
"@tsconfig/node22": "^22.0.2",
|
|
67
66
|
"@types/aws-lambda": "^8.10.152",
|
|
68
67
|
"@types/node": "^22.16.5",
|
|
69
68
|
"@types/nodemailer": "^6.4.17",
|