@veloxts/mail 0.8.2 → 0.9.0
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/plugin.js +4 -1
- package/package.json +14 -14
package/dist/plugin.js
CHANGED
|
@@ -59,9 +59,12 @@ export function mailPlugin(options = {}) {
|
|
|
59
59
|
});
|
|
60
60
|
// Decorate the request with mail manager
|
|
61
61
|
fastify.decorateRequest('mail', undefined);
|
|
62
|
-
// Add mail to request
|
|
62
|
+
// Add mail to request and procedure ctx
|
|
63
63
|
fastify.addHook('onRequest', async (request) => {
|
|
64
64
|
request.mail = mailManager;
|
|
65
|
+
if (request.context) {
|
|
66
|
+
request.context.mail = mailManager;
|
|
67
|
+
}
|
|
65
68
|
});
|
|
66
69
|
// Close mail on server shutdown
|
|
67
70
|
fastify.addHook('onClose', async () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veloxts/mail",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "Email templating and sending for VeloxTS framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -22,25 +22,25 @@
|
|
|
22
22
|
"GUIDE.md"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@react-email/components": "1.0.
|
|
26
|
-
"@react-email/render": "2.0.
|
|
25
|
+
"@react-email/components": "1.0.12",
|
|
26
|
+
"@react-email/render": "2.0.7",
|
|
27
27
|
"fastify-plugin": "5.1.0",
|
|
28
|
-
"nodemailer": "8.0.
|
|
29
|
-
"resend": "6.
|
|
28
|
+
"nodemailer": "8.0.6",
|
|
29
|
+
"resend": "6.12.2",
|
|
30
30
|
"zod": "4.3.6",
|
|
31
|
-
"@veloxts/core": "0.
|
|
31
|
+
"@veloxts/core": "0.9.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@biomejs/biome": "2.4.
|
|
35
|
-
"@types/node": "25.
|
|
36
|
-
"@types/nodemailer": "
|
|
34
|
+
"@biomejs/biome": "2.4.13",
|
|
35
|
+
"@types/node": "25.6.0",
|
|
36
|
+
"@types/nodemailer": "8.0.0",
|
|
37
37
|
"@types/react": "19.2.14",
|
|
38
|
-
"@vitest/coverage-v8": "4.1.
|
|
39
|
-
"fastify": "5.8.
|
|
40
|
-
"react": "19.2.
|
|
38
|
+
"@vitest/coverage-v8": "4.1.5",
|
|
39
|
+
"fastify": "5.8.5",
|
|
40
|
+
"react": "19.2.5",
|
|
41
41
|
"typescript": "5.9.3",
|
|
42
|
-
"vitest": "4.1.
|
|
43
|
-
"@veloxts/testing": "0.
|
|
42
|
+
"vitest": "4.1.5",
|
|
43
|
+
"@veloxts/testing": "0.9.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"fastify": "^5.0.0",
|