| 34 | const decode = (str: string): string => str.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent); |
| 35 | |
| 36 | export interface CapacitorCookiesPlugin { |
| 37 | getCookies(options?: GetCookieOptions): Promise<HttpCookieMap>; |
| 38 | /** |
| 39 | * Write a cookie to the device. |
| 40 | */ |
| 41 | setCookie(options: SetCookieOptions): Promise<void>; |
| 42 | /** |
| 43 | * Delete a cookie from the device. |
| 44 | */ |
| 45 | deleteCookie(options: DeleteCookieOptions): Promise<void>; |
| 46 | /** |
| 47 | * Clear cookies from the device at a given URL. |
| 48 | */ |
| 49 | clearCookies(options: ClearCookieOptions): Promise<void>; |
| 50 | /** |
| 51 | * Clear all cookies on the device. |
| 52 | */ |
| 53 | clearAllCookies(): Promise<void>; |
| 54 | } |
| 55 | |
| 56 | interface HttpCookie { |
| 57 | /** |
no outgoing calls
no test coverage detected