xshell 1.0.170 → 1.0.171

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 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: monaco_files.filter(fp => fp.endsWith('.js') && !fp.startsWith('basic-languages/') && !fp.startsWith('language/'))
87
- .map(fp => `monaco-editor/min-maps/vs/${fp}.map`),
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',
package/i18n/i18n-scan.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,138 +1,144 @@
1
1
  {
2
- "name": "xshell",
3
- "version": "1.0.170",
4
- "type": "module",
5
- "main": "./index.js",
6
- "bin": {
7
- "xshell": "xshell.js",
8
- "i18n-scan": "i18n/i18n-scan.js"
9
- },
10
- "description": "xshell is a shell designed to provide a brand new human-computer interaction experience.",
11
- "keywords": [
12
- "shell",
13
- "node",
14
- "repl",
15
- "i18n",
16
- "interactive programming"
17
- ],
18
- "author": "ShenHongFei <shen.hongfei@outlook.com> (https://github.com/ShenHongFei)",
19
- "publisher": "ShenHongFei",
20
- "homepage": "https://www.npmjs.com/package/xshell",
21
- "icon": "xshell.png",
22
- "extensionKind": [
23
- "workspace"
24
- ],
25
- "activationEvents": [
26
- "onStartupFinished"
27
- ],
28
- "contributes": {
29
- "commands": [
30
- {
31
- "command": "xshell_repl",
32
- "title": "xshell_repl"
33
- }
2
+ "name": "xshell",
3
+ "version": "1.0.171",
4
+ "type": "module",
5
+ "main": "./index.js",
6
+ "bin": {
7
+ "xshell": "xshell.js",
8
+ "i18n-scan": "i18n/i18n-scan.js"
9
+ },
10
+ "description": "xshell is a shell designed to provide a brand new human-computer interaction experience.",
11
+ "keywords": [
12
+ "shell",
13
+ "node",
14
+ "repl",
15
+ "i18n",
16
+ "interactive programming"
34
17
  ],
35
- "keybindings": [
36
- {
37
- "command": "xshell_repl",
38
- "key": "ctrl+enter",
39
- "when": "editorTextFocus && (editorLangId == 'typescript' || editorLangId == 'javascript' || editorLangId == 'typescriptreact' || editorLangId == 'javascriptreact')"
40
- }
41
- ]
42
- },
43
- "dependencies": {
44
- "@babel/core": "^7.25.2",
45
- "@babel/parser": "^7.25.6",
46
- "@babel/traverse": "^7.25.6",
47
- "@koa/cors": "^5.0.0",
48
- "@stylistic/eslint-plugin": "^2.8.0",
49
- "@svgr/webpack": "^8.1.0",
50
- "@types/sass-loader": "^8.0.9",
51
- "@types/ws": "^8.5.12",
52
- "@typescript-eslint/eslint-plugin": "^8.6.0",
53
- "@typescript-eslint/parser": "^8.6.0",
54
- "@typescript-eslint/utils": "^8.6.0",
55
- "@xterm/addon-fit": "^0.10.0",
56
- "@xterm/addon-web-links": "^0.11.0",
57
- "@xterm/addon-webgl": "^0.18.0",
58
- "@xterm/xterm": "^5.5.0",
59
- "ali-oss": "^6.21.0",
60
- "archiver": "^7.0.1",
61
- "byte-size": "^9.0.0",
62
- "chalk": "^5.3.0",
63
- "chardet": "^2.0.0",
64
- "cli-table3": "^0.6.5",
65
- "cli-truncate": "^4.0.0",
66
- "colors": "^1.4.0",
67
- "commander": "^12.1.0",
68
- "css-loader": "^7.1.2",
69
- "emoji-regex": "^10.4.0",
70
- "eslint": "^9.10.0",
71
- "eslint-plugin-import": "^2.30.0",
72
- "eslint-plugin-react": "^7.36.1",
73
- "gulp-sort": "^2.0.0",
74
- "hash-string": "^1.0.0",
75
- "https-proxy-agent": "^7.0.5",
76
- "i18next": "^23.15.1",
77
- "i18next-scanner": "^4.5.0",
78
- "koa": "^2.15.3",
79
- "koa-compress": "^5.1.1",
80
- "license-webpack-plugin": "^4.0.2",
81
- "lodash": "^4.17.21",
82
- "map-stream": "^0.0.7",
83
- "mime-types": "^2.1.35",
84
- "ora": "^8.1.0",
85
- "react": "^18.3.1",
86
- "react-i18next": "^15.0.2",
87
- "react-object-model": "^1.2.13",
88
- "resolve-path": "^1.4.0",
89
- "sass": "^1.79.1",
90
- "sass-loader": "^16.0.1",
91
- "source-map-loader": "^5.0.0",
92
- "strip-ansi": "^7.1.0",
93
- "style-loader": "^4.0.0",
94
- "through2": "^4.0.2",
95
- "tough-cookie": "^5.0.0-rc.4",
96
- "ts-loader": "^9.5.1",
97
- "tslib": "^2.7.0",
98
- "typescript": "^5.6.2",
99
- "ua-parser-js": "^2.0.0-beta.3",
100
- "undici": "^6.19.8",
101
- "vinyl": "^3.0.0",
102
- "vinyl-fs": "^4.0.0",
103
- "webpack": "^5.94.0",
104
- "webpack-bundle-analyzer": "^4.10.2",
105
- "ws": "^8.18.0"
106
- },
107
- "devDependencies": {
108
- "@babel/types": "^7.25.6",
109
- "@types/ali-oss": "^6.16.11",
110
- "@types/archiver": "^6.0.2",
111
- "@types/babel__traverse": "^7.20.6",
112
- "@types/byte-size": "^8.1.2",
113
- "@types/chardet": "^0.8.3",
114
- "@types/eslint": "^9.6.1",
115
- "@types/estree": "^1.0.6",
116
- "@types/gulp-sort": "^2.0.4",
117
- "@types/koa": "^2.15.0",
118
- "@types/koa-compress": "^4.0.6",
119
- "@types/lodash": "^4.17.7",
120
- "@types/mime-types": "^2.1.4",
121
- "@types/node": "^22.5.5",
122
- "@types/react": "^18.3.7",
123
- "@types/through2": "^2.0.41",
124
- "@types/tough-cookie": "^4.0.5",
125
- "@types/ua-parser-js": "^0.7.39",
126
- "@types/vinyl-fs": "^3.0.5",
127
- "@types/vscode": "^1.93.0",
128
- "@types/webpack-bundle-analyzer": "^4.7.0"
129
- },
130
- "scripts": {
131
- "start": "node --title=xshell --inspect=0.0.0.0:8420 ./xshell.js",
132
- "typecheck": "tsc --noEmit",
133
- "build": "tsc",
134
- "package": "vsce package",
135
- "publish:npm": "npm publish --access=public",
136
- "publish:extension": "vsce publish"
137
- }
138
- }
18
+ "scripts": {
19
+ "start": "node --title=xshell --inspect=0.0.0.0:8420 ./xshell.js",
20
+ "typecheck": "tsc --noEmit",
21
+ "build": "tsc",
22
+ "package": "vsce package",
23
+ "publish:npm": "npm publish --access=public",
24
+ "publish:extension": "vsce publish"
25
+ },
26
+ "author": "ShenHongFei <shen.hongfei@outlook.com> (https://github.com/ShenHongFei)",
27
+ "publisher": "ShenHongFei",
28
+ "homepage": "https://www.npmjs.com/package/xshell",
29
+ "icon": "xshell.png",
30
+ "extensionKind": [
31
+ "workspace"
32
+ ],
33
+ "activationEvents": [
34
+ "onStartupFinished"
35
+ ],
36
+ "contributes": {
37
+ "commands": [
38
+ {
39
+ "command": "xshell_repl",
40
+ "title": "xshell_repl"
41
+ }
42
+ ],
43
+ "keybindings": [
44
+ {
45
+ "command": "xshell_repl",
46
+ "key": "ctrl+enter",
47
+ "when": "editorTextFocus && (editorLangId == 'typescript' || editorLangId == 'javascript' || editorLangId == 'typescriptreact' || editorLangId == 'javascriptreact')"
48
+ }
49
+ ]
50
+ },
51
+ "dependencies": {
52
+ "@babel/core": "^7.25.2",
53
+ "@babel/parser": "^7.25.6",
54
+ "@babel/traverse": "^7.25.6",
55
+ "@koa/cors": "^5.0.0",
56
+ "@stylistic/eslint-plugin": "^2.8.0",
57
+ "@svgr/webpack": "^8.1.0",
58
+ "@types/sass-loader": "^8.0.9",
59
+ "@types/ws": "^8.5.12",
60
+ "@typescript-eslint/eslint-plugin": "^8.6.0",
61
+ "@typescript-eslint/parser": "^8.6.0",
62
+ "@typescript-eslint/utils": "^8.6.0",
63
+ "@xterm/addon-fit": "^0.10.0",
64
+ "@xterm/addon-web-links": "^0.11.0",
65
+ "@xterm/addon-webgl": "^0.18.0",
66
+ "@xterm/xterm": "^5.5.0",
67
+ "ali-oss": "^6.21.0",
68
+ "archiver": "^7.0.1",
69
+ "byte-size": "^9.0.0",
70
+ "chalk": "^5.3.0",
71
+ "chardet": "^2.0.0",
72
+ "cli-table3": "^0.6.5",
73
+ "cli-truncate": "^4.0.0",
74
+ "colors": "^1.4.0",
75
+ "commander": "^12.1.0",
76
+ "css-loader": "^7.1.2",
77
+ "emoji-regex": "^10.4.0",
78
+ "eslint": "^9.10.0",
79
+ "eslint-plugin-import": "^2.30.0",
80
+ "eslint-plugin-react": "^7.36.1",
81
+ "gulp-sort": "^2.0.0",
82
+ "hash-string": "^1.0.0",
83
+ "https-proxy-agent": "^7.0.5",
84
+ "i18next": "^23.15.1",
85
+ "i18next-scanner": "^4.5.0",
86
+ "koa": "^2.15.3",
87
+ "koa-compress": "^5.1.1",
88
+ "license-webpack-plugin": "^4.0.2",
89
+ "lodash": "^4.17.21",
90
+ "map-stream": "^0.0.7",
91
+ "mime-types": "^2.1.35",
92
+ "ora": "^8.1.0",
93
+ "react": "^18.3.1",
94
+ "react-i18next": "^15.0.2",
95
+ "react-object-model": "^1.2.13",
96
+ "resolve-path": "^1.4.0",
97
+ "sass": "^1.79.2",
98
+ "sass-loader": "^16.0.1",
99
+ "source-map-loader": "^5.0.0",
100
+ "strip-ansi": "^7.1.0",
101
+ "style-loader": "^4.0.0",
102
+ "through2": "^4.0.2",
103
+ "tough-cookie": "^5.0.0-rc.4",
104
+ "ts-loader": "^9.5.1",
105
+ "tslib": "^2.7.0",
106
+ "typescript": "^5.6.2",
107
+ "ua-parser-js": "^2.0.0-beta.3",
108
+ "undici": "^6.19.8",
109
+ "vinyl": "^3.0.0",
110
+ "vinyl-fs": "^4.0.0",
111
+ "webpack": "^5.94.0",
112
+ "webpack-bundle-analyzer": "^4.10.2",
113
+ "ws": "^8.18.0"
114
+ },
115
+ "devDependencies": {
116
+ "@babel/types": "^7.25.6",
117
+ "@types/ali-oss": "^6.16.11",
118
+ "@types/archiver": "^6.0.2",
119
+ "@types/babel__traverse": "^7.20.6",
120
+ "@types/byte-size": "^8.1.2",
121
+ "@types/chardet": "^0.8.3",
122
+ "@types/eslint": "^9.6.1",
123
+ "@types/estree": "^1.0.6",
124
+ "@types/gulp-sort": "^2.0.4",
125
+ "@types/koa": "^2.15.0",
126
+ "@types/koa-compress": "^4.0.6",
127
+ "@types/lodash": "^4.17.7",
128
+ "@types/mime-types": "^2.1.4",
129
+ "@types/node": "^22.5.5",
130
+ "@types/react": "^18.3.8",
131
+ "@types/through2": "^2.0.41",
132
+ "@types/tough-cookie": "^4.0.5",
133
+ "@types/ua-parser-js": "^0.7.39",
134
+ "@types/vinyl-fs": "^3.0.5",
135
+ "@types/vscode": "^1.93.0",
136
+ "@types/webpack-bundle-analyzer": "^4.7.0"
137
+ },
138
+ "pnpm": {
139
+ "patchedDependencies": {
140
+ "@types/byte-size@8.1.2": "patches/@types__byte-size@8.1.2.patch",
141
+ "koa@2.15.3": "patches/koa@2.15.3.patch"
142
+ }
143
+ }
144
+ }