xshell 1.0.47 → 1.0.48
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/net.d.ts +4 -2
- package/net.js +3 -0
- package/package.json +1 -1
package/net.d.ts
CHANGED
|
@@ -10,12 +10,15 @@ declare module 'tough-cookie' {
|
|
|
10
10
|
import './prototype.js';
|
|
11
11
|
import type { Encoding } from './file.js';
|
|
12
12
|
import { inspect, Lock } from './utils.js';
|
|
13
|
+
export type { WebSocket, Headers };
|
|
14
|
+
export declare const WebSocketConnecting = 0;
|
|
13
15
|
export declare const WebSocketOpen = 1;
|
|
16
|
+
export declare const WebSocketClosing = 2;
|
|
17
|
+
export declare const WebSocketClosed = 3;
|
|
14
18
|
export declare enum MyProxy {
|
|
15
19
|
socks5 = "http://localhost:10080",
|
|
16
20
|
whistle = "http://localhost:8899"
|
|
17
21
|
}
|
|
18
|
-
export type { Headers };
|
|
19
22
|
export declare const cookies: {
|
|
20
23
|
store: MemoryCookieStore;
|
|
21
24
|
jar: CookieJar;
|
|
@@ -102,7 +105,6 @@ export declare function rpc(func: string, args?: any[], { url, async: _async, ig
|
|
|
102
105
|
async?: boolean;
|
|
103
106
|
ignore?: boolean;
|
|
104
107
|
}): Promise<any>;
|
|
105
|
-
export type { WebSocket };
|
|
106
108
|
export declare class WebSocketConnectionError extends Error {
|
|
107
109
|
name: string;
|
|
108
110
|
websocket: WebSocket;
|
package/net.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { t } from './i18n/instance.js';
|
|
2
2
|
import './prototype.js';
|
|
3
3
|
import { inspect, concat, assert, genid, delay, Lock } from './utils.js';
|
|
4
|
+
export const WebSocketConnecting = 0;
|
|
4
5
|
export const WebSocketOpen = 1;
|
|
6
|
+
export const WebSocketClosing = 2;
|
|
7
|
+
export const WebSocketClosed = 3;
|
|
5
8
|
export var MyProxy;
|
|
6
9
|
(function (MyProxy) {
|
|
7
10
|
MyProxy["socks5"] = "http://localhost:10080";
|