From ca15bd1e21ff69fa1d7bca7badc98f8a816b6fd3 Mon Sep 17 00:00:00 2001 From: j-mendez Date: Thu, 8 Feb 2024 14:09:29 -0500 Subject: [PATCH] chore(kayle): allow all intercept cdp --- kayle/lib/utils/cdp-blocking.ts | 4 ++-- kayle/lib/utils/go-to-page.ts | 2 ++ kayle/package.json | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/kayle/lib/utils/cdp-blocking.ts b/kayle/lib/utils/cdp-blocking.ts index ef1e906b..e7a70d29 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 ddf2b095..13b4262d 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 88bb6892..f86562e2 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": [