@lenne.tech/nest-server 11.14.0 → 11.14.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lenne.tech/nest-server",
3
- "version": "11.14.0",
3
+ "version": "11.14.1",
4
4
  "description": "Modern, fast, powerful Node.js web framework in TypeScript based on Nest with a GraphQL API and a connection to MongoDB (or other databases).",
5
5
  "keywords": [
6
6
  "node",
@@ -168,9 +168,13 @@ export class CoreBetterAuthEmailVerificationService {
168
168
  url = this.buildFrontendVerificationUrl(token);
169
169
  }
170
170
 
171
- // Always log verification URL for development/testing (useful for capturing in tests)
171
+ // Log verification URL in non-production environments for debugging and test capture
172
172
  // Uses console.log directly to ensure reliable capture in test environments (Vitest)
173
173
  // NestJS Logger may buffer output which makes interception unreliable in tests
174
+ if (process.env.NODE_ENV !== 'production') {
175
+ // oxlint-disable-next-line no-console
176
+ console.log(`[EMAIL VERIFICATION] User: ${user.email}, URL: ${url}`);
177
+ }
174
178
 
175
179
  // Brevo template path: send via Brevo transactional API if configured
176
180
  if (this.config.brevoTemplateId && this.brevoService) {