@nocobase/plugin-notification-email 2.1.0-alpha.14 → 2.1.0-alpha.15

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.
@@ -8,10 +8,10 @@
8
8
  */
9
9
 
10
10
  module.exports = {
11
- "@nocobase/client": "2.1.0-alpha.14",
11
+ "@nocobase/client": "2.1.0-alpha.15",
12
12
  "react": "18.2.0",
13
- "@nocobase/plugin-notification-manager": "2.1.0-alpha.14",
14
- "@nocobase/utils": "2.1.0-alpha.14",
15
- "@nocobase/server": "2.1.0-alpha.14",
13
+ "@nocobase/plugin-notification-manager": "2.1.0-alpha.15",
14
+ "@nocobase/utils": "2.1.0-alpha.15",
15
+ "@nocobase/server": "2.1.0-alpha.15",
16
16
  "react-i18next": "11.18.6"
17
17
  };
@@ -1 +1 @@
1
- {"name":"nodemailer","version":"6.9.7","description":"Easy as cake e-mail sending from your Node.js applications","main":"lib/nodemailer.js","scripts":{"test":"grunt --trace-warnings","update":"rm -rf node_modules/ package-lock.json && ncu -u && npm install"},"repository":{"type":"git","url":"https://github.com/nodemailer/nodemailer.git"},"keywords":["Nodemailer"],"author":"Andris Reinman","license":"MIT-0","bugs":{"url":"https://github.com/nodemailer/nodemailer/issues"},"homepage":"https://nodemailer.com/","devDependencies":{"@aws-sdk/client-ses":"3.433.0","aws-sdk":"2.1478.0","bunyan":"1.8.15","chai":"4.3.10","eslint-config-nodemailer":"1.2.0","eslint-config-prettier":"9.0.0","grunt":"1.6.1","grunt-cli":"1.4.3","grunt-eslint":"24.3.0","grunt-mocha-test":"0.13.3","libbase64":"1.2.1","libmime":"5.2.1","libqp":"2.0.1","mocha":"10.2.0","nodemailer-ntlm-auth":"1.0.4","proxy":"1.0.2","proxy-test-server":"1.0.0","sinon":"17.0.0","smtp-server":"3.13.0"},"engines":{"node":">=6.0.0"},"_lastModified":"2026-04-07T15:55:46.432Z"}
1
+ {"name":"nodemailer","version":"6.9.7","description":"Easy as cake e-mail sending from your Node.js applications","main":"lib/nodemailer.js","scripts":{"test":"grunt --trace-warnings","update":"rm -rf node_modules/ package-lock.json && ncu -u && npm install"},"repository":{"type":"git","url":"https://github.com/nodemailer/nodemailer.git"},"keywords":["Nodemailer"],"author":"Andris Reinman","license":"MIT-0","bugs":{"url":"https://github.com/nodemailer/nodemailer/issues"},"homepage":"https://nodemailer.com/","devDependencies":{"@aws-sdk/client-ses":"3.433.0","aws-sdk":"2.1478.0","bunyan":"1.8.15","chai":"4.3.10","eslint-config-nodemailer":"1.2.0","eslint-config-prettier":"9.0.0","grunt":"1.6.1","grunt-cli":"1.4.3","grunt-eslint":"24.3.0","grunt-mocha-test":"0.13.3","libbase64":"1.2.1","libmime":"5.2.1","libqp":"2.0.1","mocha":"10.2.0","nodemailer-ntlm-auth":"1.0.4","proxy":"1.0.2","proxy-test-server":"1.0.0","sinon":"17.0.0","smtp-server":"3.13.0"},"engines":{"node":">=6.0.0"},"_lastModified":"2026-04-10T12:41:18.177Z"}
@@ -86,7 +86,7 @@ class MailNotificationChannel extends import_plugin_notification_manager.BaseNot
86
86
  return MailNotificationChannel.transporterMap.get(key);
87
87
  }
88
88
  async send(args) {
89
- const { message, channel, receivers } = args;
89
+ const { message, channel, receivers, transaction } = args;
90
90
  const { host, port, secure, account, password, from } = channel.options;
91
91
  const userRepo = this.app.db.getRepository("users");
92
92
  try {
@@ -96,7 +96,8 @@ class MailNotificationChannel extends import_plugin_notification_manager.BaseNot
96
96
  const users = await userRepo.find({
97
97
  filter: {
98
98
  id: receivers.value
99
- }
99
+ },
100
+ transaction
100
101
  });
101
102
  const usersEmail = users.map((user) => user.email).filter(Boolean);
102
103
  const payload = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-notification-email",
3
- "version": "2.1.0-alpha.14",
3
+ "version": "2.1.0-alpha.15",
4
4
  "displayName": "Notification: Email",
5
5
  "displayName.ru-RU": "Уведомления: Электронная почта (Email)",
6
6
  "displayName.zh-CN": "通知:电子邮件",
@@ -25,5 +25,5 @@
25
25
  "Notification"
26
26
  ],
27
27
  "license": "Apache-2.0",
28
- "gitHead": "d8735b541de0ff9557bba704de49c799b4962672"
28
+ "gitHead": "7c86e75b0af4b9f532c8ebf5ef96a7423b0ab60e"
29
29
  }