xshell 1.0.141 → 1.0.143

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.
Files changed (2) hide show
  1. package/builder.js +8 -6
  2. package/package.json +2 -2
package/builder.js CHANGED
@@ -86,8 +86,10 @@ const dependencies = {
86
86
  maps: {
87
87
  productions: monaco_files.filter(fp => fp.endsWith('.js') && !fp.startsWith('basic-languages/') && !fp.startsWith('language/'))
88
88
  .map(fp => `monaco-editor/min-maps/vs/${fp}.map`),
89
- devs: monaco_files.filter(fp => fp.endsWith('.js') && !fp.startsWith('basic-languages/') && !fp.startsWith('language/'))
90
- .map(fp => `monaco-editor/dev/vs/${fp}.map`),
89
+ devs: [
90
+ 'monaco-editor/dev/vs/base/worker/workerMain.js.map',
91
+ 'monaco-editor/dev/vs/editor/editor.main.js.map',
92
+ ],
91
93
  }
92
94
  },
93
95
  echarts: {
@@ -198,7 +200,7 @@ export class Bundler {
198
200
  },
199
201
  // import { Terminal } from 'xterm'
200
202
  // 实际上 Terminal 直接暴露在了 window 上,而不是 window.Terminal.Terminal
201
- xterm: 'window',
203
+ '@xterm/xterm': 'window',
202
204
  swiper: 'Swiper',
203
205
  ...external_dayjs ? { dayjs: 'dayjs' } : {},
204
206
  antd: 'antd',
@@ -312,7 +314,7 @@ export class Bundler {
312
314
  },
313
315
  ] : [],
314
316
  {
315
- test: /\.(txt|csv)$/,
317
+ test: /\.(txt|csv|dos)$/,
316
318
  type: 'asset/source',
317
319
  }
318
320
  ]
@@ -472,10 +474,10 @@ export class Bundler {
472
474
  (icon ? ` <link rel='icon' href='${to_relative(icon)}' />\n` : '') +
473
475
  (manifest ? ` <link rel='manifest' href='${to_relative(manifest)}' />\n` : '') +
474
476
  this.resolve_dependency_files(_dependencies, false, { production: this.production }).map(fp => ` <script src='./vendors/${fp}' defer></script>`).join_lines() +
475
- (scripts?.before ? scripts.before.map(fp => ` <script src='${fp}' defer></script>`).join_lines() : '') +
477
+ (scripts?.before ? scripts.before.map(asset => ` <script src='${to_relative(asset)}' defer></script>`).join_lines() : '') +
476
478
  (mscripts ? mscripts.map(mscript => ` <script src='${to_relative(mscript)}' type='module'></script>`).join_lines() : '') +
477
479
  ` <script src='${fp_entry}' type='module'></script>\n` +
478
- (scripts?.after ? scripts.after.map(fp => ` <script src='${fp}' defer></script>`).join_lines() : '') +
480
+ (scripts?.after ? scripts.after.map(asset => ` <script src='${to_relative(asset)}' defer></script>`).join_lines() : '') +
479
481
  ' </head>\n' +
480
482
  ' <body>\n' +
481
483
  " <div class='root'>\n" +
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xshell",
3
- "version": "1.0.141",
3
+ "version": "1.0.143",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "bin": {
@@ -125,7 +125,7 @@
125
125
  "@types/koa-compress": "^4.0.6",
126
126
  "@types/lodash": "^4.17.5",
127
127
  "@types/mime-types": "^2.1.4",
128
- "@types/node": "^20.14.7",
128
+ "@types/node": "^20.14.8",
129
129
  "@types/react": "^18.3.3",
130
130
  "@types/through2": "^2.0.41",
131
131
  "@types/tough-cookie": "^4.0.5",