mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 08:32:52 +08:00
fix(ssl-certificate-checker): adjust method interfaces to follow plugin api (#4799)
Co-authored-by: Fabio Martino <FMARTIN1@autopistas.com>
This commit is contained in:
parent
9b950ebc46
commit
0c39ec959a
@ -42,7 +42,7 @@ export class SSLCertificateChecker extends AwesomeCordovaNativePlugin {
|
|||||||
* @return {Promise<void>} Returns a promise that resolves if the certificate is valid, otherwise rejects with an error.
|
* @return {Promise<void>} Returns a promise that resolves if the certificate is valid, otherwise rejects with an error.
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
check(serverURL: string, allowedFingerprint: string): Promise<void> {
|
check(serverURL: string, allowedFingerprint: string | string[]): Promise<void> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -56,7 +56,7 @@ export class SSLCertificateChecker extends AwesomeCordovaNativePlugin {
|
|||||||
* @deprecated This function is considered insecure.
|
* @deprecated This function is considered insecure.
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
checkInCertChain(serverURL: string, allowedFingerprint: string): Promise<void> {
|
checkInCertChain(serverURL: string, allowedFingerprint: string | string[]): Promise<void> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user