xshell 1.0.175 → 1.0.178
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 +13 -9
- package/package.json +24 -24
package/builder.js
CHANGED
|
@@ -5,14 +5,15 @@ import { fcopy, fmkdir, fwrite } from './file.js';
|
|
|
5
5
|
import { path } from './path.js';
|
|
6
6
|
const monaco_files = [
|
|
7
7
|
'loader.js',
|
|
8
|
+
'nls.messages.zh-cn.js',
|
|
8
9
|
'editor/editor.main.js',
|
|
9
10
|
'editor/editor.main.css',
|
|
10
|
-
'editor/editor.main.nls.js',
|
|
11
|
-
'editor/editor.main.nls.zh-cn.js',
|
|
12
|
-
'base/common/worker/simpleWorker.nls.js',
|
|
13
11
|
'base/worker/workerMain.js',
|
|
14
12
|
'base/browser/ui/codicons/codicon/codicon.ttf',
|
|
15
13
|
...['python', 'javascript', 'typescript', 'css', 'html', 'cpp', 'sql', 'scss', 'shell'].map(language => `basic-languages/${language}/${language}.js`),
|
|
14
|
+
// 太大了,先不加
|
|
15
|
+
// 'language/typescript/tsMode.js',
|
|
16
|
+
// 'language/typescript/tsWorker.js',
|
|
16
17
|
];
|
|
17
18
|
const dependencies = {
|
|
18
19
|
react: {
|
|
@@ -83,8 +84,12 @@ const dependencies = {
|
|
|
83
84
|
devs: monaco_files.map(fp => `monaco-editor/dev/vs/${fp}`)
|
|
84
85
|
},
|
|
85
86
|
maps: {
|
|
86
|
-
productions:
|
|
87
|
-
|
|
87
|
+
productions: [
|
|
88
|
+
'monaco-editor/min-maps/vs/base/worker/workerMain.js.map',
|
|
89
|
+
'monaco-editor/min-maps/vs/editor/editor.main.js.map',
|
|
90
|
+
'monaco-editor/min-maps/vs/loader.js.map',
|
|
91
|
+
'monaco-editor/min-maps/nls.messages.zh-cn.js.map',
|
|
92
|
+
],
|
|
88
93
|
devs: [
|
|
89
94
|
'monaco-editor/dev/vs/base/worker/workerMain.js.map',
|
|
90
95
|
'monaco-editor/dev/vs/editor/editor.main.js.map',
|
|
@@ -487,8 +492,7 @@ export class Bundler {
|
|
|
487
492
|
]);
|
|
488
493
|
}
|
|
489
494
|
async build_htmls(print = { info: true, files: false }) {
|
|
490
|
-
|
|
491
|
-
await Promise.all(Object.entries(this.htmls).map(async ([fp_html, { fp_entry = `${root}index.js`, device_viewport: device_width = false, icon, manifest, dependencies: _dependencies = this.dependencies, title, scripts, mscripts, notice = false, heads, }]) => {
|
|
495
|
+
await Promise.all(Object.entries(this.htmls).map(async ([fp_html, { fp_entry = 'index.js', device_viewport: device_width = false, icon, manifest, dependencies: _dependencies = this.dependencies, title, scripts, mscripts, notice = false, heads, }]) => {
|
|
492
496
|
const fpd_html = `${this.fpd_out}${fp_html}`.fdir;
|
|
493
497
|
const resolve = (asset) => this.assets_root ?
|
|
494
498
|
`${this.assets_root}${typeof asset === 'string' ? asset : asset.out}`
|
|
@@ -503,10 +507,10 @@ export class Bundler {
|
|
|
503
507
|
(device_width ? " <meta name='viewport' content='width=device-width, initial-scale=1.0' />\n" : '') +
|
|
504
508
|
(icon ? ` <link rel='icon' href='${resolve(icon)}' />\n` : '') +
|
|
505
509
|
(manifest ? ` <link rel='manifest' href='${resolve(manifest)}' />\n` : '') +
|
|
506
|
-
this.resolve_dependency_files(_dependencies, false, { production: this.production }).map(fp => ` <script src='${
|
|
510
|
+
this.resolve_dependency_files(_dependencies, false, { production: this.production }).map(fp => ` <script src='${this.assets_root || '/'}vendors/${fp}' defer></script>`).join_lines() +
|
|
507
511
|
(scripts?.before ? scripts.before.map(asset => ` <script src='${resolve(asset)}' defer></script>`).join_lines() : '') +
|
|
508
512
|
(mscripts ? mscripts.map(mscript => ` <script src='${resolve(mscript)}' type='module'></script>`).join_lines() : '') +
|
|
509
|
-
` <script src='${fp_entry}' type='module'></script>\n` +
|
|
513
|
+
` <script src='${this.assets_root}${fp_entry}' type='module'></script>\n` +
|
|
510
514
|
(scripts?.after ? scripts.after.map(asset => ` <script src='${resolve(asset)}' defer></script>`).join_lines() : '') +
|
|
511
515
|
' </head>\n' +
|
|
512
516
|
' <body>\n' +
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xshell",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.178",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"bin": {
|
|
@@ -49,17 +49,17 @@
|
|
|
49
49
|
]
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@babel/core": "^7.25.
|
|
53
|
-
"@babel/parser": "^7.25.
|
|
54
|
-
"@babel/traverse": "^7.25.
|
|
52
|
+
"@babel/core": "^7.25.8",
|
|
53
|
+
"@babel/parser": "^7.25.8",
|
|
54
|
+
"@babel/traverse": "^7.25.7",
|
|
55
55
|
"@koa/cors": "^5.0.0",
|
|
56
|
-
"@stylistic/eslint-plugin": "^2.
|
|
56
|
+
"@stylistic/eslint-plugin": "^2.9.0",
|
|
57
57
|
"@svgr/webpack": "^8.1.0",
|
|
58
58
|
"@types/sass-loader": "^8.0.9",
|
|
59
59
|
"@types/ws": "^8.5.12",
|
|
60
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
61
|
-
"@typescript-eslint/parser": "^8.
|
|
62
|
-
"@typescript-eslint/utils": "^8.
|
|
60
|
+
"@typescript-eslint/eslint-plugin": "^8.9.0",
|
|
61
|
+
"@typescript-eslint/parser": "^8.9.0",
|
|
62
|
+
"@typescript-eslint/utils": "^8.9.0",
|
|
63
63
|
"@xterm/addon-fit": "^0.10.0",
|
|
64
64
|
"@xterm/addon-web-links": "^0.11.0",
|
|
65
65
|
"@xterm/addon-webgl": "^0.18.0",
|
|
@@ -75,14 +75,14 @@
|
|
|
75
75
|
"commander": "^12.1.0",
|
|
76
76
|
"css-loader": "^7.1.2",
|
|
77
77
|
"emoji-regex": "^10.4.0",
|
|
78
|
-
"eslint": "^9.
|
|
79
|
-
"eslint-plugin-import": "^2.
|
|
80
|
-
"eslint-plugin-react": "^7.
|
|
78
|
+
"eslint": "^9.12.0",
|
|
79
|
+
"eslint-plugin-import": "^2.31.0",
|
|
80
|
+
"eslint-plugin-react": "^7.37.1",
|
|
81
81
|
"gulp-sort": "^2.0.0",
|
|
82
82
|
"hash-string": "^1.0.0",
|
|
83
83
|
"https-proxy-agent": "^7.0.5",
|
|
84
|
-
"i18next": "^23.
|
|
85
|
-
"i18next-scanner": "^4.
|
|
84
|
+
"i18next": "^23.16.0",
|
|
85
|
+
"i18next-scanner": "^4.6.0",
|
|
86
86
|
"koa": "^2.15.3",
|
|
87
87
|
"koa-compress": "^5.1.1",
|
|
88
88
|
"license-webpack-plugin": "^4.0.2",
|
|
@@ -91,11 +91,11 @@
|
|
|
91
91
|
"mime-types": "^2.1.35",
|
|
92
92
|
"ora": "^8.1.0",
|
|
93
93
|
"react": "^18.3.1",
|
|
94
|
-
"react-i18next": "^15.0.
|
|
94
|
+
"react-i18next": "^15.0.3",
|
|
95
95
|
"react-object-model": "^1.2.13",
|
|
96
96
|
"resolve-path": "^1.4.0",
|
|
97
|
-
"sass": "^1.79.
|
|
98
|
-
"sass-loader": "^16.0.
|
|
97
|
+
"sass": "^1.79.5",
|
|
98
|
+
"sass-loader": "^16.0.2",
|
|
99
99
|
"source-map-loader": "^5.0.0",
|
|
100
100
|
"strip-ansi": "^7.1.0",
|
|
101
101
|
"style-loader": "^4.0.0",
|
|
@@ -103,17 +103,17 @@
|
|
|
103
103
|
"tough-cookie": "^5.0.0-rc.4",
|
|
104
104
|
"ts-loader": "^9.5.1",
|
|
105
105
|
"tslib": "^2.7.0",
|
|
106
|
-
"typescript": "^5.6.
|
|
106
|
+
"typescript": "^5.6.3",
|
|
107
107
|
"ua-parser-js": "^2.0.0-beta.3",
|
|
108
|
-
"undici": "^6.
|
|
108
|
+
"undici": "^6.20.1",
|
|
109
109
|
"vinyl": "^3.0.0",
|
|
110
110
|
"vinyl-fs": "^4.0.0",
|
|
111
|
-
"webpack": "^5.
|
|
111
|
+
"webpack": "^5.95.0",
|
|
112
112
|
"webpack-bundle-analyzer": "^4.10.2",
|
|
113
113
|
"ws": "^8.18.0"
|
|
114
114
|
},
|
|
115
115
|
"devDependencies": {
|
|
116
|
-
"@babel/types": "^7.25.
|
|
116
|
+
"@babel/types": "^7.25.8",
|
|
117
117
|
"@types/ali-oss": "^6.16.11",
|
|
118
118
|
"@types/archiver": "^6.0.2",
|
|
119
119
|
"@types/babel__traverse": "^7.20.6",
|
|
@@ -124,15 +124,15 @@
|
|
|
124
124
|
"@types/gulp-sort": "^2.0.4",
|
|
125
125
|
"@types/koa": "^2.15.0",
|
|
126
126
|
"@types/koa-compress": "^4.0.6",
|
|
127
|
-
"@types/lodash": "^4.17.
|
|
127
|
+
"@types/lodash": "^4.17.10",
|
|
128
128
|
"@types/mime-types": "^2.1.4",
|
|
129
|
-
"@types/node": "^22.
|
|
130
|
-
"@types/react": "^18.3.
|
|
129
|
+
"@types/node": "^22.7.5",
|
|
130
|
+
"@types/react": "^18.3.11",
|
|
131
131
|
"@types/through2": "^2.0.41",
|
|
132
132
|
"@types/tough-cookie": "^4.0.5",
|
|
133
133
|
"@types/ua-parser-js": "^0.7.39",
|
|
134
134
|
"@types/vinyl-fs": "^3.0.5",
|
|
135
|
-
"@types/vscode": "^1.
|
|
135
|
+
"@types/vscode": "^1.94.0",
|
|
136
136
|
"@types/webpack-bundle-analyzer": "^4.7.0"
|
|
137
137
|
},
|
|
138
138
|
"pnpm": {
|