mirror of
https://github.com/webrecorder/browsertrix-crawler.git
synced 2025-10-19 06:23:16 +00:00

This adds prettier to the repo, and sets up the pre-commit hook to auto-format as well as lint. Also updates ignores files to exclude crawls, test-crawls, scratch, dist as needed.
15 lines
283 B
TypeScript
15 lines
283 B
TypeScript
import { Page } from "puppeteer-core";
|
|
import { PageState } from "./util/state.js";
|
|
import { Crawler } from "./crawler.js";
|
|
|
|
export default async ({
|
|
data,
|
|
page,
|
|
crawler,
|
|
}: {
|
|
data: PageState;
|
|
page: Page;
|
|
crawler: Crawler;
|
|
}) => {
|
|
await crawler.loadPage(page, data);
|
|
};
|