idea-aws 4.0.6 → 4.0.8
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 -5
- package/package.json +2 -1
package/dist/src/ses.js
CHANGED
|
@@ -24,6 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.SES = void 0;
|
|
27
|
+
const client_ses_1 = require("@aws-sdk/client-ses");
|
|
27
28
|
const AWSSES = __importStar(require("@aws-sdk/client-sesv2"));
|
|
28
29
|
const nodemailer_1 = require("nodemailer");
|
|
29
30
|
const dynamoDB_1 = require("./dynamoDB");
|
|
@@ -165,11 +166,8 @@ class SES {
|
|
|
165
166
|
if (emailData.text)
|
|
166
167
|
mailOptions.text = emailData.text;
|
|
167
168
|
mailOptions.attachments = emailData.attachments;
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
ses = this.ses;
|
|
171
|
-
else
|
|
172
|
-
ses = new AWSSES.SESv2Client({ region: sesParams.region });
|
|
169
|
+
// note: Nodemailer doesn't support SESv2 as of August 2023
|
|
170
|
+
const ses = new client_ses_1.SES({ region: sesParams.region });
|
|
173
171
|
this.logger.debug('SES send email (Nodemailer)');
|
|
174
172
|
return await (0, nodemailer_1.createTransport)({ SES: ses }).sendMail(mailOptions);
|
|
175
173
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "idea-aws",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.8",
|
|
4
4
|
"description": "AWS wrappers to use in IDEA's back-ends",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
"@aws-sdk/client-lambda": "^3.388.0",
|
|
53
53
|
"@aws-sdk/client-s3": "^3.388.0",
|
|
54
54
|
"@aws-sdk/client-secrets-manager": "^3.389.0",
|
|
55
|
+
"@aws-sdk/client-ses": "^3.398.0",
|
|
55
56
|
"@aws-sdk/client-sesv2": "^3.388.0",
|
|
56
57
|
"@aws-sdk/client-sns": "^3.388.0",
|
|
57
58
|
"@aws-sdk/client-translate": "^3.388.0",
|