From 36352422e18e130815d8726190a9a3cf6a8f220c Mon Sep 17 00:00:00 2001 From: Johan Westling Date: Fri, 24 May 2024 10:27:43 +0300 Subject: [PATCH 1/2] Fixed missing i in caching_sha2_password --- typings/mysql/lib/Auth.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typings/mysql/lib/Auth.d.ts b/typings/mysql/lib/Auth.d.ts index 13374a9485..1355743c30 100644 --- a/typings/mysql/lib/Auth.d.ts +++ b/typings/mysql/lib/Auth.d.ts @@ -14,7 +14,7 @@ export const authPlugins: { caching_sha2_password: AuthPluginDefinition<{ overrideIsSecure?: boolean; serverPublicKey?: RsaPublicKey | RsaPrivateKey | KeyLike; - jonServerPublicKey?: (data: Buffer) => void; + joinServerPublicKey?: (data: Buffer) => void; }>; mysql_clear_password: AuthPluginDefinition<{ password?: string; From 59b516bebd5f6ecd6d607c7369af6d6988f3b9fe Mon Sep 17 00:00:00 2001 From: Johan Westling Date: Fri, 24 May 2024 12:58:50 +0300 Subject: [PATCH 2/2] Changed joinServerPublicKey to correct onServerPublicKey --- typings/mysql/lib/Auth.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/typings/mysql/lib/Auth.d.ts b/typings/mysql/lib/Auth.d.ts index 1355743c30..c301f41bfe 100644 --- a/typings/mysql/lib/Auth.d.ts +++ b/typings/mysql/lib/Auth.d.ts @@ -14,7 +14,7 @@ export const authPlugins: { caching_sha2_password: AuthPluginDefinition<{ overrideIsSecure?: boolean; serverPublicKey?: RsaPublicKey | RsaPrivateKey | KeyLike; - joinServerPublicKey?: (data: Buffer) => void; + onServerPublicKey?: (data: Buffer) => void; }>; mysql_clear_password: AuthPluginDefinition<{ password?: string; @@ -25,6 +25,6 @@ export const authPlugins: { }>; sha256_password: AuthPluginDefinition<{ serverPublicKey?: RsaPublicKey | RsaPrivateKey | KeyLike; - joinServerPublicKey?: (data: Buffer) => void; + onServerPublicKey?: (data: Buffer) => void; }>; };