@nocobase/plugin-workflow-mailer 1.2.12-alpha → 1.3.0-alpha.20240710084543

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.
Files changed (57) hide show
  1. package/package.json +2 -2
  2. package/dist/client/MailerInstruction.d.ts +0 -352
  3. package/dist/client/index.d.ts +0 -14
  4. package/dist/client/index.js +0 -16
  5. package/dist/externalVersion.js +0 -16
  6. package/dist/index.d.ts +0 -10
  7. package/dist/index.js +0 -48
  8. package/dist/locale/en-US.json +0 -19
  9. package/dist/locale/index.d.ts +0 -11
  10. package/dist/locale/index.js +0 -48
  11. package/dist/locale/zh-CN.json +0 -19
  12. package/dist/node_modules/nodemailer/.gitattributes +0 -6
  13. package/dist/node_modules/nodemailer/.ncurc.js +0 -7
  14. package/dist/node_modules/nodemailer/.prettierrc.js +0 -8
  15. package/dist/node_modules/nodemailer/LICENSE +0 -16
  16. package/dist/node_modules/nodemailer/SECURITY.txt +0 -22
  17. package/dist/node_modules/nodemailer/lib/addressparser/index.js +0 -313
  18. package/dist/node_modules/nodemailer/lib/base64/index.js +0 -142
  19. package/dist/node_modules/nodemailer/lib/dkim/index.js +0 -251
  20. package/dist/node_modules/nodemailer/lib/dkim/message-parser.js +0 -155
  21. package/dist/node_modules/nodemailer/lib/dkim/relaxed-body.js +0 -154
  22. package/dist/node_modules/nodemailer/lib/dkim/sign.js +0 -117
  23. package/dist/node_modules/nodemailer/lib/fetch/cookies.js +0 -281
  24. package/dist/node_modules/nodemailer/lib/fetch/index.js +0 -274
  25. package/dist/node_modules/nodemailer/lib/json-transport/index.js +0 -82
  26. package/dist/node_modules/nodemailer/lib/mail-composer/index.js +0 -565
  27. package/dist/node_modules/nodemailer/lib/mailer/index.js +0 -429
  28. package/dist/node_modules/nodemailer/lib/mailer/mail-message.js +0 -315
  29. package/dist/node_modules/nodemailer/lib/mime-funcs/index.js +0 -625
  30. package/dist/node_modules/nodemailer/lib/mime-funcs/mime-types.js +0 -2102
  31. package/dist/node_modules/nodemailer/lib/mime-node/index.js +0 -1314
  32. package/dist/node_modules/nodemailer/lib/mime-node/last-newline.js +0 -33
  33. package/dist/node_modules/nodemailer/lib/mime-node/le-unix.js +0 -43
  34. package/dist/node_modules/nodemailer/lib/mime-node/le-windows.js +0 -52
  35. package/dist/node_modules/nodemailer/lib/nodemailer.js +0 -1
  36. package/dist/node_modules/nodemailer/lib/punycode/index.js +0 -460
  37. package/dist/node_modules/nodemailer/lib/qp/index.js +0 -219
  38. package/dist/node_modules/nodemailer/lib/sendmail-transport/index.js +0 -210
  39. package/dist/node_modules/nodemailer/lib/ses-transport/index.js +0 -349
  40. package/dist/node_modules/nodemailer/lib/shared/index.js +0 -688
  41. package/dist/node_modules/nodemailer/lib/smtp-connection/data-stream.js +0 -108
  42. package/dist/node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js +0 -143
  43. package/dist/node_modules/nodemailer/lib/smtp-connection/index.js +0 -1825
  44. package/dist/node_modules/nodemailer/lib/smtp-pool/index.js +0 -648
  45. package/dist/node_modules/nodemailer/lib/smtp-pool/pool-resource.js +0 -253
  46. package/dist/node_modules/nodemailer/lib/smtp-transport/index.js +0 -416
  47. package/dist/node_modules/nodemailer/lib/stream-transport/index.js +0 -135
  48. package/dist/node_modules/nodemailer/lib/well-known/index.js +0 -47
  49. package/dist/node_modules/nodemailer/lib/well-known/services.json +0 -343
  50. package/dist/node_modules/nodemailer/lib/xoauth2/index.js +0 -376
  51. package/dist/node_modules/nodemailer/package.json +0 -1
  52. package/dist/server/MailerInstruction.d.ts +0 -13
  53. package/dist/server/MailerInstruction.js +0 -119
  54. package/dist/server/Plugin.d.ts +0 -12
  55. package/dist/server/Plugin.js +0 -50
  56. package/dist/server/index.d.ts +0 -9
  57. package/dist/server/index.js +0 -42
