@rongcloud/electron 5.46.0-enterprise-c-tmp-alpha.1 → 5.46.1
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/binding/electron-darwin-arm64.node +0 -0
- package/binding/electron-darwin-x64.node +0 -0
- package/binding/electron-linux-arm64.node +0 -0
- package/binding/electron-linux-x64.node +0 -0
- package/binding/electron-win32-ia32.node +0 -0
- package/binding/electron-win32-x64.node +0 -0
- package/index.cjs +1 -1
- package/index.cjs.js +1 -1
- package/index.d.ts +1 -31
- package/index.esm.js +2 -2
- package/index.mjs +2 -2
- package/package.json +1 -1
- package/sub-process.cjs.js +1 -1
- package/sub-process.esm.js +1 -1
- package/binding/.gitkeep +0 -0
package/index.d.ts
CHANGED
|
@@ -78,34 +78,8 @@ interface IInitOptions {
|
|
|
78
78
|
* 是否启动事件循环阻塞检查
|
|
79
79
|
*/
|
|
80
80
|
eventLoopBlockingCheck?: boolean;
|
|
81
|
-
/**
|
|
82
|
-
* 加密指针对象
|
|
83
|
-
*/
|
|
84
|
-
encipherPointer?: any;
|
|
85
81
|
}
|
|
86
82
|
|
|
87
|
-
interface IHostResolveRequest {
|
|
88
|
-
/**
|
|
89
|
-
* 待解析域名(不包含协议、端口)
|
|
90
|
-
*/
|
|
91
|
-
host: string;
|
|
92
|
-
}
|
|
93
|
-
interface IHostResolveResult {
|
|
94
|
-
/**
|
|
95
|
-
* 域名
|
|
96
|
-
*/
|
|
97
|
-
host: string;
|
|
98
|
-
/**
|
|
99
|
-
* 解析的 ip 列表,支持 ipv4 和 ipv6 格式;ipv6 地址不可包含 [] 等非必要数据
|
|
100
|
-
*/
|
|
101
|
-
ipList: string[];
|
|
102
|
-
/**
|
|
103
|
-
* 业务定义,SDK 会将该信息记录到日志内,便于后续问题定位
|
|
104
|
-
*/
|
|
105
|
-
source?: string;
|
|
106
|
-
}
|
|
107
|
-
declare type IHostResolveListener = (requests: IHostResolveRequest[]) => Promise<IHostResolveResult[]>;
|
|
108
|
-
|
|
109
83
|
/**
|
|
110
84
|
* Electron 主进程中的 SDK 客户端入口类
|
|
111
85
|
*/
|
|
@@ -145,12 +119,8 @@ declare class RCMainClient {
|
|
|
145
119
|
* @param milliseconds 数据库操作最小时间阀值,数据库 sql 操作 >= milliseconds 即打印日志。单位毫秒
|
|
146
120
|
*/
|
|
147
121
|
setDatabaseOperationTimeThreshold(milliseconds: number): void;
|
|
148
|
-
/**
|
|
149
|
-
* 设置 DNS 解析监听
|
|
150
|
-
*/
|
|
151
|
-
setHostResolveListener(listener: IHostResolveListener | null): void;
|
|
152
122
|
}
|
|
153
123
|
|
|
154
124
|
declare const _default: (options: IInitOptions) => RCMainClient;
|
|
155
125
|
|
|
156
|
-
export {
|
|
126
|
+
export { _default as default };
|