lucid-package 0.0.119 → 0.0.120

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lucid-package",
3
- "version": "0.0.119",
3
+ "version": "0.0.120",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -118,8 +118,7 @@ async function debugEditorExtension(extensionNames, isInternal, quiet = false, p
118
118
  const port = 9900;
119
119
  const watchers = await Promise.all(extensionNames.map(async (name) => watchEditorExtension(name, isInternal, quiet, watchIgnoreNodeModules)));
120
120
  const app = express();
121
- const server = listen(app, port, pickAnyPort);
122
- setupWebSockets(server);
121
+ listen(app, port, pickAnyPort);
123
122
  const errorLog = new Map();
124
123
  recordErrors(watchers, errorLog);
125
124
  app.use(cors_1.corsAllowLucid);
@@ -230,10 +229,11 @@ async function debugEditorExtension(extensionNames, isInternal, quiet = false, p
230
229
  }
231
230
  exports.debugEditorExtension = debugEditorExtension;
232
231
  function listen(app, port, pickAnyPort) {
233
- return app
232
+ const server = app
234
233
  .listen(port, 'localhost', () => {
235
234
  console.log((0, theme_1.success)('Listening at http://localhost:' + port + '/extension.js'));
236
235
  (0, shapelibrary_1.debugShapeLibraries)(undefined, pickAnyPort);
236
+ setupWebSockets(server);
237
237
  })
238
238
  .on('error', (err) => {
239
239
  if (err.code === 'EADDRINUSE') {