@crawlee/impit-client 4.0.0-beta.115 → 4.0.0-beta.117

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.
Files changed (2) hide show
  1. package/index.js +4 -1
  2. package/package.json +4 -4
package/index.js CHANGED
@@ -71,11 +71,14 @@ export class ImpitHttpClient extends BaseHttpClient {
71
71
  * @inheritDoc
72
72
  */
73
73
  async fetch(request, options) {
74
- const { proxyUrl, redirect, signal, fingerprint } = options ?? {};
74
+ const { proxyUrl, redirect, signal, fingerprint, ignoreTlsErrors } = options ?? {};
75
75
  const impitBrowser = this.resolveImpitBrowser(fingerprint);
76
76
  const impit = this.getClient({
77
77
  ...this.#impitOptions,
78
78
  ...(impitBrowser ? { browser: impitBrowser } : {}),
79
+ // The per-request flag (from the crawler option or a MITM proxy session)
80
+ // can only enable ignoring, never override a constructor-level `true`.
81
+ ...(ignoreTlsErrors ? { ignoreTlsErrors: true } : {}),
79
82
  proxyUrl,
80
83
  followRedirects: redirect === 'follow',
81
84
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crawlee/impit-client",
3
- "version": "4.0.0-beta.115",
3
+ "version": "4.0.0-beta.117",
4
4
  "description": "impit-based HTTP client implementation for Crawlee. Impersonates browser requests to avoid bot detection.",
5
5
  "engines": {
6
6
  "node": ">=22.0.0"
@@ -48,8 +48,8 @@
48
48
  },
49
49
  "dependencies": {
50
50
  "@apify/datastructures": "^2.0.3",
51
- "@crawlee/http-client": "4.0.0-beta.115",
52
- "@crawlee/types": "4.0.0-beta.115",
51
+ "@crawlee/http-client": "4.0.0-beta.117",
52
+ "@crawlee/types": "4.0.0-beta.117",
53
53
  "impit": "^0.14.2",
54
54
  "tough-cookie": "^6.0.0"
55
55
  },
@@ -60,5 +60,5 @@
60
60
  }
61
61
  }
62
62
  },
63
- "gitHead": "9bb6f54b10a88a709f0461486601a98365a90403"
63
+ "gitHead": "7c9c8c83da02da0444130cb95368045d30881c3b"
64
64
  }