Skip to content

Commit

Permalink
Update packages
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenwdv committed Aug 15, 2022
1 parent 578aaa0 commit 59ebbe7
Show file tree
Hide file tree
Showing 4 changed files with 752 additions and 152 deletions.
33 changes: 18 additions & 15 deletions crawler.d.ts
Expand Up @@ -11,23 +11,26 @@ declare namespace crawl {
type CrawlOptions = {
collectors?: import('./collectors/BaseCollector')[];
log?: (...args: any[]) => void;
filterOutFirstParty?: boolean;
emulateMobile?: boolean;
emulateUserAgent?: boolean;
proxyHost?: string;
browserContext?: puppeteer.BrowserContext;
runInEveryFrame?: () => void;
executablePath?: string;
maxLoadTimeMs?: number;
extraExecutionTimeMs?: number;
maxCollectionTimeMs?: number;
filterOutFirstParty?: boolean | undefined;
emulateMobile?: boolean | undefined;
emulateUserAgent?: boolean | undefined;
proxyHost?: string | undefined;
browserContext?: puppeteer.BrowserContext | undefined;
runInEveryFrame?: (() => void) | undefined;
executablePath?: string | undefined;
maxLoadTimeMs?: number | undefined;
extraExecutionTimeMs?: number | undefined;
/**
* 0 to disable overall timeout
*/
maxCollectionTimeMs?: number | undefined;
collectorFlags?: {
[x: string]: boolean;
};
headed?: boolean;
devtools?: boolean;
keepOpen?: boolean;
throwCollectorErrors?: boolean;
} | undefined;
headed?: boolean | undefined;
devtools?: boolean | undefined;
keepOpen?: boolean | undefined;
throwCollectorErrors?: boolean | undefined;
};
type CollectResult = {
/**
Expand Down
3 changes: 2 additions & 1 deletion helpers/wait.d.ts
@@ -1,6 +1,7 @@
export = wait;
/**
* @param {Promise<any>} promise
* @param {number} maxMs
* @param {number} maxMs max running time, 0 to disable timeout
* @returns {Promise<any>}
*/
declare function wait(promise: Promise<any>, maxMs: number): Promise<any>;

0 comments on commit 59ebbe7

Please sign in to comment.