refactor: dependency updates

This commit is contained in:
Rainer Killinger
2026-10-19 17:11:46 +02:00
parent 6d782ecb10
commit e45b8933ff
8 changed files with 377 additions and 473 deletions
+2 -3
View File
@@ -28,10 +28,9 @@
"test": "c8 mocha"
},
"dependencies": {
"@types/nodemailer": "8.0.2",
"chalk": "5.2.0",
"flatted": "3.2.7",
"nodemailer": "8.0.11"
"flatted": "3.4.4",
"nodemailer": "10.1.7"
},
"devDependencies": {
"@openstapps/eslint-config": "workspace:*",
+4 -4
View File
@@ -312,19 +312,19 @@ export class SMTP extends VerifiableTransport {
*/
public async sendMail(mail: SendMailOptions): Promise<string> {
// info is the response of the smtp server
let info = await this.transportAgent.sendMail(mail);
const info = await this.transportAgent.sendMail(mail);
// it can be undefined (empty response)
if (info === undefined) {
info = 'Successfully sent mail';
(info['message'] as string) = 'Successfully sent mail';
}
// or not of type string
if (typeof info !== 'string') {
info = JSON.stringify(info);
(info.message as string) = JSON.stringify(info.message);
}
return info;
return info.message;
}
/**