Skip to content

Commit

Permalink
Applied changes for new version
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasdondorf committed Mar 17, 2024
1 parent f1325fb commit a8e3d5c
Show file tree
Hide file tree
Showing 4 changed files with 539 additions and 183 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"debug": "^4.3.3"
},
"peerDependencies": {
"puppeteer": ">=1.5.0"
"puppeteer": ">=22.0.0"
},
"devDependencies": {
"@types/debug": "^4.1.7",
Expand All @@ -35,8 +35,8 @@
"coveralls": "^3.1.1",
"express": "^4.17.2",
"jest": "^27.4.7",
"puppeteer": "^13.1.1",
"puppeteer-core": "^13.1.1",
"puppeteer": "^22.5.0",
"puppeteer-core": "^22.5.0",
"tree-kill": "^1.2.2",
"ts-jest": "^27.1.3",
"typescript": "^4.5.5"
Expand Down
2 changes: 1 addition & 1 deletion src/concurrency/built-in/Browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default class Browser extends ConcurrencyImplementation {
return {
jobInstance: async () => {
await timeoutExecute(BROWSER_TIMEOUT, (async () => {
context = await chrome.createIncognitoBrowserContext();
context = await chrome.createBrowserContext();
page = await context.newPage();
})());

Expand Down
2 changes: 1 addition & 1 deletion src/concurrency/built-in/Context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default class Context extends SingleBrowserImplementation {

protected async createResources(): Promise<ResourceData> {
const context = await (this.browser as puppeteer.Browser)
.createIncognitoBrowserContext();
.createBrowserContext();
const page = await context.newPage();
return {
context,
Expand Down

0 comments on commit a8e3d5c

Please sign in to comment.