@stacksjs/email 0.52.10 → 0.56.3
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/dist/index.mjs +13 -14
- package/package.json +23 -23
package/dist/index.mjs
CHANGED
|
@@ -12,20 +12,19 @@ import { NodemailerProvider } from '@novu/nodemailer';
|
|
|
12
12
|
import { PostmarkEmailProvider } from '@novu/postmark';
|
|
13
13
|
import { EmailJsProvider } from '@novu/emailjs';
|
|
14
14
|
|
|
15
|
-
const email
|
|
15
|
+
const email = notification.email;
|
|
16
16
|
const config$1 = {
|
|
17
|
-
email
|
|
17
|
+
email
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
const maizzleConfig = {
|
|
21
21
|
__proto__: null,
|
|
22
22
|
default: config$1,
|
|
23
|
-
email: email
|
|
23
|
+
email: email
|
|
24
24
|
};
|
|
25
25
|
|
|
26
|
-
const email = notification.email;
|
|
27
26
|
const config = {
|
|
28
|
-
...email?.build,
|
|
27
|
+
// ...email?.build,
|
|
29
28
|
theme: {
|
|
30
29
|
screens: {
|
|
31
30
|
sm: "480px",
|
|
@@ -89,7 +88,7 @@ const env$7 = notification.email;
|
|
|
89
88
|
const service$7 = notification.email?.drivers.sendgrid;
|
|
90
89
|
const driver = new SendgridEmailProvider({
|
|
91
90
|
apiKey: service$7?.key || "",
|
|
92
|
-
from: env$7?.from || "",
|
|
91
|
+
from: env$7?.from.address || "",
|
|
93
92
|
senderName: service$7?.senderName || ""
|
|
94
93
|
});
|
|
95
94
|
async function send$7(options, css) {
|
|
@@ -108,7 +107,7 @@ const provider$6 = new MailgunEmailProvider({
|
|
|
108
107
|
apiKey: service$6?.key || "",
|
|
109
108
|
domain: service$6?.domain || "",
|
|
110
109
|
username: service$6?.username || "",
|
|
111
|
-
from: env$6?.from || ""
|
|
110
|
+
from: env$6?.from.address || ""
|
|
112
111
|
});
|
|
113
112
|
async function send$6(options, css) {
|
|
114
113
|
return send$8(options, provider$6, "Mailgun", css);
|
|
@@ -125,8 +124,8 @@ const service$5 = notification.email?.drivers.mailjet;
|
|
|
125
124
|
const provider$5 = new MailjetEmailProvider({
|
|
126
125
|
apiKey: service$5?.key || "",
|
|
127
126
|
apiSecret: service$5?.secret || "",
|
|
128
|
-
from: env$5?.from || "",
|
|
129
|
-
senderName: env$5?.from || ""
|
|
127
|
+
from: env$5?.from.address || "",
|
|
128
|
+
senderName: env$5?.from.name || ""
|
|
130
129
|
// look into what exactly this stands for
|
|
131
130
|
});
|
|
132
131
|
async function send$5(options, css) {
|
|
@@ -143,7 +142,7 @@ const env$4 = notification.email;
|
|
|
143
142
|
const service$4 = notification.email?.drivers.mandrill;
|
|
144
143
|
const provider$4 = new MandrillProvider({
|
|
145
144
|
apiKey: service$4?.key || "",
|
|
146
|
-
from: env$4?.from || ""
|
|
145
|
+
from: env$4?.from.address || ""
|
|
147
146
|
});
|
|
148
147
|
async function send$4(options, css) {
|
|
149
148
|
return send$8(options, provider$4, "Mandrill", css);
|
|
@@ -159,7 +158,7 @@ const env$3 = notification.email;
|
|
|
159
158
|
const service$3 = notification.email?.drivers.netcore;
|
|
160
159
|
const provider$3 = new NetCoreProvider({
|
|
161
160
|
apiKey: service$3?.key || "",
|
|
162
|
-
from: env$3?.from || ""
|
|
161
|
+
from: env$3?.from.address || ""
|
|
163
162
|
});
|
|
164
163
|
async function send$3(options, css) {
|
|
165
164
|
return send$8(options, provider$3, "Netcore", css);
|
|
@@ -174,7 +173,7 @@ const netcore = {
|
|
|
174
173
|
const env$2 = notification.email;
|
|
175
174
|
const service$2 = notification.email?.drivers.nodemailer;
|
|
176
175
|
const provider$2 = new NodemailerProvider({
|
|
177
|
-
from: env$2?.from || "",
|
|
176
|
+
from: env$2?.from.address || "",
|
|
178
177
|
host: service$2?.host || "",
|
|
179
178
|
user: service$2?.user,
|
|
180
179
|
password: service$2?.password,
|
|
@@ -195,7 +194,7 @@ const env$1 = notification.email;
|
|
|
195
194
|
const service$1 = notification.email?.drivers.postmark;
|
|
196
195
|
const provider$1 = new PostmarkEmailProvider({
|
|
197
196
|
apiKey: service$1?.key || "",
|
|
198
|
-
from: env$1?.from || ""
|
|
197
|
+
from: env$1?.from.address || ""
|
|
199
198
|
});
|
|
200
199
|
async function send$1(options, css) {
|
|
201
200
|
return send$8(options, provider$1, "Postmark", css);
|
|
@@ -214,7 +213,7 @@ const ses = {
|
|
|
214
213
|
const env = notification.email;
|
|
215
214
|
const service = notification.email?.drivers.emailjs;
|
|
216
215
|
const provider = new EmailJsProvider({
|
|
217
|
-
from: env?.from || "",
|
|
216
|
+
from: env?.from.address || "",
|
|
218
217
|
host: service?.host || "",
|
|
219
218
|
user: service?.user,
|
|
220
219
|
password: service?.password,
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/email",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"packageManager": "pnpm@8.5
|
|
4
|
+
"version": "0.56.3",
|
|
5
|
+
"packageManager": "pnpm@8.6.5",
|
|
6
6
|
"description": "The Stacks Email integration. Painlessly create & manage your inboxes, templates, and send emails.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"license": "MIT",
|
|
@@ -47,31 +47,31 @@
|
|
|
47
47
|
"README.md"
|
|
48
48
|
],
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@maizzle/framework": "^4.4.
|
|
51
|
-
"@novu/emailjs": "^0.
|
|
52
|
-
"@novu/mailgun": "^0.
|
|
53
|
-
"@novu/mailjet": "^0.
|
|
54
|
-
"@novu/mandrill": "^0.
|
|
55
|
-
"@novu/netcore": "^0.
|
|
56
|
-
"@novu/node": "^0.
|
|
57
|
-
"@novu/nodemailer": "^0.
|
|
58
|
-
"@novu/postmark": "^0.
|
|
59
|
-
"@novu/sendgrid": "^0.
|
|
60
|
-
"@novu/ses": "^0.
|
|
61
|
-
"@novu/stateless": "^0.
|
|
62
|
-
"@stacksjs/cli": "0.
|
|
63
|
-
"@stacksjs/
|
|
64
|
-
"@stacksjs/
|
|
65
|
-
"@stacksjs/
|
|
50
|
+
"@maizzle/framework": "^4.4.6",
|
|
51
|
+
"@novu/emailjs": "^0.16.1",
|
|
52
|
+
"@novu/mailgun": "^0.16.1",
|
|
53
|
+
"@novu/mailjet": "^0.16.1",
|
|
54
|
+
"@novu/mandrill": "^0.16.1",
|
|
55
|
+
"@novu/netcore": "^0.16.1",
|
|
56
|
+
"@novu/node": "^0.16.1",
|
|
57
|
+
"@novu/nodemailer": "^0.16.1",
|
|
58
|
+
"@novu/postmark": "^0.16.1",
|
|
59
|
+
"@novu/sendgrid": "^0.16.1",
|
|
60
|
+
"@novu/ses": "^0.16.1",
|
|
61
|
+
"@novu/stateless": "^0.16.1",
|
|
62
|
+
"@stacksjs/cli": "0.56.3",
|
|
63
|
+
"@stacksjs/types": "0.56.3",
|
|
64
|
+
"@stacksjs/config": "0.56.3",
|
|
65
|
+
"@stacksjs/error-handling": "0.56.3"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@stacksjs/cli": "0.
|
|
69
|
-
"@stacksjs/error-handling": "0.
|
|
70
|
-
"@stacksjs/logging": "0.
|
|
68
|
+
"@stacksjs/cli": "0.56.3",
|
|
69
|
+
"@stacksjs/error-handling": "0.56.3",
|
|
70
|
+
"@stacksjs/logging": "0.56.3"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@stacksjs/development": "0.
|
|
74
|
-
"@stacksjs/types": "0.
|
|
73
|
+
"@stacksjs/development": "0.56.3",
|
|
74
|
+
"@stacksjs/types": "0.56.3"
|
|
75
75
|
},
|
|
76
76
|
"scripts": {
|
|
77
77
|
"build": "unbuild",
|