@@ -1,33 +0,0 @@
1
- 'use strict';
2
-
3
- const Transform = require('stream').Transform;
4
-
5
- class LastNewline extends Transform {
6
- constructor() {
7
- super();
8
- this.lastByte = false;
9
- }
10
-
11
- _transform(chunk, encoding, done) {
12
- if (chunk.length) {
13
- this.lastByte = chunk[chunk.length - 1];
14
- }
15
-
16
- this.push(chunk);
17
- done();
18
- }
19
-
20
- _flush(done) {
21
- if (this.lastByte === 0x0a) {
22
- return done();
23
- }
24
- if (this.lastByte === 0x0d) {
25
- this.push(Buffer.from('\n'));
26
- return done();
27
- }
28
- this.push(Buffer.from('\r\n'));
29
- return done();
30
- }
31
- }
32
-
33
- module.exports = LastNewline;
@@ -1,43 +0,0 @@
1
- 'use strict';
2
-
3
- const stream = require('stream');
4
- const Transform = stream.Transform;
5
-
6
- /**
7
- * Ensures that only <LF> is used for linebreaks
8
- *
9
- * @param {Object} options Stream options
10
- */
11
- class LeWindows extends Transform {
12
- constructor(options) {
13
- super(options);
14
- // init Transform
15
- this.options = options || {};
16
- }
17
-
18
- /**
19
- * Escapes dots
20
- */
21
- _transform(chunk, encoding, done) {
22
- let buf;
23
- let lastPos = 0;
24
-
25
- for (let i = 0, len = chunk.length; i < len; i++) {
26
- if (chunk[i] === 0x0d) {
27
- // \n
28
- buf = chunk.slice(lastPos, i);
29
- lastPos = i + 1;
30
- this.push(buf);
31
- }
32
- }
33
- if (lastPos && lastPos < chunk.length) {
34
- buf = chunk.slice(lastPos);
35
- this.push(buf);
36
- } else if (!lastPos) {
37
- this.push(chunk);
38
- }
39
- done();
40
- }
41
- }
42
-
43
- module.exports = LeWindows;
@@ -1,52 +0,0 @@
1
- 'use strict';
2
-
3
- const stream = require('stream');
4
- const Transform = stream.Transform;
5
-
6
- /**
7
- * Ensures that only <CR><LF> sequences are used for linebreaks
8
- *
9
- * @param {Object} options Stream options
10
- */
11
- class LeWindows extends Transform {
12
- constructor(options) {
13
- super(options);
14
- // init Transform
15
- this.options = options || {};
16
- this.lastByte = false;
17
- }
18
-
19
- /**
20
- * Escapes dots
21
- */
22
- _transform(chunk, encoding, done) {
23
- let buf;
24
- let lastPos = 0;
25
-
26
- for (let i = 0, len = chunk.length; i < len; i++) {
27
- if (chunk[i] === 0x0a) {
28
- // \n
29
- if ((i && chunk[i - 1] !== 0x0d) || (!i && this.lastByte !== 0x0d)) {
30
- if (i > lastPos) {
31
- buf = chunk.slice(lastPos, i);
32
- this.push(buf);
33
- }
34
- this.push(Buffer.from('\r\n'));
35
- lastPos = i + 1;
36
- }
37
- }
38
- }
39
-
40
- if (lastPos && lastPos < chunk.length) {
41
- buf = chunk.slice(lastPos);
42
- this.push(buf);
43
- } else if (!lastPos) {
44
- this.push(chunk);
45
- }
46
-
47
- this.lastByte = chunk[chunk.length - 1];
48
- done();
49
- }
50
- }
51
-
52
- module.exports = LeWindows;