idea-aws 4.0.9 → 4.0.11
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 -1
- package/package.json +5 -3
package/dist/src/ses.js
CHANGED
|
@@ -169,7 +169,9 @@ class SES {
|
|
|
169
169
|
// note: Nodemailer doesn't support SESv2 as of August 2023
|
|
170
170
|
const ses = new client_ses_1.SESClient({ region: sesParams.region });
|
|
171
171
|
this.logger.debug('SES send email (Nodemailer)');
|
|
172
|
-
|
|
172
|
+
// note: this is a workaround to make Nodemailer works with AWS SDK 3;
|
|
173
|
+
// see: https://github.com/nodemailer/nodemailer/issues/1430
|
|
174
|
+
return await (0, nodemailer_1.createTransport)({ SES: { ses, aws: { SendRawEmailCommand: client_ses_1.SendRawEmailCommand } } }).sendMail(mailOptions);
|
|
173
175
|
}
|
|
174
176
|
prepareEmailDestination(emailData) {
|
|
175
177
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "idea-aws",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.11",
|
|
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",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"source-map-support": "^0.5.21",
|
|
45
45
|
"uuid": "^9.0.0"
|
|
46
46
|
},
|
|
47
|
-
"
|
|
47
|
+
"peerDependencies": {
|
|
48
48
|
"@aws-sdk/client-cognito-identity-provider": "^3.388.0",
|
|
49
49
|
"@aws-sdk/client-comprehend": "^3.388.0",
|
|
50
50
|
"@aws-sdk/client-dynamodb": "^3.388.0",
|
|
@@ -59,7 +59,9 @@
|
|
|
59
59
|
"@aws-sdk/lib-dynamodb": "^3.388.0",
|
|
60
60
|
"@aws-sdk/lib-storage": "^3.388.0",
|
|
61
61
|
"@aws-sdk/s3-request-presigner": "^3.388.0",
|
|
62
|
-
"@aws-sdk/util-dynamodb": "^3.388.0"
|
|
62
|
+
"@aws-sdk/util-dynamodb": "^3.388.0"
|
|
63
|
+
},
|
|
64
|
+
"devDependencies": {
|
|
63
65
|
"@tsconfig/node18": "^18.2.0",
|
|
64
66
|
"@types/aws-lambda": "^8.10.119",
|
|
65
67
|
"@types/node": "^18.17.4",
|