xshell 1.2.20 → 1.2.21
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 +4 -0
- package/package.json +13 -13
- package/repl.js +11 -3
- package/server.js +1 -1
- /package/patches/{koa@2.15.4.patch → koa@2.16.0.patch} +0 -0
package/builder.js
CHANGED
|
@@ -358,6 +358,10 @@ export class Bundler {
|
|
|
358
358
|
loader: get_loader('@svgr/webpack'),
|
|
359
359
|
options: { icon: true }
|
|
360
360
|
},
|
|
361
|
+
{
|
|
362
|
+
test: /\.raw\.svg$/,
|
|
363
|
+
type: 'asset/source',
|
|
364
|
+
},
|
|
361
365
|
{
|
|
362
366
|
test: /\.(svg|ico|png|jpe?g|gif|woff2?|ttf|eot|otf|mp4|webm|ogg|mp3|wav|flac|aac)$/,
|
|
363
367
|
type: 'asset/inline',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xshell",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.21",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"bin": {
|
|
@@ -53,13 +53,13 @@
|
|
|
53
53
|
"@babel/parser": "^7.26.9",
|
|
54
54
|
"@babel/traverse": "^7.26.9",
|
|
55
55
|
"@koa/cors": "^5.0.0",
|
|
56
|
-
"@stylistic/eslint-plugin": "^4.0
|
|
56
|
+
"@stylistic/eslint-plugin": "^4.2.0",
|
|
57
57
|
"@svgr/webpack": "^8.1.0",
|
|
58
58
|
"@types/sass-loader": "^8.0.9",
|
|
59
|
-
"@types/ws": "^8.
|
|
60
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
61
|
-
"@typescript-eslint/parser": "^8.
|
|
62
|
-
"@typescript-eslint/utils": "^8.
|
|
59
|
+
"@types/ws": "^8.18.0",
|
|
60
|
+
"@typescript-eslint/eslint-plugin": "^8.26.0",
|
|
61
|
+
"@typescript-eslint/parser": "^8.26.0",
|
|
62
|
+
"@typescript-eslint/utils": "^8.26.0",
|
|
63
63
|
"archiver": "^7.0.1",
|
|
64
64
|
"chalk": "^5.4.1",
|
|
65
65
|
"cli-table3": "^0.6.5",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"https-proxy-agent": "^7.0.6",
|
|
75
75
|
"i18next": "^24.2.2",
|
|
76
76
|
"i18next-scanner": "^4.6.0",
|
|
77
|
-
"koa": "^2.
|
|
77
|
+
"koa": "^2.16.0",
|
|
78
78
|
"koa-compress": "^5.1.1",
|
|
79
79
|
"license-webpack-plugin": "^4.0.2",
|
|
80
80
|
"map-stream": "^0.0.7",
|
|
@@ -90,12 +90,12 @@
|
|
|
90
90
|
"strip-ansi": "^7.1.0",
|
|
91
91
|
"style-loader": "^4.0.0",
|
|
92
92
|
"through2": "^4.0.2",
|
|
93
|
-
"tough-cookie": "^5.1.
|
|
93
|
+
"tough-cookie": "^5.1.2",
|
|
94
94
|
"ts-loader": "^9.5.2",
|
|
95
95
|
"tslib": "^2.8.1",
|
|
96
|
-
"typescript": "^5.
|
|
96
|
+
"typescript": "^5.8.2",
|
|
97
97
|
"ua-parser-js": "^2.0.2",
|
|
98
|
-
"undici": "^7.
|
|
98
|
+
"undici": "^7.4.0",
|
|
99
99
|
"vinyl": "^3.0.0",
|
|
100
100
|
"vinyl-fs": "^4.0.0",
|
|
101
101
|
"webpack": "^5.98.0",
|
|
@@ -112,18 +112,18 @@
|
|
|
112
112
|
"@types/koa": "^2.15.0",
|
|
113
113
|
"@types/koa-compress": "^4.0.6",
|
|
114
114
|
"@types/mime-types": "^2.1.4",
|
|
115
|
-
"@types/node": "^22.13.
|
|
115
|
+
"@types/node": "^22.13.9",
|
|
116
116
|
"@types/react": "^19.0.10",
|
|
117
117
|
"@types/through2": "^2.0.41",
|
|
118
118
|
"@types/tough-cookie": "^4.0.5",
|
|
119
119
|
"@types/ua-parser-js": "^0.7.39",
|
|
120
120
|
"@types/vinyl-fs": "^3.0.5",
|
|
121
|
-
"@types/vscode": "^1.
|
|
121
|
+
"@types/vscode": "^1.98.0",
|
|
122
122
|
"@types/webpack-bundle-analyzer": "^4.7.0"
|
|
123
123
|
},
|
|
124
124
|
"pnpm": {
|
|
125
125
|
"patchedDependencies": {
|
|
126
|
-
"koa@2.
|
|
126
|
+
"koa@2.16.0": "patches/koa@2.16.0.patch"
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
}
|
package/repl.js
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) {
|
|
2
|
+
if (typeof path === "string" && /^\.\.?\//.test(path)) {
|
|
3
|
+
return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
|
|
4
|
+
return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
|
|
5
|
+
});
|
|
6
|
+
}
|
|
7
|
+
return path;
|
|
8
|
+
};
|
|
1
9
|
import repl from 'repl';
|
|
2
10
|
import process from 'process';
|
|
3
11
|
import { fileURLToPath } from 'url';
|
|
@@ -28,7 +36,7 @@ export async function start_repl() {
|
|
|
28
36
|
pollute_global(),
|
|
29
37
|
(async () => {
|
|
30
38
|
// --- http server
|
|
31
|
-
let { Server } = await import(
|
|
39
|
+
let { Server } = await import("./server.js");
|
|
32
40
|
server = new Server({
|
|
33
41
|
name: 'repl',
|
|
34
42
|
http: true,
|
|
@@ -78,9 +86,9 @@ export async function pollute_global() {
|
|
|
78
86
|
]);
|
|
79
87
|
}
|
|
80
88
|
export async function pollute_module_exports(fp_mod) {
|
|
81
|
-
Object.assign(globalThis, await import(fp_mod));
|
|
89
|
+
Object.assign(globalThis, await import(__rewriteRelativeImportExtension(fp_mod)));
|
|
82
90
|
}
|
|
83
91
|
export async function pollute_module_default_export(fp_mod, name) {
|
|
84
|
-
globalThis[name] = (await import(fp_mod)).default;
|
|
92
|
+
globalThis[name] = (await import(__rewriteRelativeImportExtension(fp_mod))).default;
|
|
85
93
|
}
|
|
86
94
|
//# sourceMappingURL=repl.js.map
|
package/server.js
CHANGED
|
@@ -37,7 +37,7 @@ export class Server {
|
|
|
37
37
|
/** sea 下最后修改时间,用于 http 资源缓存 */
|
|
38
38
|
last_modified_str;
|
|
39
39
|
static js_exts = new Set(['js', 'mjs', 'cjs']);
|
|
40
|
-
static logger_ignore_fexts = new Set(['js', 'css', 'map', 'png', 'jpg', 'svg', 'ico', 'json', 'woff2', 'ttf', 'php']);
|
|
40
|
+
static logger_ignore_fexts = new Set(['js', 'css', 'wasm', 'map', 'png', 'jpg', 'svg', 'ico', 'json', 'woff2', 'ttf', 'php']);
|
|
41
41
|
static empty_body_statuses = new Set([304, 204, 205]);
|
|
42
42
|
static empty_body_methods = new Set(['HEAD', 'OPTIONS']);
|
|
43
43
|
app;
|
|
File without changes
|