-
-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
39c99dc
commit 0562bd7
Showing
3 changed files
with
67 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,44 @@ | ||
export class Cache { | ||
constructor(browser: any, browserName: any, extensionServer: any, cdp: any); | ||
browser: any; | ||
browserName: any; | ||
extensionServer: any; | ||
cdp: any; | ||
/** | ||
* Clear the browser cache. Will clear browser cache and cookies. | ||
* @private | ||
*/ | ||
clear(): Promise<any>; | ||
private browser; | ||
/** | ||
* Clear the browser cache but keep cookies. | ||
* @private | ||
*/ | ||
clearKeepCookies(): Promise<any>; | ||
private browserName; | ||
/** | ||
* @private | ||
*/ | ||
private extensionServer; | ||
/** | ||
* @private | ||
*/ | ||
private cdp; | ||
/** | ||
* Clears the browser cache. This includes both cache and cookies. | ||
* | ||
* For Firefox, it uses the extensionServer setup with specific options. | ||
* For Chrome and Edge, it uses the Chrome DevTools Protocol (CDP) commands. | ||
* If the browser is not supported, logs an error message. | ||
* | ||
* @async | ||
* @throws Will throw an error if the browser is not supported. | ||
* @returns {Promise<void>} A promise that resolves when the cache and cookies are cleared. | ||
*/ | ||
clear(): Promise<void>; | ||
/** | ||
* Clears the browser cache while keeping the cookies. | ||
* | ||
* For Firefox, it uses the extensionServer setup with specific options. | ||
* For Chrome and Edge, it uses the Chrome DevTools Protocol (CDP) command to clear the cache. | ||
* If the browser is not supported, logs an error message. | ||
* | ||
* @async | ||
* @throws Will throw an error if the browser is not supported. | ||
* @returns {Promise<void>} A promise that resolves when the cache is cleared but cookies are kept. | ||
*/ | ||
clearKeepCookies(): Promise<void>; | ||
} | ||
//# sourceMappingURL=cache.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.