@crawlee/browser-pool
Advanced tools
Comparing version 3.0.0-beta.69 to 3.0.0-beta.70
@@ -349,3 +349,3 @@ "use strict"; | ||
async _createPageForBrowser(pageId, browserController, pageOptions = {}, proxyUrl) { | ||
// TODO This is needed for concurrent newPage calls to wait for the browser launch. | ||
// This is needed for concurrent newPage calls to wait for the browser launch. | ||
// It's not ideal though, we need to come up with a better API. | ||
@@ -368,4 +368,3 @@ // eslint-disable-next-line dot-notation -- accessing private property | ||
this.pageToBrowserController.set(page, browserController); | ||
// TODO if you synchronously trigger a lot of page launches, browser | ||
// will not get retired soon enough. Not sure if it's a problem, let's monitor it. | ||
// if you synchronously trigger a lot of page launches, browser will not get retired soon enough. Not sure if it's a problem, let's monitor it. | ||
if (browserController.totalPages >= this.retireBrowserAfterPageCount) { | ||
@@ -382,3 +381,3 @@ this.retireBrowserController(browserController); | ||
(0, timeout_1.tryCancel)(); | ||
this.emit("pageCreated" /* BROWSER_POOL_EVENTS.PAGE_CREATED */, page); // @TODO: CONSIDER renaming this event. | ||
this.emit("pageCreated" /* BROWSER_POOL_EVENTS.PAGE_CREATED */, page); | ||
return page; | ||
@@ -385,0 +384,0 @@ } |
{ | ||
"name": "@crawlee/browser-pool", | ||
"version": "3.0.0-beta.69", | ||
"version": "3.0.0-beta.70", | ||
"description": "Rotate multiple browsers using popular automation libraries such as Playwright or Puppeteer.", | ||
@@ -41,3 +41,3 @@ "engines": { | ||
"@apify/timeout": "^0.3.0", | ||
"@crawlee/types": "^3.0.0-beta.69", | ||
"@crawlee/types": "^3.0.0-beta.70", | ||
"fingerprint-generator": "^2.0.0-dev.5", | ||
@@ -44,0 +44,0 @@ "fingerprint-injector": "^2.0.0-dev.5", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
302834
2727