@nocobase/plugin-notifications 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 (63) hide show
  1. package/package.json +2 -2
  2. package/dist/client/index.d.ts +0 -13
  3. package/dist/client/index.js +0 -10
  4. package/dist/externalVersion.js +0 -15
  5. package/dist/index.d.ts +0 -10
  6. package/dist/index.js +0 -48
  7. package/dist/node_modules/nodemailer/.gitattributes +0 -6
  8. package/dist/node_modules/nodemailer/.ncurc.js +0 -7
  9. package/dist/node_modules/nodemailer/.prettierrc.js +0 -8
  10. package/dist/node_modules/nodemailer/LICENSE +0 -16
  11. package/dist/node_modules/nodemailer/SECURITY.txt +0 -22
  12. package/dist/node_modules/nodemailer/lib/addressparser/index.js +0 -313
  13. package/dist/node_modules/nodemailer/lib/base64/index.js +0 -142
  14. package/dist/node_modules/nodemailer/lib/dkim/index.js +0 -251
  15. package/dist/node_modules/nodemailer/lib/dkim/message-parser.js +0 -155
  16. package/dist/node_modules/nodemailer/lib/dkim/relaxed-body.js +0 -154
  17. package/dist/node_modules/nodemailer/lib/dkim/sign.js +0 -117
  18. package/dist/node_modules/nodemailer/lib/fetch/cookies.js +0 -281
  19. package/dist/node_modules/nodemailer/lib/fetch/index.js +0 -274
  20. package/dist/node_modules/nodemailer/lib/json-transport/index.js +0 -82
  21. package/dist/node_modules/nodemailer/lib/mail-composer/index.js +0 -565
  22. package/dist/node_modules/nodemailer/lib/mailer/index.js +0 -427
  23. package/dist/node_modules/nodemailer/lib/mailer/mail-message.js +0 -315
  24. package/dist/node_modules/nodemailer/lib/mime-funcs/index.js +0 -625
  25. package/dist/node_modules/nodemailer/lib/mime-funcs/mime-types.js +0 -2102
  26. package/dist/node_modules/nodemailer/lib/mime-node/index.js +0 -1305
  27. package/dist/node_modules/nodemailer/lib/mime-node/last-newline.js +0 -33
  28. package/dist/node_modules/nodemailer/lib/mime-node/le-unix.js +0 -43
  29. package/dist/node_modules/nodemailer/lib/mime-node/le-windows.js +0 -52
  30. package/dist/node_modules/nodemailer/lib/nodemailer.js +0 -1
  31. package/dist/node_modules/nodemailer/lib/qp/index.js +0 -219
  32. package/dist/node_modules/nodemailer/lib/sendmail-transport/index.js +0 -210
  33. package/dist/node_modules/nodemailer/lib/ses-transport/index.js +0 -349
  34. package/dist/node_modules/nodemailer/lib/shared/index.js +0 -638
  35. package/dist/node_modules/nodemailer/lib/smtp-connection/data-stream.js +0 -108
  36. package/dist/node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js +0 -143
  37. package/dist/node_modules/nodemailer/lib/smtp-connection/index.js +0 -1812
  38. package/dist/node_modules/nodemailer/lib/smtp-pool/index.js +0 -648
  39. package/dist/node_modules/nodemailer/lib/smtp-pool/pool-resource.js +0 -253
  40. package/dist/node_modules/nodemailer/lib/smtp-transport/index.js +0 -416
  41. package/dist/node_modules/nodemailer/lib/stream-transport/index.js +0 -135
  42. package/dist/node_modules/nodemailer/lib/well-known/index.js +0 -47
  43. package/dist/node_modules/nodemailer/lib/well-known/services.json +0 -338
  44. package/dist/node_modules/nodemailer/lib/xoauth2/index.js +0 -376
  45. package/dist/node_modules/nodemailer/package.json +0 -1
  46. package/dist/server/collections/notification_logs.d.ts +0 -11
  47. package/dist/server/collections/notification_logs.js +0 -54
  48. package/dist/server/collections/notification_services.d.ts +0 -11
  49. package/dist/server/collections/notification_services.js +0 -54
  50. package/dist/server/collections/notifications.d.ts +0 -11
  51. package/dist/server/collections/notifications.js +0 -71
  52. package/dist/server/index.d.ts +0 -9
  53. package/dist/server/index.js +0 -42
  54. package/dist/server/models/Notification.d.ts +0 -17
  55. package/dist/server/models/Notification.js +0 -121
  56. package/dist/server/models/NotificationLog.d.ts +0 -11
  57. package/dist/server/models/NotificationLog.js +0 -38
  58. package/dist/server/models/NotificationService.d.ts +0 -17
  59. package/dist/server/models/NotificationService.js +0 -65
  60. package/dist/server/models/index.d.ts +0 -11
  61. package/dist/server/models/index.js +0 -34
  62. package/dist/server/server.d.ts +0 -12
  63. package/dist/server/server.js +0 -50
@@ -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;