@crawlee/playwright 3.17.1-beta.45 → 3.17.1-beta.47
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.
|
@@ -133,7 +133,7 @@ async function gotoExtended(page, request, gotoOptions = {}) {
|
|
|
133
133
|
(0, ow_1.default)(gotoOptions, ow_1.default.object);
|
|
134
134
|
const { url, method, headers, payload } = request;
|
|
135
135
|
const isEmpty = (o) => !o || Object.keys(o).length === 0;
|
|
136
|
-
if (method !== 'GET' || payload
|
|
136
|
+
if (method !== 'GET' || payload) {
|
|
137
137
|
// This is not deprecated, we use it to log only once.
|
|
138
138
|
log.deprecated('Using other request methods than GET, rewriting headers and adding payloads has a high impact on performance ' +
|
|
139
139
|
'in recent versions of Playwright. Use only when necessary.');
|
|
@@ -162,6 +162,9 @@ async function gotoExtended(page, request, gotoOptions = {}) {
|
|
|
162
162
|
};
|
|
163
163
|
await page.route('**/*', interceptRequestHandler);
|
|
164
164
|
}
|
|
165
|
+
else if (!isEmpty(headers)) {
|
|
166
|
+
await page.setExtraHTTPHeaders(headers);
|
|
167
|
+
}
|
|
165
168
|
return page.goto(url, gotoOptions);
|
|
166
169
|
}
|
|
167
170
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crawlee/playwright",
|
|
3
|
-
"version": "3.17.1-beta.
|
|
3
|
+
"version": "3.17.1-beta.47",
|
|
4
4
|
"description": "The scalable web crawling and scraping library for JavaScript/Node.js. Enables development of data extraction and web automation jobs (not only) with headless Chrome and Puppeteer.",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=16.0.0"
|
|
@@ -56,11 +56,11 @@
|
|
|
56
56
|
"@apify/datastructures": "^2.0.0",
|
|
57
57
|
"@apify/log": "^2.4.0",
|
|
58
58
|
"@apify/timeout": "^0.3.1",
|
|
59
|
-
"@crawlee/browser": "3.17.1-beta.
|
|
60
|
-
"@crawlee/browser-pool": "3.17.1-beta.
|
|
61
|
-
"@crawlee/core": "3.17.1-beta.
|
|
62
|
-
"@crawlee/types": "3.17.1-beta.
|
|
63
|
-
"@crawlee/utils": "3.17.1-beta.
|
|
59
|
+
"@crawlee/browser": "3.17.1-beta.47",
|
|
60
|
+
"@crawlee/browser-pool": "3.17.1-beta.47",
|
|
61
|
+
"@crawlee/core": "3.17.1-beta.47",
|
|
62
|
+
"@crawlee/types": "3.17.1-beta.47",
|
|
63
|
+
"@crawlee/utils": "3.17.1-beta.47",
|
|
64
64
|
"cheerio": "1.0.0-rc.12",
|
|
65
65
|
"jquery": "^3.6.0",
|
|
66
66
|
"lodash.isequal": "^4.5.0",
|
|
@@ -90,5 +90,5 @@
|
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
},
|
|
93
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "93d7b6fccbd6e4f4b474adbba55e5f05051bbaf2"
|
|
94
94
|
}
|