Skip to content

Commit

Permalink
chore(kayle): allow all intercept cdp
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mendez committed Feb 8, 2024
1 parent d7406cc commit 696895e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions kayle/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ type Browser = {
type Target = {};

// dom lifecycles
type LifeCycleEvent =
export type LifeCycleEvent =
| "load"
| "domcontentloaded"
// playwright
Expand All @@ -69,7 +69,7 @@ type LifeCycleEvent =
| "networkidle2";

// wait for options
type WaitForOptions = {
export type WaitForOptions = {
timeout?: number;
waitUntil?: LifeCycleEvent | LifeCycleEvent[] | string;
};
Expand Down
2 changes: 1 addition & 1 deletion kayle/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ export {
sendCDPPageConfigurationEnable,
sendCDPPageConfigurationReset,
} from "./utils/cdp-blocking";
export { setLogging, Standard, RunnerConfig, Runner } from "./config";
export { setLogging, Standard, type RunnerConfig, type Runner, type LifeCycleEvent, type WaitForOptions } from "./config";
export { extractLinks, innateBuilder } from "./wasm";
2 changes: 2 additions & 0 deletions kayle/lib/utils/go-to-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ export const goToPage = async (
o: Partial<RunnerConfig & { html?: string }>
): Promise<boolean> => {
await setCDPIntercept(o);

const { page, timeout, waitUntil, origin } = o;

let valid = false;

try {
Expand Down
2 changes: 1 addition & 1 deletion kayle/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kayle",
"version": "0.8.2",
"version": "0.8.6",
"description": "Extremely fast and accurate accessibility engine built for any headless tool like playwright or puppeteer.",
"main": "./build/index.js",
"keywords": [
Expand Down

0 comments on commit 696895e

Please sign in to comment.