@paroicms/send-mail-aws-ses-plugin 0.3.20 → 0.4.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/README.md +2 -2
- package/backend/dist/index.js +1 -1
- package/backend/dist/send-mail-aws-ses.js +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ Add the following to your site configuration:
|
|
|
12
12
|
{
|
|
13
13
|
"plugins": {
|
|
14
14
|
"@paroicms/send-mail-aws-ses-plugin": {
|
|
15
|
-
"
|
|
15
|
+
"dryRun": false,
|
|
16
16
|
"from": "noreply@example.com",
|
|
17
17
|
"awsAccessKeyId": "your-aws-access-key-id",
|
|
18
18
|
"awsSecretAccessKey": "your-aws-secret-access-key",
|
|
@@ -24,7 +24,7 @@ Add the following to your site configuration:
|
|
|
24
24
|
|
|
25
25
|
### Configuration Options
|
|
26
26
|
|
|
27
|
-
- `
|
|
27
|
+
- `dryRun` (boolean, optional): When `true`, emails are logged but not sent. Default: `false`
|
|
28
28
|
- `from` (string, required): The email address to send emails from
|
|
29
29
|
- `awsAccessKeyId` (string, required): AWS access key ID for SES
|
|
30
30
|
- `awsSecretAccessKey` (string, required): AWS secret access key for SES
|
package/backend/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { type } from "arktype";
|
|
|
3
3
|
import { dirname } from "node:path";
|
|
4
4
|
import { sendMailAwsSes } from "./send-mail-aws-ses.js";
|
|
5
5
|
const SendMailAwsSesConfigAT = type({
|
|
6
|
-
"
|
|
6
|
+
"dryRun?": "boolean",
|
|
7
7
|
from: "string",
|
|
8
8
|
awsAccessKeyId: "string",
|
|
9
9
|
awsSecretAccessKey: "string",
|
|
@@ -14,8 +14,8 @@ export async function sendMailAwsSes(service, { subject, html, replyTo, to }, co
|
|
|
14
14
|
html,
|
|
15
15
|
text,
|
|
16
16
|
})}`);
|
|
17
|
-
if (configuration.
|
|
18
|
-
logger.info("[sendMailAwsSes]
|
|
17
|
+
if (configuration.dryRun) {
|
|
18
|
+
logger.info("[sendMailAwsSes] Dry run mode — email not sent");
|
|
19
19
|
return;
|
|
20
20
|
}
|
|
21
21
|
const sesClient = new SESClient({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paroicms/send-mail-aws-ses-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "AWS SES email sending plugin for ParoiCMS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"paroicms",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@aws-sdk/client-ses": "~3.1002.0",
|
|
31
|
-
"@paroicms/script-lib": "0.3.
|
|
31
|
+
"@paroicms/script-lib": "0.3.21",
|
|
32
32
|
"arktype": "~2.2.0"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@paroicms/public-anywhere-lib": "0.43.0",
|
|
40
|
-
"@paroicms/public-server-lib": "0.56.
|
|
40
|
+
"@paroicms/public-server-lib": "0.56.1",
|
|
41
41
|
"@types/node": "~24.11.0",
|
|
42
42
|
"rimraf": "~6.1.3",
|
|
43
43
|
"typescript": "~5.9.3",
|