@nocobase/plugin-notification-email 1.4.0-alpha.20240928155737
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/LICENSE.txt +123 -0
- package/README.md +1 -0
- package/client.d.ts +2 -0
- package/client.js +1 -0
- package/dist/client/ConfigForm.d.ts +10 -0
- package/dist/client/MessageConfigForm.d.ts +12 -0
- package/dist/client/hooks/useTranslation.d.ts +9 -0
- package/dist/client/index.d.ts +15 -0
- package/dist/client/index.js +16 -0
- package/dist/constant.d.ts +10 -0
- package/dist/constant.js +39 -0
- package/dist/externalVersion.js +17 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +48 -0
- package/dist/locale/en-US.json +22 -0
- package/dist/locale/zh-CN.json +22 -0
- package/dist/node_modules/nodemailer/.gitattributes +6 -0
- package/dist/node_modules/nodemailer/.ncurc.js +7 -0
- package/dist/node_modules/nodemailer/.prettierrc.js +8 -0
- package/dist/node_modules/nodemailer/LICENSE +16 -0
- package/dist/node_modules/nodemailer/SECURITY.txt +22 -0
- package/dist/node_modules/nodemailer/lib/addressparser/index.js +313 -0
- package/dist/node_modules/nodemailer/lib/base64/index.js +142 -0
- package/dist/node_modules/nodemailer/lib/dkim/index.js +251 -0
- package/dist/node_modules/nodemailer/lib/dkim/message-parser.js +155 -0
- package/dist/node_modules/nodemailer/lib/dkim/relaxed-body.js +154 -0
- package/dist/node_modules/nodemailer/lib/dkim/sign.js +117 -0
- package/dist/node_modules/nodemailer/lib/fetch/cookies.js +281 -0
- package/dist/node_modules/nodemailer/lib/fetch/index.js +274 -0
- package/dist/node_modules/nodemailer/lib/json-transport/index.js +82 -0
- package/dist/node_modules/nodemailer/lib/mail-composer/index.js +565 -0
- package/dist/node_modules/nodemailer/lib/mailer/index.js +427 -0
- package/dist/node_modules/nodemailer/lib/mailer/mail-message.js +315 -0
- package/dist/node_modules/nodemailer/lib/mime-funcs/index.js +625 -0
- package/dist/node_modules/nodemailer/lib/mime-funcs/mime-types.js +2102 -0
- package/dist/node_modules/nodemailer/lib/mime-node/index.js +1305 -0
- package/dist/node_modules/nodemailer/lib/mime-node/last-newline.js +33 -0
- package/dist/node_modules/nodemailer/lib/mime-node/le-unix.js +43 -0
- package/dist/node_modules/nodemailer/lib/mime-node/le-windows.js +52 -0
- package/dist/node_modules/nodemailer/lib/nodemailer.js +1 -0
- package/dist/node_modules/nodemailer/lib/qp/index.js +219 -0
- package/dist/node_modules/nodemailer/lib/sendmail-transport/index.js +210 -0
- package/dist/node_modules/nodemailer/lib/ses-transport/index.js +349 -0
- package/dist/node_modules/nodemailer/lib/shared/index.js +638 -0
- package/dist/node_modules/nodemailer/lib/smtp-connection/data-stream.js +108 -0
- package/dist/node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js +143 -0
- package/dist/node_modules/nodemailer/lib/smtp-connection/index.js +1812 -0
- package/dist/node_modules/nodemailer/lib/smtp-pool/index.js +648 -0
- package/dist/node_modules/nodemailer/lib/smtp-pool/pool-resource.js +253 -0
- package/dist/node_modules/nodemailer/lib/smtp-transport/index.js +416 -0
- package/dist/node_modules/nodemailer/lib/stream-transport/index.js +135 -0
- package/dist/node_modules/nodemailer/lib/well-known/index.js +47 -0
- package/dist/node_modules/nodemailer/lib/well-known/services.json +338 -0
- package/dist/node_modules/nodemailer/lib/xoauth2/index.js +376 -0
- package/dist/node_modules/nodemailer/package.json +1 -0
- package/dist/server/index.d.ts +9 -0
- package/dist/server/index.js +42 -0
- package/dist/server/mail-server.d.ts +14 -0
- package/dist/server/mail-server.js +78 -0
- package/dist/server/plugin.d.ts +19 -0
- package/dist/server/plugin.js +69 -0
- package/package.json +23 -0
- package/server.d.ts +2 -0
- package/server.js +1 -0
- package/tsconfig.json +7 -0
|
@@ -0,0 +1,33 @@
|
|
|
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;
|
|
@@ -0,0 +1,43 @@
|
|
|
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;
|
|
@@ -0,0 +1,52 @@
|
|
|
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;
|