🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@eric8810/catcher-napi-http

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eric8810/catcher-napi-http - npm Package Compare versions

Comparing version
0.3.15
to
0.3.16
+22
-3
dist/types.d.ts

@@ -129,4 +129,14 @@ /* tslint:disable */

}
/** 代理配置 — 对应 Rust ProxyConfig */
interface ProxyConfig {
/**
* 代理配置 — 对应 Rust ProxyConfig(判别联合,按 `mode` 区分)。
*
* - Manual(默认,省略 `mode` 或 `mode: 'manual'`):必须提供 `url`。
* - System(`mode: 'system'`):自动从 OS 读取系统代理(需构建时启用 `system-proxy`
* feature),`url` 可省略。注意:System 模式仅在调用 `networkChanged()` 后才会
* 探测并应用系统代理,首次构建时走直连。
*/
type ProxyConfig = ManualProxyConfig | SystemProxyConfig;
/** 手动代理(默认)。`url` 必填。 */
interface ManualProxyConfig {
mode?: 'manual';
/** 代理 URL。Catcher 会把 socks5:// 按 socks5h:// 处理,避免代理场景提前本地解析域名。 */

@@ -138,2 +148,11 @@ url: string;

}
/** 系统代理:自动从 OS 检测(需构建时启用 `system-proxy` feature)。 */
interface SystemProxyConfig {
mode: 'system';
/** 忽略;系统代理由 `detect_system_proxy()` 在 `networkChanged()` 时解析。 */
url?: string;
auth?: ProxyAuth;
/** 不走代理的 hostname 列表 */
no_proxy?: string[];
}
/** 重定向配置 — 对应 Rust RedirectConfig */

@@ -237,2 +256,2 @@ interface RedirectConfig {

export type { BackoffStrategy, CircuitBreakerConfig, DnsConfig, HttpClientConfig, JsHttpResponse as HttpResponse, JsMetrics as Metrics, PoolConfig, ProxyAuth, ProxyConfig, RedirectConfig, RequestOptions, RetryConfig, SseClientConfig, SseEvent, StreamEvent, TlsConfig, TlsVersion };
export type { BackoffStrategy, CircuitBreakerConfig, DnsConfig, HttpClientConfig, JsHttpResponse as HttpResponse, ManualProxyConfig, JsMetrics as Metrics, PoolConfig, ProxyAuth, ProxyConfig, RedirectConfig, RequestOptions, RetryConfig, SseClientConfig, SseEvent, StreamEvent, SystemProxyConfig, TlsConfig, TlsVersion };
+9
-9
{
"name": "@eric8810/catcher-napi-http",
"version": "0.3.15",
"version": "0.3.16",
"description": "catcher HTTP native addon for Node.js via napi-rs",

@@ -59,11 +59,11 @@ "main": "dist/client.js",

"optionalDependencies": {
"@eric8810/catcher-napi-http-win32-x64-msvc": "0.3.15",
"@eric8810/catcher-napi-http-darwin-x64": "0.3.15",
"@eric8810/catcher-napi-http-linux-x64-gnu": "0.3.15",
"@eric8810/catcher-napi-http-darwin-arm64": "0.3.15",
"@eric8810/catcher-napi-http-linux-x64-musl": "0.3.15",
"@eric8810/catcher-napi-http-linux-arm64-gnu": "0.3.15",
"@eric8810/catcher-napi-http-linux-arm64-musl": "0.3.15",
"@eric8810/catcher-napi-http-win32-arm64-msvc": "0.3.15"
"@eric8810/catcher-napi-http-win32-x64-msvc": "0.3.16",
"@eric8810/catcher-napi-http-darwin-x64": "0.3.16",
"@eric8810/catcher-napi-http-linux-x64-gnu": "0.3.16",
"@eric8810/catcher-napi-http-darwin-arm64": "0.3.16",
"@eric8810/catcher-napi-http-linux-x64-musl": "0.3.16",
"@eric8810/catcher-napi-http-linux-arm64-gnu": "0.3.16",
"@eric8810/catcher-napi-http-linux-arm64-musl": "0.3.16",
"@eric8810/catcher-napi-http-win32-arm64-msvc": "0.3.16"
}
}