@mettlecast/eslint-plugin-domain-module 0.2.75 → 0.2.76

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.
@@ -59,5 +59,10 @@ tester.run('no-raw-aws-sdk', noRawAwsSdk, {
59
59
  code: "import { Foo } from '@aws-sdk/client-some-new-service';",
60
60
  errors: [{ messageId: 'noRawAwsSdk' }],
61
61
  },
62
+ // Issue #4950 — SES SDK imports must use ctx.ses.sendEmail() instead.
63
+ {
64
+ code: "import { SESClient, SendEmailCommand } from '@aws-sdk/client-ses';",
65
+ errors: [{ messageId: 'noRawAwsSdk' }],
66
+ },
62
67
  ],
63
68
  });
@@ -73,6 +73,12 @@ const SDK_TARGETS = [
73
73
  ctxMethod: 'ctx.cognito.{adminCreateUser,adminSetUserPassword,adminGetUser,adminDeleteUser,adminUpdateUserAttributes}',
74
74
  reason: 'Cognito control-plane calls belong in ctx.cognito so the user pool ID and IAM scope are managed by the runtime and auditable.',
75
75
  },
76
+ {
77
+ match: 'client-ses',
78
+ service: 'SES',
79
+ ctxMethod: 'ctx.ses.sendEmail({ to, subject, htmlBody, textBody })',
80
+ reason: 'SES calls belong in ctx.ses so the sending identity, region, and IAM scope are managed by the runtime and auditable.',
81
+ },
76
82
  ];
77
83
  const FALLBACK_TARGET = {
78
84
  match: '@aws-sdk/',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mettlecast/eslint-plugin-domain-module",
3
- "version": "0.2.75",
3
+ "version": "0.2.76",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"