xshell 1.0.44 → 1.0.46

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/i18n/dict.json CHANGED
@@ -319,5 +319,23 @@
319
319
  },
320
320
  "正在监听: http://localhost:8421\n": {
321
321
  "en": "listening: http://localhost:8421\n"
322
+ },
323
+ "flist: 参数 fpd: '{{fpd}}' 必须是绝对路径": {
324
+ "en": "flist: parameter fpd: '{{fpd}}' must be an absolute path"
325
+ },
326
+ "flist: 参数 fpd: '{{fpd}}' 必须以 / 结尾": {
327
+ "en": "flist: argument fpd: '{{fpd}}' must end with /"
328
+ },
329
+ "fstat: 参数 fp: '{{fp}}' 必须是绝对路径": {
330
+ "en": "fstat: parameter fp: '{{fp}}' must be an absolute path"
331
+ },
332
+ "不存在且无法创建文件夹 {{fpd}}": {
333
+ "en": "Folder {{fpd}} does not exist and cannot be created"
334
+ },
335
+ "message.data 必须是数组": {
336
+ "en": "message.data must be an array"
337
+ },
338
+ "fsend 必须传 absolute 选项或 root 文件夹": {
339
+ "en": "fsend must pass absolute option or root folder"
322
340
  }
323
341
  }
package/net.d.ts CHANGED
@@ -247,3 +247,8 @@ export declare class Remote {
247
247
  作为 websocket 连接接收方,必传 websocket 参数 */
248
248
  call<TReturn extends any[] = any[]>(func: string, args?: any[], websocket?: WebSocket): Promise<TReturn>;
249
249
  }
250
+ /** 通常将连接到 server 的 client 抽象为下面的结构 */
251
+ export interface RemoteClient {
252
+ remote: Remote;
253
+ websocket: WebSocket;
254
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xshell",
3
- "version": "1.0.44",
3
+ "version": "1.0.46",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "bin": {
@@ -45,9 +45,9 @@
45
45
  ]
46
46
  },
47
47
  "dependencies": {
48
- "@babel/core": "^7.22.9",
49
- "@babel/parser": "^7.22.7",
50
- "@babel/traverse": "^7.22.8",
48
+ "@babel/core": "^7.22.10",
49
+ "@babel/parser": "^7.22.10",
50
+ "@babel/traverse": "^7.22.10",
51
51
  "@koa/cors": "^4.0.0",
52
52
  "@types/ws": "^8.5.5",
53
53
  "byte-size": "^8.1.1",
@@ -62,7 +62,7 @@
62
62
  "fs-extra": "^11.1.1",
63
63
  "gulp-sort": "^2.0.0",
64
64
  "hash-string": "^1.0.0",
65
- "i18next": "^23.4.1",
65
+ "i18next": "^23.4.2",
66
66
  "i18next-scanner": "^4.3.0",
67
67
  "js-cookie": "^3.0.5",
68
68
  "koa": "^2.14.2",
@@ -87,7 +87,7 @@
87
87
  "ws": "^8.13.0"
88
88
  },
89
89
  "devDependencies": {
90
- "@babel/types": "^7.22.5",
90
+ "@babel/types": "^7.22.10",
91
91
  "@types/babel__traverse": "^7.20.1",
92
92
  "@types/byte-size": "^8.1.0",
93
93
  "@types/chardet": "^0.8.1",
@@ -105,8 +105,8 @@
105
105
  "@types/tough-cookie": "^4.0.2",
106
106
  "@types/vinyl-fs": "^3.0.2",
107
107
  "@types/vscode": "^1.81.0",
108
- "@typescript-eslint/eslint-plugin": "^6.2.1",
109
- "@typescript-eslint/parser": "^6.2.1",
108
+ "@typescript-eslint/eslint-plugin": "^6.3.0",
109
+ "@typescript-eslint/parser": "^6.3.0",
110
110
  "eslint": "^8.46.0",
111
111
  "eslint-plugin-react": "^7.33.1",
112
112
  "eslint-plugin-xlint": "^1.0.6"