From 232a8b04f6c989a833449465306af0a2d5e55bd0 Mon Sep 17 00:00:00 2001 From: gagik Date: Thu, 17 Oct 2024 10:39:56 +0200 Subject: [PATCH] Readd prototype check --- packages/cli-repl/src/cli-repl.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/cli-repl/src/cli-repl.ts b/packages/cli-repl/src/cli-repl.ts index 18479f05f..db97e18de 100644 --- a/packages/cli-repl/src/cli-repl.ts +++ b/packages/cli-repl/src/cli-repl.ts @@ -1017,11 +1017,12 @@ export class CliRepl implements MongoshIOProvider { } async isTlsKeyFilePasswordMissingURI( - searchParams: unknown + searchParams: ReturnType< + typeof ConnectionString.prototype.typedSearchParams + > ): Promise { - const searchMap = searchParams as Map; - const tlsCertificateKeyFile = searchMap.get('tlsCertificateKeyFile'); - const tlsCertificateKeyFilePassword = searchMap.get( + const tlsCertificateKeyFile = searchParams.get('tlsCertificateKeyFile'); + const tlsCertificateKeyFilePassword = searchParams.get( 'tlsCertificateKeyFilePassword' );