@nocobase/plugin-workflow-mailer 1.6.31 → 1.6.33

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.
@@ -11,8 +11,8 @@ module.exports = {
11
11
  "@ant-design/icons": "5.6.1",
12
12
  "@formily/antd-v5": "1.1.9",
13
13
  "react": "18.2.0",
14
- "@nocobase/client": "1.6.31",
15
- "@nocobase/plugin-workflow": "1.6.31",
14
+ "@nocobase/client": "1.6.33",
15
+ "@nocobase/plugin-workflow": "1.6.33",
16
16
  "react-i18next": "11.18.6",
17
- "@nocobase/server": "1.6.31"
17
+ "@nocobase/server": "1.6.33"
18
18
  };
@@ -1 +1 @@
1
- {"name":"nodemailer","version":"6.9.13","description":"Easy as cake e-mail sending from your Node.js applications","main":"lib/nodemailer.js","scripts":{"test":"node --test --test-concurrency=1 test/**/*.test.js test/**/*-test.js","test:coverage":"c8 node --test --test-concurrency=1 test/**/*.test.js test/**/*-test.js","lint":"eslint .","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.529.1","bunyan":"1.8.15","c8":"9.1.0","eslint":"8.57.0","eslint-config-nodemailer":"1.2.0","eslint-config-prettier":"9.1.0","libbase64":"1.3.0","libmime":"5.3.4","libqp":"2.1.0","nodemailer-ntlm-auth":"1.0.4","proxy":"1.0.2","proxy-test-server":"1.0.0","smtp-server":"3.13.3"},"engines":{"node":">=6.0.0"},"_lastModified":"2025-05-18T14:48:55.390Z"}
1
+ {"name":"nodemailer","version":"6.9.13","description":"Easy as cake e-mail sending from your Node.js applications","main":"lib/nodemailer.js","scripts":{"test":"node --test --test-concurrency=1 test/**/*.test.js test/**/*-test.js","test:coverage":"c8 node --test --test-concurrency=1 test/**/*.test.js test/**/*-test.js","lint":"eslint .","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.529.1","bunyan":"1.8.15","c8":"9.1.0","eslint":"8.57.0","eslint-config-nodemailer":"1.2.0","eslint-config-prettier":"9.1.0","libbase64":"1.3.0","libmime":"5.3.4","libqp":"2.1.0","nodemailer-ntlm-auth":"1.0.4","proxy":"1.0.2","proxy-test-server":"1.0.0","smtp-server":"3.13.3"},"engines":{"node":">=6.0.0"},"_lastModified":"2025-05-23T13:27:48.856Z"}
@@ -6,7 +6,7 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
- import { Processor, Instruction, FlowNodeModel } from '@nocobase/plugin-workflow';
9
+ import { FlowNodeModel, Instruction, Processor } from '@nocobase/plugin-workflow';
10
10
  export default class extends Instruction {
11
11
  run(node: FlowNodeModel, prevJob: any, processor: Processor): Promise<any>;
12
12
  resume(node: FlowNodeModel, job: any, processor: Processor): Promise<any>;
@@ -64,7 +64,7 @@ class MailerInstruction_default extends import_plugin_workflow.Instruction {
64
64
  ...options,
65
65
  ...contentType === "html" ? { html } : { text },
66
66
  subject: subject == null ? void 0 : subject.trim(),
67
- to: to.flat().map((item) => item == null ? void 0 : item.trim()).filter(Boolean),
67
+ to: to ? to.flat().map((item) => item == null ? void 0 : item.trim()).filter(Boolean) : void 0,
68
68
  cc: cc ? cc.flat().map((item) => item == null ? void 0 : item.trim()).filter(Boolean) : null,
69
69
  bcc: bcc ? bcc.flat().map((item) => item == null ? void 0 : item.trim()).filter(Boolean) : null
70
70
  };
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "displayName.zh-CN": "工作流:邮件发送节点",
5
5
  "description": "Send email in workflow.",
6
6
  "description.zh-CN": "可用于在工作流中发送电子邮件。",
7
- "version": "1.6.31",
7
+ "version": "1.6.33",
8
8
  "license": "AGPL-3.0",
9
9
  "main": "./dist/server/index.js",
10
10
  "homepage": "https://docs.nocobase.com/handbook/workflow-smtp-mailer",
@@ -21,7 +21,7 @@
21
21
  "@nocobase/server": "1.x",
22
22
  "@nocobase/test": "1.x"
23
23
  },
24
- "gitHead": "fc024988c623826fe2447d3f29e3cce40d15c354",
24
+ "gitHead": "4101b7a24800578b2a50870bb74bcb60309fbf0b",
25
25
  "keywords": [
26
26
  "NocoBase",
27
27
  "Workflow",