@stacksjs/email 0.53.1 → 0.56.23

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 (2) hide show
  1. package/dist/index.mjs +9 -9
  2. package/package.json +24 -23
package/dist/index.mjs CHANGED
@@ -88,7 +88,7 @@ const env$7 = notification.email;
88
88
  const service$7 = notification.email?.drivers.sendgrid;
89
89
  const driver = new SendgridEmailProvider({
90
90
  apiKey: service$7?.key || "",
91
- from: env$7?.from || "",
91
+ from: env$7?.from.address || "",
92
92
  senderName: service$7?.senderName || ""
93
93
  });
94
94
  async function send$7(options, css) {
@@ -107,7 +107,7 @@ const provider$6 = new MailgunEmailProvider({
107
107
  apiKey: service$6?.key || "",
108
108
  domain: service$6?.domain || "",
109
109
  username: service$6?.username || "",
110
- from: env$6?.from || ""
110
+ from: env$6?.from.address || ""
111
111
  });
112
112
  async function send$6(options, css) {
113
113
  return send$8(options, provider$6, "Mailgun", css);
@@ -124,8 +124,8 @@ const service$5 = notification.email?.drivers.mailjet;
124
124
  const provider$5 = new MailjetEmailProvider({
125
125
  apiKey: service$5?.key || "",
126
126
  apiSecret: service$5?.secret || "",
127
- from: env$5?.from || "",
128
- senderName: env$5?.from || ""
127
+ from: env$5?.from.address || "",
128
+ senderName: env$5?.from.name || ""
129
129
  // look into what exactly this stands for
130
130
  });
131
131
  async function send$5(options, css) {
@@ -142,7 +142,7 @@ const env$4 = notification.email;
142
142
  const service$4 = notification.email?.drivers.mandrill;
143
143
  const provider$4 = new MandrillProvider({
144
144
  apiKey: service$4?.key || "",
145
- from: env$4?.from || ""
145
+ from: env$4?.from.address || ""
146
146
  });
147
147
  async function send$4(options, css) {
148
148
  return send$8(options, provider$4, "Mandrill", css);
@@ -158,7 +158,7 @@ const env$3 = notification.email;
158
158
  const service$3 = notification.email?.drivers.netcore;
159
159
  const provider$3 = new NetCoreProvider({
160
160
  apiKey: service$3?.key || "",
161
- from: env$3?.from || ""
161
+ from: env$3?.from.address || ""
162
162
  });
163
163
  async function send$3(options, css) {
164
164
  return send$8(options, provider$3, "Netcore", css);
@@ -173,7 +173,7 @@ const netcore = {
173
173
  const env$2 = notification.email;
174
174
  const service$2 = notification.email?.drivers.nodemailer;
175
175
  const provider$2 = new NodemailerProvider({
176
- from: env$2?.from || "",
176
+ from: env$2?.from.address || "",
177
177
  host: service$2?.host || "",
178
178
  user: service$2?.user,
179
179
  password: service$2?.password,
@@ -194,7 +194,7 @@ const env$1 = notification.email;
194
194
  const service$1 = notification.email?.drivers.postmark;
195
195
  const provider$1 = new PostmarkEmailProvider({
196
196
  apiKey: service$1?.key || "",
197
- from: env$1?.from || ""
197
+ from: env$1?.from.address || ""
198
198
  });
199
199
  async function send$1(options, css) {
200
200
  return send$8(options, provider$1, "Postmark", css);
@@ -213,7 +213,7 @@ const ses = {
213
213
  const env = notification.email;
214
214
  const service = notification.email?.drivers.emailjs;
215
215
  const provider = new EmailJsProvider({
216
- from: env?.from || "",
216
+ from: env?.from.address || "",
217
217
  host: service?.host || "",
218
218
  user: service?.user,
219
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.53.1",
5
- "packageManager": "pnpm@8.5.1",
4
+ "version": "0.56.23",
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",
@@ -37,6 +37,7 @@
37
37
  "import": "./dist/index.mjs"
38
38
  }
39
39
  },
40
+ "main": "dist/index.mjs",
40
41
  "module": "dist/index.mjs",
41
42
  "types": "dist/index.d.ts",
42
43
  "contributors": [
@@ -47,31 +48,31 @@
47
48
  "README.md"
48
49
  ],
49
50
  "peerDependencies": {
50
- "@maizzle/framework": "^4.4.4",
51
- "@novu/emailjs": "^0.15.0",
52
- "@novu/mailgun": "^0.15.0",
53
- "@novu/mailjet": "^0.15.0",
54
- "@novu/mandrill": "^0.15.0",
55
- "@novu/netcore": "^0.15.0",
56
- "@novu/node": "^0.15.0",
57
- "@novu/nodemailer": "^0.15.0",
58
- "@novu/postmark": "^0.15.0",
59
- "@novu/sendgrid": "^0.15.0",
60
- "@novu/ses": "^0.15.0",
61
- "@novu/stateless": "^0.15.0",
62
- "@stacksjs/cli": "0.53.1",
63
- "@stacksjs/config": "0.53.1",
64
- "@stacksjs/error-handling": "0.53.1",
65
- "@stacksjs/types": "0.53.1"
51
+ "@maizzle/framework": "^4.4.6",
52
+ "@novu/emailjs": "^0.16.2",
53
+ "@novu/mailgun": "^0.16.2",
54
+ "@novu/mailjet": "^0.16.2",
55
+ "@novu/mandrill": "^0.16.2",
56
+ "@novu/netcore": "^0.16.2",
57
+ "@novu/node": "^0.16.2",
58
+ "@novu/nodemailer": "^0.16.2",
59
+ "@novu/postmark": "^0.16.2",
60
+ "@novu/sendgrid": "^0.16.2",
61
+ "@novu/ses": "^0.16.2",
62
+ "@novu/stateless": "^0.16.2",
63
+ "@stacksjs/cli": "0.56.23",
64
+ "@stacksjs/config": "0.56.23",
65
+ "@stacksjs/error-handling": "0.56.23",
66
+ "@stacksjs/types": "0.56.23"
66
67
  },
67
68
  "dependencies": {
68
- "@stacksjs/cli": "0.53.1",
69
- "@stacksjs/error-handling": "0.53.1",
70
- "@stacksjs/logging": "0.53.1"
69
+ "@stacksjs/cli": "0.56.23",
70
+ "@stacksjs/error-handling": "0.56.23",
71
+ "@stacksjs/logging": "0.56.23"
71
72
  },
72
73
  "devDependencies": {
73
- "@stacksjs/development": "0.53.1",
74
- "@stacksjs/types": "0.53.1"
74
+ "@stacksjs/development": "0.56.23",
75
+ "@stacksjs/types": "0.56.23"
75
76
  },
76
77
  "scripts": {
77
78
  "build": "unbuild",