Skip to content

Commit

Permalink
fix(types): set compatibility with puppeteer v10
Browse files Browse the repository at this point in the history
resolve #33
  • Loading branch information
Fiszcz committed Jun 22, 2021
1 parent d3adbbd commit 45909b9
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 39 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ jobs:
version: '7'
- library: 'puppeteer'
version: '8'
- library: 'puppeteer'
version: '9'
- library: 'puppeteer'
version: '10'
- library: 'playwright'
version: '1.10'
steps:
Expand Down
89 changes: 52 additions & 37 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"playwright": "^1.10.0",
"prettier": "^2.0.5",
"pretty-quick": "^1.10.0",
"puppeteer": "^8.0.0",
"puppeteer": "^10.0.0",
"semantic-release": "^17.0.7",
"ts-jest": "^24.0.1",
"typescript": "^3.8.3"
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/PuppeteerController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export interface PuppeteerRequest {
url(): string;
} | null;
headers(): Record<string, string>;
method(): 'GET' | 'POST' | 'PATCH' | 'PUT' | 'DELETE' | 'OPTIONS';
method(): string;
postData(): string | undefined;
resourceType():
| 'document'
Expand Down

0 comments on commit 45909b9

Please sign in to comment.