xshell 1.0.171 → 1.0.173

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,15 +5,14 @@ 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',
9
8
  'editor/editor.main.js',
10
9
  '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',
11
13
  'base/worker/workerMain.js',
12
14
  'base/browser/ui/codicons/codicon/codicon.ttf',
13
15
  ...['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',
17
16
  ];
18
17
  const dependencies = {
19
18
  react: {
@@ -84,12 +83,8 @@ const dependencies = {
84
83
  devs: monaco_files.map(fp => `monaco-editor/dev/vs/${fp}`)
85
84
  },
86
85
  maps: {
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
- ],
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`),
93
88
  devs: [
94
89
  'monaco-editor/dev/vs/base/worker/workerMain.js.map',
95
90
  'monaco-editor/dev/vs/editor/editor.main.js.map',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xshell",
3
- "version": "1.0.171",
3
+ "version": "1.0.173",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "bin": {
package/utils.browser.js CHANGED
@@ -11,7 +11,7 @@ export function assert(assertion, message) {
11
11
  export function log(...args) {
12
12
  if (args.length === 2) {
13
13
  const [label, obj] = args;
14
- console.log(`${label}:`, obj);
14
+ console.log(label, obj);
15
15
  return obj;
16
16
  }
17
17
  else {
package/utils.js CHANGED
@@ -33,7 +33,7 @@ export function assert(assertion, message) {
33
33
  export function log(...args) {
34
34
  if (args.length === 2) {
35
35
  const [label, obj] = args;
36
- console.log(`${label}:`, obj);
36
+ console.log(label, obj);
37
37
  return obj;
38
38
  }
39
39
  else {