@crawlee/browser-pool 3.17.1-beta.9 → 3.18.1-beta.0
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crawlee/browser-pool",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.18.1-beta.0",
|
|
4
4
|
"description": "Rotate multiple browsers using popular automation libraries such as Playwright or Puppeteer.",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=16.0.0"
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@apify/log": "^2.4.0",
|
|
40
|
-
"@apify/timeout": "^0.
|
|
41
|
-
"@crawlee/core": "3.
|
|
42
|
-
"@crawlee/types": "3.
|
|
40
|
+
"@apify/timeout": "^0.4.0",
|
|
41
|
+
"@crawlee/core": "3.18.1-beta.0",
|
|
42
|
+
"@crawlee/types": "3.18.1-beta.0",
|
|
43
43
|
"fingerprint-generator": "^2.1.68",
|
|
44
44
|
"fingerprint-injector": "^2.1.68",
|
|
45
45
|
"lodash.merge": "^4.6.2",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "fe3605157b4d0262d09898aa18626ab5a3e03702"
|
|
74
74
|
}
|
|
@@ -105,7 +105,12 @@ class PuppeteerController extends browser_controller_1.BrowserController {
|
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
async _getCookies(page) {
|
|
108
|
-
|
|
108
|
+
const cookies = await page.cookies();
|
|
109
|
+
// Puppeteer 25+ can report `sameSite: 'Default'`, which means the attribute is unspecified.
|
|
110
|
+
return cookies.map(({ sameSite, ...rest }) => ({
|
|
111
|
+
...rest,
|
|
112
|
+
sameSite: sameSite === 'Default' ? undefined : sameSite,
|
|
113
|
+
}));
|
|
109
114
|
}
|
|
110
115
|
async _setCookies(page, cookies) {
|
|
111
116
|
return page.setCookie(...cookies);
|