Skip to content

Commit

Permalink
fix: patch puppeteer-cluster for puppeteer v22 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Feb 29, 2024
1 parent f03d543 commit fa274d8
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 2 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@
}
}
}
},
"patchedDependencies": {
"[email protected]": "patches/[email protected]"
}
}
}
26 changes: 26 additions & 0 deletions patches/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
diff --git a/dist/concurrency/built-in/Browser.js b/dist/concurrency/built-in/Browser.js
index 10d7d66dc4d5ad4a63ff27f0f3bf44ef754e44d3..8d22c1e9976efe46cad086bfc0d38329216492cc 100644
--- a/dist/concurrency/built-in/Browser.js
+++ b/dist/concurrency/built-in/Browser.js
@@ -29,7 +29,7 @@ class Browser extends ConcurrencyImplementation_1.default {
return {
jobInstance: () => __awaiter(this, void 0, void 0, function* () {
yield (0, util_1.timeoutExecute)(BROWSER_TIMEOUT, (() => __awaiter(this, void 0, void 0, function* () {
- context = yield chrome.createIncognitoBrowserContext();
+ context = yield chrome.createBrowserContext();
page = yield context.newPage();
}))());
return {
diff --git a/dist/concurrency/built-in/Context.js b/dist/concurrency/built-in/Context.js
index 7332024a77324a1d0ff8f88b4d220f55525938a5..86a969ed7e4793c762b40d804bb8ee4d5fe13398 100644
--- a/dist/concurrency/built-in/Context.js
+++ b/dist/concurrency/built-in/Context.js
@@ -14,7 +14,7 @@ class Context extends SingleBrowserImplementation_1.default {
createResources() {
return __awaiter(this, void 0, void 0, function* () {
const context = yield this.browser
- .createIncognitoBrowserContext();
+ .createBrowserContext();
const page = yield context.newPage();
return {
context,
10 changes: 8 additions & 2 deletions pnpm-lock.yaml

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

0 comments on commit fa274d8

Please sign in to comment.