httpcloak 1.1.1 → 1.1.4
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/lib/index.js +4 -0
- package/npm/darwin-arm64/package.json +1 -1
- package/npm/darwin-x64/package.json +1 -1
- package/npm/linux-arm64/package.json +1 -1
- package/npm/linux-x64/package.json +1 -1
- package/npm/win32-arm64/package.json +1 -1
- package/npm/win32-x64/package.json +1 -1
- package/package.json +7 -7
package/lib/index.js
CHANGED
|
@@ -454,6 +454,7 @@ class Session {
|
|
|
454
454
|
maxRedirects = 10,
|
|
455
455
|
retry = 3,
|
|
456
456
|
retryOnStatus = null,
|
|
457
|
+
preferIpv4 = false,
|
|
457
458
|
} = options;
|
|
458
459
|
|
|
459
460
|
this._lib = getLib();
|
|
@@ -480,6 +481,9 @@ class Session {
|
|
|
480
481
|
if (retryOnStatus) {
|
|
481
482
|
config.retry_on_status = retryOnStatus;
|
|
482
483
|
}
|
|
484
|
+
if (preferIpv4) {
|
|
485
|
+
config.prefer_ipv4 = true;
|
|
486
|
+
}
|
|
483
487
|
|
|
484
488
|
this._handle = this._lib.httpcloak_session_new(JSON.stringify(config));
|
|
485
489
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "httpcloak",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"description": "Browser fingerprint emulation HTTP client with HTTP/1.1, HTTP/2, and HTTP/3 support",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"koffi": "^2.9.0"
|
|
36
36
|
},
|
|
37
37
|
"optionalDependencies": {
|
|
38
|
-
"@httpcloak/linux-x64": "1.1.
|
|
39
|
-
"@httpcloak/linux-arm64": "1.1.
|
|
40
|
-
"@httpcloak/darwin-x64": "1.1.
|
|
41
|
-
"@httpcloak/darwin-arm64": "1.1.
|
|
42
|
-
"@httpcloak/win32-x64": "1.1.
|
|
43
|
-
"@httpcloak/win32-arm64": "1.1.
|
|
38
|
+
"@httpcloak/linux-x64": "1.1.4",
|
|
39
|
+
"@httpcloak/linux-arm64": "1.1.4",
|
|
40
|
+
"@httpcloak/darwin-x64": "1.1.4",
|
|
41
|
+
"@httpcloak/darwin-arm64": "1.1.4",
|
|
42
|
+
"@httpcloak/win32-x64": "1.1.4",
|
|
43
|
+
"@httpcloak/win32-arm64": "1.1.4"
|
|
44
44
|
}
|
|
45
45
|
}
|