@backstage/plugin-notifications-backend-module-email 0.3.9-next.2 → 0.3.9-next.3
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @backstage/plugin-notifications-backend-module-email
|
|
2
2
|
|
|
3
|
+
## 0.3.9-next.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- aa3a63a: Enable the ability to configure the endpoint for the SES connection used in the notifications email module. This enables the configuration of alternate endpoints as required, for example for local testing or alternative stacks.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @backstage/backend-plugin-api@1.3.1-next.2
|
|
10
|
+
- @backstage/catalog-client@1.10.0-next.0
|
|
11
|
+
- @backstage/catalog-model@1.7.3
|
|
12
|
+
- @backstage/config@1.3.2
|
|
13
|
+
- @backstage/integration-aws-node@0.1.16-next.0
|
|
14
|
+
- @backstage/types@1.2.1
|
|
15
|
+
- @backstage/plugin-catalog-node@1.17.0-next.2
|
|
16
|
+
- @backstage/plugin-notifications-common@0.0.8
|
|
17
|
+
- @backstage/plugin-notifications-node@0.2.15-next.2
|
|
18
|
+
|
|
3
19
|
## 0.3.9-next.2
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/config.d.ts
CHANGED
|
@@ -11,7 +11,8 @@ const createSesTransport = async (config, credentialsManager) => {
|
|
|
11
11
|
{
|
|
12
12
|
apiVersion: config.getOptionalString("apiVersion") ?? "2010-12-01",
|
|
13
13
|
credentials: credentials.sdkCredentialProvider,
|
|
14
|
-
region: config.getOptionalString("region")
|
|
14
|
+
region: config.getOptionalString("region"),
|
|
15
|
+
endpoint: config.getOptionalString("endpoint")
|
|
15
16
|
}
|
|
16
17
|
]);
|
|
17
18
|
return nodemailer.createTransport({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ses.cjs.js","sources":["../../../src/processor/transports/ses.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createTransport } from 'nodemailer';\nimport { SendRawEmailCommand, SES } from '@aws-sdk/client-ses';\nimport { Config } from '@backstage/config';\nimport { AwsCredentialsManager } from '@backstage/integration-aws-node';\n\nexport const createSesTransport = async (\n config: Config,\n credentialsManager: AwsCredentialsManager,\n) => {\n const credentials = await credentialsManager.getCredentialProvider({\n accountId: config.getOptionalString('accountId'),\n });\n const ses = new SES([\n {\n apiVersion: config.getOptionalString('apiVersion') ?? '2010-12-01',\n credentials: credentials.sdkCredentialProvider,\n region: config.getOptionalString('region'),\n },\n ]);\n return createTransport({\n SES: { ses, aws: { SendRawEmailCommand } },\n });\n};\n"],"names":["SES","createTransport","SendRawEmailCommand"],"mappings":";;;;;AAoBa,MAAA,kBAAA,GAAqB,OAChC,MAAA,EACA,kBACG,KAAA;AACH,EAAM,MAAA,WAAA,GAAc,MAAM,kBAAA,CAAmB,qBAAsB,CAAA;AAAA,IACjE,SAAA,EAAW,MAAO,CAAA,iBAAA,CAAkB,WAAW;AAAA,GAChD,CAAA;AACD,EAAM,MAAA,GAAA,GAAM,IAAIA,aAAI,CAAA;AAAA,IAClB;AAAA,MACE,UAAY,EAAA,MAAA,CAAO,iBAAkB,CAAA,YAAY,CAAK,IAAA,YAAA;AAAA,MACtD,aAAa,WAAY,CAAA,qBAAA;AAAA,MACzB,MAAA,EAAQ,MAAO,CAAA,iBAAA,CAAkB,QAAQ;AAAA;
|
|
1
|
+
{"version":3,"file":"ses.cjs.js","sources":["../../../src/processor/transports/ses.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createTransport } from 'nodemailer';\nimport { SendRawEmailCommand, SES } from '@aws-sdk/client-ses';\nimport { Config } from '@backstage/config';\nimport { AwsCredentialsManager } from '@backstage/integration-aws-node';\n\nexport const createSesTransport = async (\n config: Config,\n credentialsManager: AwsCredentialsManager,\n) => {\n const credentials = await credentialsManager.getCredentialProvider({\n accountId: config.getOptionalString('accountId'),\n });\n const ses = new SES([\n {\n apiVersion: config.getOptionalString('apiVersion') ?? '2010-12-01',\n credentials: credentials.sdkCredentialProvider,\n region: config.getOptionalString('region'),\n endpoint: config.getOptionalString('endpoint'),\n },\n ]);\n return createTransport({\n SES: { ses, aws: { SendRawEmailCommand } },\n });\n};\n"],"names":["SES","createTransport","SendRawEmailCommand"],"mappings":";;;;;AAoBa,MAAA,kBAAA,GAAqB,OAChC,MAAA,EACA,kBACG,KAAA;AACH,EAAM,MAAA,WAAA,GAAc,MAAM,kBAAA,CAAmB,qBAAsB,CAAA;AAAA,IACjE,SAAA,EAAW,MAAO,CAAA,iBAAA,CAAkB,WAAW;AAAA,GAChD,CAAA;AACD,EAAM,MAAA,GAAA,GAAM,IAAIA,aAAI,CAAA;AAAA,IAClB;AAAA,MACE,UAAY,EAAA,MAAA,CAAO,iBAAkB,CAAA,YAAY,CAAK,IAAA,YAAA;AAAA,MACtD,aAAa,WAAY,CAAA,qBAAA;AAAA,MACzB,MAAA,EAAQ,MAAO,CAAA,iBAAA,CAAkB,QAAQ,CAAA;AAAA,MACzC,QAAA,EAAU,MAAO,CAAA,iBAAA,CAAkB,UAAU;AAAA;AAC/C,GACD,CAAA;AACD,EAAA,OAAOC,0BAAgB,CAAA;AAAA,IACrB,KAAK,EAAE,GAAA,EAAK,GAAK,EAAA,uBAAEC,+BAAsB;AAAA,GAC1C,CAAA;AACH;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-notifications-backend-module-email",
|
|
3
|
-
"version": "0.3.9-next.
|
|
3
|
+
"version": "0.3.9-next.3",
|
|
4
4
|
"description": "The email backend module for the notifications plugin.",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "backend-plugin-module",
|
|
@@ -41,22 +41,22 @@
|
|
|
41
41
|
"@aws-sdk/types": "^3.347.0",
|
|
42
42
|
"@azure/communication-email": "^1.0.0",
|
|
43
43
|
"@azure/identity": "^4.0.0",
|
|
44
|
-
"@backstage/backend-plugin-api": "1.3.1-next.
|
|
44
|
+
"@backstage/backend-plugin-api": "1.3.1-next.2",
|
|
45
45
|
"@backstage/catalog-client": "1.10.0-next.0",
|
|
46
46
|
"@backstage/catalog-model": "1.7.3",
|
|
47
47
|
"@backstage/config": "1.3.2",
|
|
48
48
|
"@backstage/integration-aws-node": "0.1.16-next.0",
|
|
49
|
-
"@backstage/plugin-catalog-node": "1.17.0-next.
|
|
49
|
+
"@backstage/plugin-catalog-node": "1.17.0-next.2",
|
|
50
50
|
"@backstage/plugin-notifications-common": "0.0.8",
|
|
51
|
-
"@backstage/plugin-notifications-node": "0.2.15-next.
|
|
51
|
+
"@backstage/plugin-notifications-node": "0.2.15-next.2",
|
|
52
52
|
"@backstage/types": "1.2.1",
|
|
53
53
|
"lodash": "^4.17.21",
|
|
54
54
|
"nodemailer": "^6.9.13",
|
|
55
55
|
"p-throttle": "^4.1.1"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@backstage/backend-test-utils": "1.5.0-next.
|
|
59
|
-
"@backstage/cli": "0.32.1-next.
|
|
58
|
+
"@backstage/backend-test-utils": "1.5.0-next.3",
|
|
59
|
+
"@backstage/cli": "0.32.1-next.3",
|
|
60
60
|
"@types/nodemailer": "^6.4.14"
|
|
61
61
|
},
|
|
62
62
|
"configSchema": "config.d.ts",
|