Skip to content

update dependencies #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9,950 changes: 3,678 additions & 6,272 deletions checker-cheerio/package-lock.json

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions checker-cheerio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
},
"dependencies": {
"apify": "^3.1.0",
"crawlee": "^3.1",
"cheerio": "^1.0.0-rc.10"
"crawlee": "^3.1"
},
"devDependencies": {
"@apify/eslint-config-ts": "^0.2.3",
Expand All @@ -18,7 +17,7 @@
"@typescript-eslint/parser": "^5.32.0",
"eslint": "^8.20.0",
"ts-node": "^10.9.1",
"typescript": "^4.8"
"typescript": "^5.0"
},
"scripts": {
"start": "npm run start:dev",
Expand Down
10,171 changes: 3,915 additions & 6,256 deletions checker-playwright/package-lock.json

Large diffs are not rendered by default.

12 changes: 10 additions & 2 deletions checker-playwright/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"apify": "^3.0.0",
"crawlee": "^3.0.0",
"playwright": "*",
"cheerio": "^1.0.0-rc.10"
"cheerio": "^1.0.0"
},
"devDependencies": {
"@apify/eslint-config-ts": "^0.2.3",
Expand All @@ -19,7 +19,15 @@
"@typescript-eslint/parser": "^5.32.0",
"eslint": "^8.20.0",
"ts-node": "^10.9.1",
"typescript": "4.7.4"
"typescript": "^5.0"
},
"//": [
"(this is a comment btw, see https://stackoverflow.com/a/14221781/7292139 :D)",
"the override below is needed due to https://github.com/inikulin/parse5/issues/1481",
"when that issue is fixed, the override can be removed hopefully"
],
"overrides": {
"parse5": "<7.3.0"
},
"scripts": {
"start": "npm run start:dev",
Expand Down
2 changes: 1 addition & 1 deletion checker-playwright/src/handlePage.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Actor } from 'apify';
import Cheerio from 'cheerio';
import * as Cheerio from 'cheerio';

import { PseudoUrl } from 'crawlee';
import type { RequestQueue } from 'apify';
Expand Down
10,845 changes: 4,365 additions & 6,480 deletions checker-puppeteer/package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions checker-puppeteer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"apify": "^3.0.0",
"crawlee": "^3.0.0",
"puppeteer": "*",
"cheerio": "^1.0.0-rc.10"
"cheerio": "^1.0.0"
},
"devDependencies": {
"@apify/eslint-config-ts": "^0.2.3",
Expand All @@ -19,7 +19,7 @@
"@typescript-eslint/parser": "^5.32.0",
"eslint": "^8.20.0",
"ts-node": "^10.9.1",
"typescript": "4.7.4"
"typescript": "^5.0"
},
"scripts": {
"start": "npm run start:dev",
Expand Down
6 changes: 3 additions & 3 deletions checker-puppeteer/src/handlePage.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Actor } from 'apify';
import Cheerio from 'cheerio';
import * as Cheerio from 'cheerio';
import { testHtml } from './checkers.js';
import { puppeteerUtils, PseudoUrl } from 'crawlee';
import { puppeteerUtils, PseudoUrl, sleep } from 'crawlee';

import type { RequestQueue } from 'apify';
import type { PuppeteerCrawlingContext, RequestOptions } from 'crawlee';
Expand All @@ -23,7 +23,7 @@ export async function handlePage(
// We wait for number in ms or a selector
const maybeNumber = Number(waitFor);
if (maybeNumber || maybeNumber === 0) {
await page.waitForTimeout(maybeNumber);
await sleep(maybeNumber);
} else {
await page.waitForSelector(waitFor);
}
Expand Down
2 changes: 1 addition & 1 deletion checker-puppeteer/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Actor.main(async () => {

// Log the input
// Log the input
log.info('Input provided:');
log.debug('Input provided:');
log.debug(inspect(input, false, 4));

log.info('Running a Puppeteer Checker.');
Expand Down