@ossiana/node-libcurl
Advanced tools
Comparing version 1.6.5 to 1.6.6-beta.0
@@ -190,2 +190,3 @@ export declare enum LibCurlHttpVersionInfo { | ||
setAkamaiFingerprint(akamai: LibCurlAkamaiFingerPrintInfo): void; | ||
setHttp2NextStreamId(stream_id: number): void; | ||
setHttp2StreamWeight(weight: number): void; | ||
@@ -192,0 +193,0 @@ private beforeProcessRequestHeaders; |
@@ -366,2 +366,8 @@ "use strict"; | ||
} | ||
setHttp2NextStreamId(stream_id) { | ||
if (stream_id < 1 || stream_id % 2 == 0) { | ||
throw new LibCurlError("stream_id error"); | ||
} | ||
this.m_libCurl_impl_.setHttp2NextStreamId(stream_id); | ||
} | ||
setHttp2StreamWeight(weight) { | ||
@@ -415,7 +421,10 @@ if (weight < 0 || weight > 256) { | ||
"sec-ch-ua-form-factors", | ||
"User-Agent", | ||
]; | ||
const fixedSuffixArr = [ | ||
"Accept", | ||
"Access-Control-Request-Method", | ||
"Access-Control-Request-Headers", | ||
"Access-Control-Request-Private-Network", | ||
"Origin", | ||
"User-Agent", | ||
"Sec-Fetch-Site", | ||
@@ -422,0 +431,0 @@ "Sec-Fetch-Mode", |
@@ -67,2 +67,3 @@ import { LibCurl, LibCurlBodyInfo, LibCurlCookiesAttr, LibCurlCookiesInfo, LibCurlHeadersInfo, LibCurlProxyInfo, LibCurlHttpVersionInfo, LibCurlURLInfo, LibCurlJA3FingerPrintInfo, LibCurlAkamaiFingerPrintInfo } from "./libcurl"; | ||
weight: number; | ||
streamId?: number; | ||
}; | ||
@@ -69,0 +70,0 @@ } |
@@ -206,2 +206,5 @@ "use strict"; | ||
if (h2config) { | ||
if (typeof h2config.streamId == 'number') { | ||
curl.setHttp2NextStreamId(h2config.streamId); | ||
} | ||
curl.setHttp2StreamWeight(h2config.weight); | ||
@@ -208,0 +211,0 @@ } |
{ | ||
"name": "@ossiana/node-libcurl", | ||
"version": "1.6.5", | ||
"version": "1.6.6-beta.0", | ||
"author": { | ||
@@ -32,7 +32,7 @@ "name": "Ossian" | ||
"optionalDependencies": { | ||
"@ossiana/node-libcurl-darwin-x64": "1.6.5", | ||
"@ossiana/node-libcurl-darwin-arm64": "1.6.5", | ||
"@ossiana/node-libcurl-linux-x64-gnu": "1.6.5", | ||
"@ossiana/node-libcurl-linux-arm64-gnu": "1.6.5", | ||
"@ossiana/node-libcurl-win32-x64-msvc": "1.6.5" | ||
"@ossiana/node-libcurl-darwin-x64": "1.6.6-beta.0", | ||
"@ossiana/node-libcurl-darwin-arm64": "1.6.6-beta.0", | ||
"@ossiana/node-libcurl-linux-x64-gnu": "1.6.6-beta.0", | ||
"@ossiana/node-libcurl-linux-arm64-gnu": "1.6.6-beta.0", | ||
"@ossiana/node-libcurl-win32-x64-msvc": "1.6.6-beta.0" | ||
}, | ||
@@ -39,0 +39,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
117029
1824
2