profoundjs 6.0.0-beta.8 → 6.0.0-beta.9

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.
@@ -15,7 +15,7 @@
15
15
  "node": "^14 || ^16 || ^18"
16
16
  },
17
17
  "dependencies": {
18
- "profoundjs": "^6.0.0-beta.8"
18
+ "profoundjs": "^6.0.0-beta.9"
19
19
  },
20
20
  "scripts": {
21
21
  "start": "node start.js"
Binary file
package/setup/start.js CHANGED
@@ -14,11 +14,9 @@ async function startPJS() {
14
14
  process.exit(1);
15
15
  }
16
16
  profoundjs.applyConfig(config);
17
- var isWorker = await profoundjs.server.listen();
18
- if (isWorker) {
19
- var express = profoundjs.server.express;
20
- var app = profoundjs.server.app;
21
- app.use(express.json());
22
- }
17
+ await profoundjs.server.listen();
18
+ var express = profoundjs.server.express;
19
+ var app = profoundjs.server.app;
20
+ app.use(express.json());
23
21
  }
24
22
  startPJS();