From 0c39ec959ab04e02065a98685f5293346f5939ac Mon Sep 17 00:00:00 2001 From: Fabio Martino Date: Thu, 11 Jul 2024 07:03:50 +0100 Subject: [PATCH] fix(ssl-certificate-checker): adjust method interfaces to follow plugin api (#4799) Co-authored-by: Fabio Martino --- .../plugins/ssl-certificate-checker/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/@awesome-cordova-plugins/plugins/ssl-certificate-checker/index.ts b/src/@awesome-cordova-plugins/plugins/ssl-certificate-checker/index.ts index 5ff621914d..76f8f0fe6b 100644 --- a/src/@awesome-cordova-plugins/plugins/ssl-certificate-checker/index.ts +++ b/src/@awesome-cordova-plugins/plugins/ssl-certificate-checker/index.ts @@ -42,7 +42,7 @@ export class SSLCertificateChecker extends AwesomeCordovaNativePlugin { * @return {Promise} Returns a promise that resolves if the certificate is valid, otherwise rejects with an error. */ @Cordova() - check(serverURL: string, allowedFingerprint: string): Promise { + check(serverURL: string, allowedFingerprint: string | string[]): Promise { return; } @@ -56,7 +56,7 @@ export class SSLCertificateChecker extends AwesomeCordovaNativePlugin { * @deprecated This function is considered insecure. */ @Cordova() - checkInCertChain(serverURL: string, allowedFingerprint: string): Promise { + checkInCertChain(serverURL: string, allowedFingerprint: string | string[]): Promise { return; } }