@veloxts/mail 0.8.3 → 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.
Files changed (2) hide show
  1. package/dist/plugin.js +4 -1
  2. package/package.json +3 -3
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 context
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.8.3",
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",
@@ -28,7 +28,7 @@
28
28
  "nodemailer": "8.0.6",
29
29
  "resend": "6.12.2",
30
30
  "zod": "4.3.6",
31
- "@veloxts/core": "0.8.3"
31
+ "@veloxts/core": "0.9.0"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@biomejs/biome": "2.4.13",
@@ -40,7 +40,7 @@
40
40
  "react": "19.2.5",
41
41
  "typescript": "5.9.3",
42
42
  "vitest": "4.1.5",
43
- "@veloxts/testing": "0.8.3"
43
+ "@veloxts/testing": "0.9.0"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "fastify": "^5.0.0",