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 +2 -0
- 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-x64/package.json +1 -1
- package/package.json +6 -7
- package/scripts/setup-npm-packages.js +5 -1
- package/npm/win32-arm64/lib.js +0 -3
- package/npm/win32-arm64/lib.mjs +0 -6
- package/npm/win32-arm64/package.json +0 -27
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
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "httpcloak",
|
|
3
|
-
"version": "1.6.
|
|
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.
|
|
53
|
-
"@httpcloak/darwin-x64": "1.6.
|
|
54
|
-
"@httpcloak/linux-arm64": "1.6.
|
|
55
|
-
"@httpcloak/linux-x64": "1.6.
|
|
56
|
-
"@httpcloak/win32-
|
|
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");
|
package/npm/win32-arm64/lib.js
DELETED
package/npm/win32-arm64/lib.mjs
DELETED
|
@@ -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
|
-
}
|