xshell 1.0.75 → 1.0.76

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/package.json +1 -1
  2. package/server.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xshell",
3
- "version": "1.0.75",
3
+ "version": "1.0.76",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "bin": {
package/server.js CHANGED
@@ -78,7 +78,6 @@ export class Server {
78
78
  const { default: KoaCompress } = await import('koa-compress');
79
79
  const { UAParser } = await import('ua-parser-js');
80
80
  this.UAParser = UAParser;
81
- const { WebSocketServer } = await import('ws');
82
81
  // --- init koa app
83
82
  let app = new Koa();
84
83
  app.on('error', this.on_error.bind(this));
@@ -129,6 +128,7 @@ export class Server {
129
128
  }
130
129
  // websocket rpc
131
130
  if (this.remote) {
131
+ const { WebSocketServer } = await import('ws');
132
132
  this.websocket_server = new WebSocketServer({
133
133
  noServer: true,
134
134
  skipUTF8Validation: true,