From 713183e26bf5f9886af1e9b072959eef42613d66 Mon Sep 17 00:00:00 2001 From: marlou Date: Wed, 15 May 2024 13:29:59 +0200 Subject: [PATCH] resolve Deno.startTls type check breaking change from deno 1.42.2 (fixes #86) --- client/basic/client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/basic/client.ts b/client/basic/client.ts index bef8663..ba223b4 100644 --- a/client/basic/client.ts +++ b/client/basic/client.ts @@ -336,7 +336,7 @@ export class SMTPClient { await this.#connection.cleanupForStartTLS(); - const conn = await Deno.startTls(this.#connection.conn, { + const conn = await Deno.startTls(this.#connection.conn as Deno.TcpConn, { hostname: this.config.connection.hostname, }); this.#connection = new SMTPConnection(conn, this.config);