feat: create blocker for Interpreter

This commit is contained in:
karishmas6
2024-08-21 05:06:34 +05:30
parent 6de92bfe4f
commit dd119955d2

View File

@@ -1,5 +1,7 @@
/* eslint-disable no-await-in-loop, no-restricted-syntax */
import { Page, PageScreenshotOptions } from 'playwright';
import { fullLists, PlaywrightBlocker, Request } from '@cliqz/adblocker-playwright';
import fetch from 'cross-fetch';
import path from 'path';
import { EventEmitter } from 'events';
@@ -46,6 +48,8 @@ export default class Interpreter extends EventEmitter {
private log: typeof log;
private blocker: PlaywrightBlocker | null = null;
constructor(workflow: WorkflowFile, options?: Partial<InterpreterOptions>) {
super();
this.workflow = workflow.workflow;