vasuzex 2.1.33 → 2.1.34

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.
@@ -47,6 +47,9 @@ export class MailManager {
47
47
  */
48
48
  async resolve(name) {
49
49
  const config = this.getConfig(name);
50
+
51
+ console.log('[MailManager] resolve called for mailer:', name);
52
+ console.log('[MailManager] getConfig returned:', JSON.stringify(config, null, 2));
50
53
 
51
54
  if (!config || !config.transport) {
52
55
  throw new Error(`Mailer [${name}] is not configured.`);
@@ -106,6 +109,9 @@ export class MailManager {
106
109
  const nodemailer = await import('nodemailer');
107
110
  const Mailjet = await import('node-mailjet');
108
111
 
112
+ // Debug: Log config keys
113
+ console.log('[MailManager] createMailjetTransport called with config:', JSON.stringify(config, null, 2));
114
+
109
115
  // Validate credentials
110
116
  if (!config.api_key || !config.api_secret) {
111
117
  throw new Error(`Mailjet credentials missing. api_key: ${!!config.api_key}, api_secret: ${!!config.api_secret}`);
@@ -197,7 +203,12 @@ export class MailManager {
197
203
  */
198
204
  getConfig(name) {
199
205
  const mailers = this.app.config('mail.mailers', {});
200
- return mailers[name];
206
+ console.log('[MailManager.getConfig] Looking for mailer:', name);
207
+ console.log('[MailManager.getConfig] Available mailers:', Object.keys(mailers));
208
+ console.log('[MailManager.getConfig] Full mailers config:', JSON.stringify(mailers, null, 2));
209
+ const config = mailers[name];
210
+ console.log('[MailManager.getConfig] Config for', name, ':', JSON.stringify(config, null, 2));
211
+ return config;
201
212
  }
202
213
 
203
214
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vasuzex",
3
- "version": "2.1.33",
3
+ "version": "2.1.34",
4
4
  "description": "Laravel-inspired framework for Node.js monorepos - V2 with optimized dependencies",
5
5
  "type": "module",
6
6
  "main": "./framework/index.js",