@crawlee/browser-pool 4.0.0-beta.243 → 4.0.0-beta.245
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -37,7 +37,7 @@ export class BrowserPlugin {
|
|
|
37
37
|
this.log = serviceLocator.getLogger().child({ prefix: 'BrowserPool' });
|
|
38
38
|
this.library = library;
|
|
39
39
|
this.launchOptions = launchOptions;
|
|
40
|
-
this.proxyUrl = proxyUrl && new URL(proxyUrl).href.
|
|
40
|
+
this.proxyUrl = proxyUrl && new URL(proxyUrl).href.replace(/\/$/, '');
|
|
41
41
|
this.userDataDir = userDataDir;
|
|
42
42
|
this.useIncognitoPages = useIncognitoPages;
|
|
43
43
|
this.browserPerProxy = browserPerProxy;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crawlee/browser-pool",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.245",
|
|
4
4
|
"description": "Rotate multiple browsers using popular automation libraries such as Playwright or Puppeteer.",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=22.13.0"
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@apify/timeout": "^1.0.1",
|
|
34
|
-
"@crawlee/core": "4.0.0-beta.
|
|
35
|
-
"@crawlee/types": "4.0.0-beta.
|
|
36
|
-
"@crawlee/utils": "4.0.0-beta.
|
|
34
|
+
"@crawlee/core": "4.0.0-beta.245",
|
|
35
|
+
"@crawlee/types": "4.0.0-beta.245",
|
|
36
|
+
"@crawlee/utils": "4.0.0-beta.245",
|
|
37
37
|
"fingerprint-generator": "^2.1.68",
|
|
38
38
|
"fingerprint-injector": "^2.1.68",
|
|
39
39
|
"lodash.merge": "^4.6.2",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "9d9b1e90b1337f40674c00a52aa75e3ed46c9b58"
|
|
68
68
|
}
|
|
@@ -91,7 +91,7 @@ export class PlaywrightPlugin extends BrowserPlugin {
|
|
|
91
91
|
if (proxyUrl) {
|
|
92
92
|
const url = new URL(proxyUrl);
|
|
93
93
|
launchOptions.proxy = {
|
|
94
|
-
server: url.
|
|
94
|
+
server: `${url.protocol}//${url.host}`,
|
|
95
95
|
username: decodeURIComponent(url.username),
|
|
96
96
|
password: decodeURIComponent(url.password),
|
|
97
97
|
};
|