Closed rhanka closed 5 months ago
The recent update enhances the email configuration system by adding a conditional block to set authentication credentials based on the presence of the SMTP_PWD
environment variable. Additionally, a change in the zlib
dependency import was made for improved module resolution.
File Path | Change Summary |
---|---|
backend/.../mail.ts |
Added a conditional block to set email authentication credentials. |
backend/package.json |
Removed the zlib dependency. |
backend/.../processStream.ts |
Updated zlib import to 'node:zlib'. |
backend/.../tsoa.ts |
Added bodyCoercion: true to specOptions for TSOA configuration. |
🐇✨
In the burrow of code, beneath the digital sky,
A tiny tweak was made, oh me, oh my!
When SMTP whispers secrets, do not pry,
For secure are the mails that through the wires fly.
Hop, hop, hurray, for secure mail, we comply! 🎉
🐇✨
backend/src/tsoa.ts (1)
`32-32`: Enabling body coercion in TSOA configuration. This setting allows TSOA to automatically convert request body types based on the API specification, which can simplify controller logic and reduce boilerplate code. Ensure that all controllers properly handle the types they expect to receive.backend/src/processStream.ts (1)
`11-11`: Updated import statement for zlib to 'node:zlib'. This change likely reflects an update in Node.js to encourage explicit module resolution. It's a good practice to specify built-in modules with the 'node:' prefix to avoid conflicts with similarly named modules from npm.
Summary by CodeRabbit