xshell 1.3.9 → 1.3.12
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/builder.js +0 -12
- package/file.d.ts +3 -3
- package/file.js +4 -4
- package/net.js +11 -8
- package/package.json +7 -7
- package/react.development.js +30 -32
- package/react.development.js.map +1 -1
- package/react.production.js +390 -392
- package/react.production.js.map +1 -1
- package/utils.d.ts +1 -1
- package/utils.js +2 -2
package/builder.js
CHANGED
|
@@ -79,18 +79,6 @@ const dependencies = {
|
|
|
79
79
|
assets: {
|
|
80
80
|
productions: ['monaco-editor/min/vs/'],
|
|
81
81
|
devs: ['monaco-editor/dev/vs/']
|
|
82
|
-
},
|
|
83
|
-
maps: {
|
|
84
|
-
productions: [
|
|
85
|
-
'monaco-editor/min-maps/vs/base/worker/workerMain.js.map',
|
|
86
|
-
'monaco-editor/min-maps/vs/editor/editor.main.js.map',
|
|
87
|
-
'monaco-editor/min-maps/vs/loader.js.map',
|
|
88
|
-
'monaco-editor/min-maps/nls.messages.zh-cn.js.map',
|
|
89
|
-
],
|
|
90
|
-
devs: [
|
|
91
|
-
'monaco-editor/dev/vs/base/worker/workerMain.js.map',
|
|
92
|
-
'monaco-editor/dev/vs/editor/editor.main.js.map',
|
|
93
|
-
],
|
|
94
82
|
}
|
|
95
83
|
},
|
|
96
84
|
echarts: {
|
package/file.d.ts
CHANGED
|
@@ -207,13 +207,13 @@ export interface FMkdirOptions {
|
|
|
207
207
|
- print?: `true` */
|
|
208
208
|
export declare function fmkdir(fpd: string, { print }?: FMkdirOptions): Promise<string>;
|
|
209
209
|
/** 创建软链接
|
|
210
|
-
-
|
|
211
|
-
-
|
|
210
|
+
- fp_link: 创建的链接的路径
|
|
211
|
+
- fp_real: 真实目标文件/文件夹的路径
|
|
212
212
|
- options?:
|
|
213
213
|
- skip_existing?: `false` 忽略已存在的同名的文件,文件夹
|
|
214
214
|
- print?: `true`
|
|
215
215
|
- junction? */
|
|
216
|
-
export declare function flink(
|
|
216
|
+
export declare function flink(fp_link: string, fp_real: string, { skip_existing, print, junction }?: {
|
|
217
217
|
skip_existing?: boolean;
|
|
218
218
|
print?: boolean;
|
|
219
219
|
junction?: boolean;
|
package/file.js
CHANGED
|
@@ -455,13 +455,13 @@ export async function fmkdir(fpd, { print = true } = {}) {
|
|
|
455
455
|
return fpd_;
|
|
456
456
|
}
|
|
457
457
|
/** 创建软链接
|
|
458
|
-
-
|
|
459
|
-
-
|
|
458
|
+
- fp_link: 创建的链接的路径
|
|
459
|
+
- fp_real: 真实目标文件/文件夹的路径
|
|
460
460
|
- options?:
|
|
461
461
|
- skip_existing?: `false` 忽略已存在的同名的文件,文件夹
|
|
462
462
|
- print?: `true`
|
|
463
463
|
- junction? */
|
|
464
|
-
export async function flink(
|
|
464
|
+
export async function flink(fp_link, fp_real, { skip_existing = false, print = true, junction = false } = {}) {
|
|
465
465
|
check(path.isAbsolute(fp_real) && path.isAbsolute(fp_link), 'fp 必须是绝对路径');
|
|
466
466
|
const is_fpd_real = fp_real.isdir;
|
|
467
467
|
const is_fpd_link = fp_link.isdir;
|
|
@@ -475,7 +475,7 @@ export async function flink(fp_real, fp_link, { skip_existing = false, print = t
|
|
|
475
475
|
return;
|
|
476
476
|
}
|
|
477
477
|
if (print)
|
|
478
|
-
log_action('
|
|
478
|
+
log_action('创建链接', fp_link, fp_real);
|
|
479
479
|
if (junction)
|
|
480
480
|
await fsp.symlink(fp_real, fp_link, 'junction');
|
|
481
481
|
else
|
package/net.js
CHANGED
|
@@ -308,8 +308,11 @@ export async function request_json(url, options) {
|
|
|
308
308
|
export function connect(hostname, port, { local_port, timeout: _timeout = 2000, on_timeout, keep_alive_duration, print = { error: true, connect: false } } = {}) {
|
|
309
309
|
let pconnected = defer2();
|
|
310
310
|
let timeouted = false;
|
|
311
|
-
function
|
|
312
|
-
return `${nowstr()}
|
|
311
|
+
function get_log_message(message) {
|
|
312
|
+
return `${nowstr()} ${get_error_message(message)}`;
|
|
313
|
+
}
|
|
314
|
+
function get_error_message(message) {
|
|
315
|
+
return `tcp://${hostname}:${port} ${message}`;
|
|
313
316
|
}
|
|
314
317
|
let socket = net.connect({
|
|
315
318
|
host: hostname,
|
|
@@ -321,14 +324,14 @@ export function connect(hostname, port, { local_port, timeout: _timeout = 2000,
|
|
|
321
324
|
}, () => {
|
|
322
325
|
if (pconnected.settled) {
|
|
323
326
|
if (print)
|
|
324
|
-
console.warn(
|
|
327
|
+
console.warn(get_log_message('连接建立了,但是已超时'.yellow));
|
|
325
328
|
socket.resetAndDestroy();
|
|
326
329
|
}
|
|
327
330
|
else {
|
|
328
331
|
clearTimeout(timeout);
|
|
329
332
|
socket.off('error', on_error);
|
|
330
333
|
if (print.connect)
|
|
331
|
-
console.log(
|
|
334
|
+
console.log(get_log_message('已连接'));
|
|
332
335
|
pconnected.resolve(socket);
|
|
333
336
|
}
|
|
334
337
|
});
|
|
@@ -339,11 +342,11 @@ export function connect(hostname, port, { local_port, timeout: _timeout = 2000,
|
|
|
339
342
|
return;
|
|
340
343
|
// 待观察:不太可能走到这里
|
|
341
344
|
if (print.error)
|
|
342
|
-
console.error(
|
|
345
|
+
console.error(get_log_message(error.message.red));
|
|
343
346
|
}
|
|
344
347
|
else {
|
|
345
348
|
clearTimeout(timeout);
|
|
346
|
-
pconnected.reject(set_error_message(error,
|
|
349
|
+
pconnected.reject(set_error_message(error, get_error_message(error.message)));
|
|
347
350
|
}
|
|
348
351
|
};
|
|
349
352
|
socket.once('error', on_error);
|
|
@@ -354,14 +357,14 @@ export function connect(hostname, port, { local_port, timeout: _timeout = 2000,
|
|
|
354
357
|
if (typeof on_timeout === 'function') {
|
|
355
358
|
pconnected.resolve(null);
|
|
356
359
|
try {
|
|
357
|
-
await on_timeout(new TimeoutError(
|
|
360
|
+
await on_timeout(new TimeoutError(get_error_message('超时了')));
|
|
358
361
|
}
|
|
359
362
|
catch (error) {
|
|
360
363
|
pconnected.reject(error);
|
|
361
364
|
}
|
|
362
365
|
}
|
|
363
366
|
else
|
|
364
|
-
pconnected.reject(new TimeoutError(on_timeout ||
|
|
367
|
+
pconnected.reject(new TimeoutError(on_timeout || get_error_message('超时了')));
|
|
365
368
|
}, _timeout);
|
|
366
369
|
return pconnected;
|
|
367
370
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xshell",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"bin": {
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
"@stylistic/eslint-plugin": "^5.6.1",
|
|
57
57
|
"@svgr/webpack": "^8.1.0",
|
|
58
58
|
"@types/sass-loader": "^8.0.10",
|
|
59
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
60
|
-
"@typescript-eslint/parser": "^8.
|
|
61
|
-
"@typescript-eslint/utils": "^8.
|
|
59
|
+
"@typescript-eslint/eslint-plugin": "^8.48.0",
|
|
60
|
+
"@typescript-eslint/parser": "^8.48.0",
|
|
61
|
+
"@typescript-eslint/utils": "^8.48.0",
|
|
62
62
|
"archiver": "^7.0.1",
|
|
63
63
|
"chalk": "^5.6.2",
|
|
64
64
|
"commander": "^14.0.2",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"koa": "^3.1.1",
|
|
74
74
|
"koa-compress": "^5.1.1",
|
|
75
75
|
"license-webpack-plugin": "^4.0.2",
|
|
76
|
-
"mime-types": "^3.0.
|
|
76
|
+
"mime-types": "^3.0.2",
|
|
77
77
|
"p-map": "^7.0.4",
|
|
78
78
|
"react": "^19.2.0",
|
|
79
79
|
"react-i18next": "^16.3.5",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"tslib": "^2.8.1",
|
|
89
89
|
"typescript": "^5.9.3",
|
|
90
90
|
"undici": "^7.16.0",
|
|
91
|
-
"webpack": "
|
|
91
|
+
"webpack": "https://pkg.pr.new/webpack@4adc0d1",
|
|
92
92
|
"webpack-bundle-analyzer": "^5.0.1",
|
|
93
93
|
"ws": "^8.18.3"
|
|
94
94
|
},
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"@types/koa-compress": "^4.0.7",
|
|
103
103
|
"@types/mime-types": "^3.0.1",
|
|
104
104
|
"@types/node": "^24.10.1",
|
|
105
|
-
"@types/react": "^19.2.
|
|
105
|
+
"@types/react": "^19.2.7",
|
|
106
106
|
"@types/tough-cookie": "^4.0.5",
|
|
107
107
|
"@types/vscode": "^1.106.1",
|
|
108
108
|
"@types/webpack-bundle-analyzer": "^4.7.0",
|
package/react.development.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
/******/ "use strict";
|
|
3
3
|
/******/ var __webpack_modules__ = ({
|
|
4
4
|
|
|
5
|
-
/***/ "./node_modules/.pnpm/react-dom@19.2.0_react@19.2.0/node_modules/react-dom/cjs/react-dom-client.development.js"
|
|
5
|
+
/***/ "./node_modules/.pnpm/react-dom@19.2.0_react@19.2.0/node_modules/react-dom/cjs/react-dom-client.development.js"
|
|
6
6
|
/*!*********************************************************************************************************************!*\
|
|
7
7
|
!*** ./node_modules/.pnpm/react-dom@19.2.0_react@19.2.0/node_modules/react-dom/cjs/react-dom-client.development.js ***!
|
|
8
8
|
\*********************************************************************************************************************/
|
|
9
|
-
|
|
9
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* @license React
|
|
@@ -28130,13 +28130,13 @@
|
|
|
28130
28130
|
})();
|
|
28131
28131
|
|
|
28132
28132
|
|
|
28133
|
-
/***/ }
|
|
28133
|
+
/***/ },
|
|
28134
28134
|
|
|
28135
|
-
/***/ "./node_modules/.pnpm/react-dom@19.2.0_react@19.2.0/node_modules/react-dom/cjs/react-dom.development.js"
|
|
28135
|
+
/***/ "./node_modules/.pnpm/react-dom@19.2.0_react@19.2.0/node_modules/react-dom/cjs/react-dom.development.js"
|
|
28136
28136
|
/*!**************************************************************************************************************!*\
|
|
28137
28137
|
!*** ./node_modules/.pnpm/react-dom@19.2.0_react@19.2.0/node_modules/react-dom/cjs/react-dom.development.js ***!
|
|
28138
28138
|
\**************************************************************************************************************/
|
|
28139
|
-
|
|
28139
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
28140
28140
|
|
|
28141
28141
|
/**
|
|
28142
28142
|
* @license React
|
|
@@ -28564,13 +28564,13 @@
|
|
|
28564
28564
|
})();
|
|
28565
28565
|
|
|
28566
28566
|
|
|
28567
|
-
/***/ }
|
|
28567
|
+
/***/ },
|
|
28568
28568
|
|
|
28569
|
-
/***/ "./node_modules/.pnpm/react-dom@19.2.0_react@19.2.0/node_modules/react-dom/client.js"
|
|
28569
|
+
/***/ "./node_modules/.pnpm/react-dom@19.2.0_react@19.2.0/node_modules/react-dom/client.js"
|
|
28570
28570
|
/*!*******************************************************************************************!*\
|
|
28571
28571
|
!*** ./node_modules/.pnpm/react-dom@19.2.0_react@19.2.0/node_modules/react-dom/client.js ***!
|
|
28572
28572
|
\*******************************************************************************************/
|
|
28573
|
-
|
|
28573
|
+
(module, __unused_webpack_exports, __webpack_require__) {
|
|
28574
28574
|
|
|
28575
28575
|
|
|
28576
28576
|
|
|
@@ -28602,13 +28602,13 @@ if (false) // removed by dead control flow
|
|
|
28602
28602
|
}
|
|
28603
28603
|
|
|
28604
28604
|
|
|
28605
|
-
/***/ }
|
|
28605
|
+
/***/ },
|
|
28606
28606
|
|
|
28607
|
-
/***/ "./node_modules/.pnpm/react-dom@19.2.0_react@19.2.0/node_modules/react-dom/index.js"
|
|
28607
|
+
/***/ "./node_modules/.pnpm/react-dom@19.2.0_react@19.2.0/node_modules/react-dom/index.js"
|
|
28608
28608
|
/*!******************************************************************************************!*\
|
|
28609
28609
|
!*** ./node_modules/.pnpm/react-dom@19.2.0_react@19.2.0/node_modules/react-dom/index.js ***!
|
|
28610
28610
|
\******************************************************************************************/
|
|
28611
|
-
|
|
28611
|
+
(module, __unused_webpack_exports, __webpack_require__) {
|
|
28612
28612
|
|
|
28613
28613
|
|
|
28614
28614
|
|
|
@@ -28640,13 +28640,13 @@ if (false) // removed by dead control flow
|
|
|
28640
28640
|
}
|
|
28641
28641
|
|
|
28642
28642
|
|
|
28643
|
-
/***/ }
|
|
28643
|
+
/***/ },
|
|
28644
28644
|
|
|
28645
|
-
/***/ "./node_modules/.pnpm/react@19.2.0/node_modules/react/cjs/react-jsx-runtime.development.js"
|
|
28645
|
+
/***/ "./node_modules/.pnpm/react@19.2.0/node_modules/react/cjs/react-jsx-runtime.development.js"
|
|
28646
28646
|
/*!*************************************************************************************************!*\
|
|
28647
28647
|
!*** ./node_modules/.pnpm/react@19.2.0/node_modules/react/cjs/react-jsx-runtime.development.js ***!
|
|
28648
28648
|
\*************************************************************************************************/
|
|
28649
|
-
|
|
28649
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
28650
28650
|
|
|
28651
28651
|
/**
|
|
28652
28652
|
* @license React
|
|
@@ -29002,13 +29002,13 @@ if (false) // removed by dead control flow
|
|
|
29002
29002
|
})();
|
|
29003
29003
|
|
|
29004
29004
|
|
|
29005
|
-
/***/ }
|
|
29005
|
+
/***/ },
|
|
29006
29006
|
|
|
29007
|
-
/***/ "./node_modules/.pnpm/react@19.2.0/node_modules/react/cjs/react.development.js"
|
|
29007
|
+
/***/ "./node_modules/.pnpm/react@19.2.0/node_modules/react/cjs/react.development.js"
|
|
29008
29008
|
/*!*************************************************************************************!*\
|
|
29009
29009
|
!*** ./node_modules/.pnpm/react@19.2.0/node_modules/react/cjs/react.development.js ***!
|
|
29010
29010
|
\*************************************************************************************/
|
|
29011
|
-
|
|
29011
|
+
(module, exports, __webpack_require__) {
|
|
29012
29012
|
|
|
29013
29013
|
/* module decorator */ module = __webpack_require__.nmd(module);
|
|
29014
29014
|
/**
|
|
@@ -30297,13 +30297,13 @@ if (false) // removed by dead control flow
|
|
|
30297
30297
|
})();
|
|
30298
30298
|
|
|
30299
30299
|
|
|
30300
|
-
/***/ }
|
|
30300
|
+
/***/ },
|
|
30301
30301
|
|
|
30302
|
-
/***/ "./node_modules/.pnpm/react@19.2.0/node_modules/react/index.js"
|
|
30302
|
+
/***/ "./node_modules/.pnpm/react@19.2.0/node_modules/react/index.js"
|
|
30303
30303
|
/*!*********************************************************************!*\
|
|
30304
30304
|
!*** ./node_modules/.pnpm/react@19.2.0/node_modules/react/index.js ***!
|
|
30305
30305
|
\*********************************************************************/
|
|
30306
|
-
|
|
30306
|
+
(module, __unused_webpack_exports, __webpack_require__) {
|
|
30307
30307
|
|
|
30308
30308
|
|
|
30309
30309
|
|
|
@@ -30313,13 +30313,13 @@ if (false) // removed by dead control flow
|
|
|
30313
30313
|
}
|
|
30314
30314
|
|
|
30315
30315
|
|
|
30316
|
-
/***/ }
|
|
30316
|
+
/***/ },
|
|
30317
30317
|
|
|
30318
|
-
/***/ "./node_modules/.pnpm/react@19.2.0/node_modules/react/jsx-runtime.js"
|
|
30318
|
+
/***/ "./node_modules/.pnpm/react@19.2.0/node_modules/react/jsx-runtime.js"
|
|
30319
30319
|
/*!***************************************************************************!*\
|
|
30320
30320
|
!*** ./node_modules/.pnpm/react@19.2.0/node_modules/react/jsx-runtime.js ***!
|
|
30321
30321
|
\***************************************************************************/
|
|
30322
|
-
|
|
30322
|
+
(module, __unused_webpack_exports, __webpack_require__) {
|
|
30323
30323
|
|
|
30324
30324
|
|
|
30325
30325
|
|
|
@@ -30329,13 +30329,13 @@ if (false) // removed by dead control flow
|
|
|
30329
30329
|
}
|
|
30330
30330
|
|
|
30331
30331
|
|
|
30332
|
-
/***/ }
|
|
30332
|
+
/***/ },
|
|
30333
30333
|
|
|
30334
|
-
/***/ "./node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/cjs/scheduler.development.js"
|
|
30334
|
+
/***/ "./node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/cjs/scheduler.development.js"
|
|
30335
30335
|
/*!*************************************************************************************************!*\
|
|
30336
30336
|
!*** ./node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/cjs/scheduler.development.js ***!
|
|
30337
30337
|
\*************************************************************************************************/
|
|
30338
|
-
|
|
30338
|
+
(__unused_webpack_module, exports) {
|
|
30339
30339
|
|
|
30340
30340
|
/**
|
|
30341
30341
|
* @license React
|
|
@@ -30703,13 +30703,13 @@ if (false) // removed by dead control flow
|
|
|
30703
30703
|
})();
|
|
30704
30704
|
|
|
30705
30705
|
|
|
30706
|
-
/***/ }
|
|
30706
|
+
/***/ },
|
|
30707
30707
|
|
|
30708
|
-
/***/ "./node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/index.js"
|
|
30708
|
+
/***/ "./node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/index.js"
|
|
30709
30709
|
/*!*****************************************************************************!*\
|
|
30710
30710
|
!*** ./node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/index.js ***!
|
|
30711
30711
|
\*****************************************************************************/
|
|
30712
|
-
|
|
30712
|
+
(module, __unused_webpack_exports, __webpack_require__) {
|
|
30713
30713
|
|
|
30714
30714
|
|
|
30715
30715
|
|
|
@@ -30719,7 +30719,7 @@ if (false) // removed by dead control flow
|
|
|
30719
30719
|
}
|
|
30720
30720
|
|
|
30721
30721
|
|
|
30722
|
-
/***/ }
|
|
30722
|
+
/***/ }
|
|
30723
30723
|
|
|
30724
30724
|
/******/ });
|
|
30725
30725
|
/************************************************************************/
|
|
@@ -30856,8 +30856,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
30856
30856
|
|
|
30857
30857
|
|
|
30858
30858
|
|
|
30859
|
-
react_dom__WEBPACK_IMPORTED_MODULE_2__.createRoot = react_dom_client__WEBPACK_IMPORTED_MODULE_3__.createRoot;
|
|
30860
|
-
react_dom__WEBPACK_IMPORTED_MODULE_2__.hydrateRoot = react_dom_client__WEBPACK_IMPORTED_MODULE_3__.hydrateRoot;
|
|
30861
30859
|
|
|
30862
30860
|
|
|
30863
30861
|
})();
|