httpcloak 1.6.5 → 1.6.6

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.d.ts CHANGED
@@ -241,6 +241,8 @@ export interface SessionOptions {
241
241
  enableSpeculativeTls?: boolean;
242
242
  /** Protocol to switch to after Refresh() (e.g., "h1", "h2", "h3") */
243
243
  switchProtocol?: string;
244
+ /** Disable internal cookie jar entirely — caller manages cookies via per-request headers (default: false) */
245
+ withoutCookieJar?: boolean;
244
246
  /** Custom JA3 fingerprint string (e.g., "771,4865-4866-4867-...,0-23-65281-...,29-23-24,0") */
245
247
  ja3?: string;
246
248
  /** Custom Akamai HTTP/2 fingerprint string (e.g., "1:65536;2:0;4:6291456;6:262144|15663105|0|m,a,s,p") */
package/lib/index.js CHANGED
@@ -1361,6 +1361,7 @@ class Session {
1361
1361
  keyLogFile = null,
1362
1362
  enableSpeculativeTls = false,
1363
1363
  switchProtocol = null,
1364
+ withoutCookieJar = false,
1364
1365
  ja3 = null,
1365
1366
  akamai = null,
1366
1367
  extraFp = null,
@@ -1435,6 +1436,9 @@ class Session {
1435
1436
  if (switchProtocol) {
1436
1437
  config.switch_protocol = switchProtocol;
1437
1438
  }
1439
+ if (withoutCookieJar) {
1440
+ config.without_cookie_jar = true;
1441
+ }
1438
1442
  if (ja3) {
1439
1443
  config.ja3 = ja3;
1440
1444
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@httpcloak/darwin-arm64",
3
- "version": "1.6.5",
3
+ "version": "1.6.6",
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.6.5",
3
+ "version": "1.6.6",
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.6.5",
3
+ "version": "1.6.6",
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.6.5",
3
+ "version": "1.6.6",
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-x64",
3
- "version": "1.6.5",
3
+ "version": "1.6.6",
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.6.5",
3
+ "version": "1.6.6",
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
  "module": "lib/index.mjs",
@@ -49,12 +49,11 @@
49
49
  "koffi": "^2.9.0"
50
50
  },
51
51
  "optionalDependencies": {
52
- "@httpcloak/darwin-arm64": "1.6.5",
53
- "@httpcloak/darwin-x64": "1.6.5",
54
- "@httpcloak/linux-arm64": "1.6.5",
55
- "@httpcloak/linux-x64": "1.6.5",
56
- "@httpcloak/win32-arm64": "1.6.5",
57
- "@httpcloak/win32-x64": "1.6.5"
52
+ "@httpcloak/darwin-arm64": "1.6.6",
53
+ "@httpcloak/darwin-x64": "1.6.6",
54
+ "@httpcloak/linux-arm64": "1.6.6",
55
+ "@httpcloak/linux-x64": "1.6.6",
56
+ "@httpcloak/win32-x64": "1.6.6"
58
57
  },
59
58
  "devDependencies": {
60
59
  "@types/node": "^25.1.0",
@@ -8,13 +8,17 @@ const path = require("path");
8
8
 
9
9
  const VERSION = "1.4.0";
10
10
 
11
+ // Platforms we actually build and publish via CI's npm-platform matrix.
12
+ // Keep in sync with .github/workflows/bindings.yml's `npm_platform` matrix —
13
+ // adding a row here without adding it to the matrix means npm install will
14
+ // fail with an unresolvable optional dependency on yarn classic / pnpm
15
+ // strict modes.
11
16
  const PLATFORMS = [
12
17
  { name: "linux-x64", os: "linux", cpu: "x64", libName: "libhttpcloak-linux-amd64.so" },
13
18
  { name: "linux-arm64", os: "linux", cpu: "arm64", libName: "libhttpcloak-linux-arm64.so" },
14
19
  { name: "darwin-x64", os: "darwin", cpu: "x64", libName: "libhttpcloak-darwin-amd64.dylib" },
15
20
  { name: "darwin-arm64", os: "darwin", cpu: "arm64", libName: "libhttpcloak-darwin-arm64.dylib" },
16
21
  { name: "win32-x64", os: "win32", cpu: "x64", libName: "libhttpcloak-windows-amd64.dll" },
17
- { name: "win32-arm64", os: "win32", cpu: "arm64", libName: "libhttpcloak-windows-arm64.dll" },
18
22
  ];
19
23
 
20
24
  const npmDir = path.join(__dirname, "..", "npm");
@@ -1,3 +0,0 @@
1
- // Auto-generated - exports path to native library
2
- const path = require("path");
3
- module.exports = path.join(__dirname, "libhttpcloak-windows-arm64.dll");
@@ -1,6 +0,0 @@
1
- // Auto-generated - exports path to native library (ESM)
2
- import { fileURLToPath } from "url";
3
- import { dirname, join } from "path";
4
-
5
- const __dirname = dirname(fileURLToPath(import.meta.url));
6
- export default join(__dirname, "libhttpcloak-windows-arm64.dll");
@@ -1,27 +0,0 @@
1
- {
2
- "name": "@httpcloak/win32-arm64",
3
- "version": "1.6.5",
4
- "description": "HTTPCloak native binary for win32 arm64",
5
- "os": [
6
- "win32"
7
- ],
8
- "cpu": [
9
- "arm64"
10
- ],
11
- "main": "lib.js",
12
- "module": "lib.mjs",
13
- "exports": {
14
- ".": {
15
- "import": "./lib.mjs",
16
- "require": "./lib.js"
17
- }
18
- },
19
- "license": "MIT",
20
- "repository": {
21
- "type": "git",
22
- "url": "https://github.com/sardanioss/httpcloak"
23
- },
24
- "publishConfig": {
25
- "access": "public"
26
- }
27
- }