diff --git a/kayle/lib/utils/cdp-blocking.ts b/kayle/lib/utils/cdp-blocking.ts index ef1e906..e7a70d2 100644 --- a/kayle/lib/utils/cdp-blocking.ts +++ b/kayle/lib/utils/cdp-blocking.ts @@ -1,7 +1,7 @@ import { RunnerConf } from "../common"; import { CDPSession, _log } from "../config"; import { adEngine } from "./adblock"; -import { blockedResourcePatterns, skippedResources } from "./resource-ignore"; +import { skippedResources } from "./resource-ignore"; // CDP block list of domains to ignore resources const blockedResourceUrls = Object.keys(skippedResources); @@ -63,7 +63,7 @@ export const sendCDPPageConfigurationEnable = async ( urls: blockedResourceUrls, }), client.send("Fetch.enable", { - patterns: blockedResourcePatterns, + // patterns: blockedResourcePatterns, }), client.send("Page.enable"), client.send("Preload.disable"), diff --git a/kayle/lib/utils/go-to-page.ts b/kayle/lib/utils/go-to-page.ts index ddf2b09..13b4262 100644 --- a/kayle/lib/utils/go-to-page.ts +++ b/kayle/lib/utils/go-to-page.ts @@ -35,7 +35,9 @@ export const goToPage = async ( o: Partial ): Promise => { await setCDPIntercept(o); + const { page, timeout, waitUntil, origin } = o; + let valid = false; try { diff --git a/kayle/package.json b/kayle/package.json index 88bb689..f86562e 100644 --- a/kayle/package.json +++ b/kayle/package.json @@ -1,6 +1,6 @@ { "name": "kayle", - "version": "0.8.2", + "version": "0.8.3", "description": "Extremely fast and accurate accessibility engine built for any headless tool like playwright or puppeteer.", "main": "./build/index.js", "keywords": [