httpcloak 1.1.1 → 1.1.2

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 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
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@httpcloak/darwin-arm64",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "HTTPCloak native binary for darwin arm64",
5
5
  "os": [
6
6
  "darwin"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@httpcloak/darwin-x64",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "HTTPCloak native binary for darwin x64",
5
5
  "os": [
6
6
  "darwin"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@httpcloak/linux-arm64",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "HTTPCloak native binary for linux arm64",
5
5
  "os": [
6
6
  "linux"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@httpcloak/linux-x64",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "HTTPCloak native binary for linux x64",
5
5
  "os": [
6
6
  "linux"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@httpcloak/win32-arm64",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "HTTPCloak native binary for win32 arm64",
5
5
  "os": [
6
6
  "win32"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@httpcloak/win32-x64",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "HTTPCloak native binary for win32 x64",
5
5
  "os": [
6
6
  "win32"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "httpcloak",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
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.1",
39
- "@httpcloak/linux-arm64": "1.1.1",
40
- "@httpcloak/darwin-x64": "1.1.1",
41
- "@httpcloak/darwin-arm64": "1.1.1",
42
- "@httpcloak/win32-x64": "1.1.1",
43
- "@httpcloak/win32-arm64": "1.1.1"
38
+ "@httpcloak/linux-x64": "1.1.2",
39
+ "@httpcloak/linux-arm64": "1.1.2",
40
+ "@httpcloak/darwin-x64": "1.1.2",
41
+ "@httpcloak/darwin-arm64": "1.1.2",
42
+ "@httpcloak/win32-x64": "1.1.2",
43
+ "@httpcloak/win32-arm64": "1.1.2"
44
44
  }
45
45
  }