@crawlee/got-scraping-client 4.0.0-beta.98 → 4.0.0-rc.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/index.js +2 -1
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -29,7 +29,7 @@ export class GotScrapingHttpClient extends BaseHttpClient {
|
|
|
29
29
|
return new Headers([...this.iterateHeaders(headers)]);
|
|
30
30
|
}
|
|
31
31
|
async fetch(request, options) {
|
|
32
|
-
const { proxyUrl, redirect } = options ?? {};
|
|
32
|
+
const { proxyUrl, redirect, ignoreTlsErrors } = options ?? {};
|
|
33
33
|
if (!this.validateRequest(request)) {
|
|
34
34
|
throw new Error(`The HTTP method CONNECT is not supported by the GotScrapingHttpClient.`);
|
|
35
35
|
}
|
|
@@ -41,6 +41,7 @@ export class GotScrapingHttpClient extends BaseHttpClient {
|
|
|
41
41
|
proxyUrl,
|
|
42
42
|
signal: options?.signal ?? undefined,
|
|
43
43
|
followRedirect: redirect === 'follow',
|
|
44
|
+
...(ignoreTlsErrors ? { https: { rejectUnauthorized: false } } : {}),
|
|
44
45
|
});
|
|
45
46
|
const responseHeaders = this.parseHeaders(gotResult.headers);
|
|
46
47
|
return new ResponseWithUrl(new Uint8Array(gotResult.rawBody), {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crawlee/got-scraping-client",
|
|
3
|
-
"version": "4.0.0-
|
|
3
|
+
"version": "4.0.0-rc.0",
|
|
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": ">=22.0.0"
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@crawlee/http-client": "4.0.0-
|
|
50
|
+
"@crawlee/http-client": "4.0.0-rc.0",
|
|
51
51
|
"got-scraping": "^4.2.1"
|
|
52
52
|
},
|
|
53
53
|
"lerna": {
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "79ab33dacdacb83e0197e6516d145f3aceef80c7"
|
|
61
61
|
}
|