xshell 1.0.106 → 1.0.108
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/package.json +9 -9
- package/server.js +2 -2
- package/utils.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xshell",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.108",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"bin": {
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
]
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@babel/core": "^7.24.
|
|
57
|
-
"@babel/parser": "^7.24.
|
|
58
|
-
"@babel/traverse": "^7.24.
|
|
56
|
+
"@babel/core": "^7.24.6",
|
|
57
|
+
"@babel/parser": "^7.24.6",
|
|
58
|
+
"@babel/traverse": "^7.24.6",
|
|
59
59
|
"@koa/cors": "^5.0.0",
|
|
60
60
|
"@types/ws": "^8.5.10",
|
|
61
61
|
"@typescript-eslint/eslint-plugin": "^7.10.0",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"mime-types": "^2.1.35",
|
|
91
91
|
"ora": "^8.0.1",
|
|
92
92
|
"react": "^18.3.1",
|
|
93
|
-
"react-i18next": "^14.1.
|
|
93
|
+
"react-i18next": "^14.1.2",
|
|
94
94
|
"react-object-model": "^1.2.5",
|
|
95
95
|
"resolve-path": "^1.4.0",
|
|
96
96
|
"strip-ansi": "^7.1.0",
|
|
@@ -99,16 +99,16 @@
|
|
|
99
99
|
"tslib": "^2.6.2",
|
|
100
100
|
"typescript": "^5.4.5",
|
|
101
101
|
"ua-parser-js": "^2.0.0-beta.2",
|
|
102
|
-
"undici": "^6.18.
|
|
102
|
+
"undici": "^6.18.1",
|
|
103
103
|
"vinyl": "^3.0.0",
|
|
104
104
|
"vinyl-fs": "^4.0.0",
|
|
105
105
|
"ws": "^8.17.0"
|
|
106
106
|
},
|
|
107
107
|
"devDependencies": {
|
|
108
|
-
"@babel/types": "^7.24.
|
|
108
|
+
"@babel/types": "^7.24.6",
|
|
109
109
|
"@types/ali-oss": "^6.16.11",
|
|
110
110
|
"@types/archiver": "^6.0.2",
|
|
111
|
-
"@types/babel__traverse": "^7.20.
|
|
111
|
+
"@types/babel__traverse": "^7.20.6",
|
|
112
112
|
"@types/byte-size": "^8.1.2",
|
|
113
113
|
"@types/chardet": "^0.8.3",
|
|
114
114
|
"@types/eslint": "^8.56.10",
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"@types/lodash": "^4.17.4",
|
|
120
120
|
"@types/mime-types": "^2.1.4",
|
|
121
121
|
"@types/node": "^20.12.12",
|
|
122
|
-
"@types/react": "^18.3.
|
|
122
|
+
"@types/react": "^18.3.3",
|
|
123
123
|
"@types/through2": "^2.0.41",
|
|
124
124
|
"@types/tough-cookie": "^4.0.5",
|
|
125
125
|
"@types/ua-parser-js": "^0.7.39",
|
package/server.js
CHANGED
|
@@ -248,7 +248,7 @@ export class Server {
|
|
|
248
248
|
// 时间
|
|
249
249
|
`${new Date().to_time_str()} ` +
|
|
250
250
|
// ip(位置)
|
|
251
|
-
(ip || '').limit(
|
|
251
|
+
(ip || '').limit(40) + ' ' +
|
|
252
252
|
// ua
|
|
253
253
|
this.format_ua(headers).limit(56) + ' ' +
|
|
254
254
|
// https/2.0
|
|
@@ -347,7 +347,7 @@ export class Server {
|
|
|
347
347
|
// 时间
|
|
348
348
|
s += `${new Date().to_time_str()} `;
|
|
349
349
|
// ip(位置)
|
|
350
|
-
s += (ip || '').limit(
|
|
350
|
+
s += (ip || '').limit(40) + ' ';
|
|
351
351
|
// ua
|
|
352
352
|
s += this.process_ua(ctx).limit(56) + ' ';
|
|
353
353
|
// https/2.0
|
package/utils.js
CHANGED
|
@@ -26,7 +26,7 @@ export function set_inspect_options(colors = true) {
|
|
|
26
26
|
export function assert(assertion, message) {
|
|
27
27
|
if (!assertion) {
|
|
28
28
|
debugger;
|
|
29
|
-
throw Object.assign(new Error(
|
|
29
|
+
throw Object.assign(new Error(`${t('断言失败')}: ${message ? `${message}: ` : ''}${inspect(assertion, { colors: false, compact: true })}`), { assertion });
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
export function log(obj) {
|