@live-change/server 0.9.106 → 0.9.108

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/lib/Services.js CHANGED
@@ -199,8 +199,10 @@ class Services {
199
199
  return app.startService(defn, startOptions)
200
200
  }))
201
201
  this.services = await this.servicesPromise
202
- for(const service of this.services) {
203
- setTimeout(() => service.afterStart(startOptions), 0)
202
+ if(!startOptions.stopped) {
203
+ for(const service of this.services) {
204
+ setTimeout(() => service.afterStart(startOptions), 0)
205
+ }
204
206
  }
205
207
  }
206
208
 
@@ -23,8 +23,8 @@ async function setupApiServer(settings) {
23
23
 
24
24
  if(updateServices) await services.update()
25
25
  await services.start(withServices
26
- ? { runCommands: true, handleEvents: true, indexSearch: true }
27
- : { runCommands: false, handleEvents: false, indexSearch: false })
26
+ ? { runCommands: true, handleEvents: true, indexSearch: true, stopped: settings.stopped }
27
+ : { runCommands: false, handleEvents: false, indexSearch: false, stopped: true })
28
28
 
29
29
  if(settings.initScript) {
30
30
  if(config.init) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/server",
3
- "version": "0.9.106",
3
+ "version": "0.9.108",
4
4
  "description": "Live Change Framework - server",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -22,13 +22,13 @@
22
22
  "type": "module",
23
23
  "homepage": "https://github.com/live-change/live-change-stack",
24
24
  "dependencies": {
25
- "@live-change/dao": "^0.9.106",
26
- "@live-change/dao-sockjs": "^0.9.106",
27
- "@live-change/db-server": "^0.9.106",
28
- "@live-change/framework": "^0.9.106",
25
+ "@live-change/dao": "^0.9.108",
26
+ "@live-change/dao-sockjs": "^0.9.108",
27
+ "@live-change/db-server": "^0.9.108",
28
+ "@live-change/framework": "^0.9.108",
29
29
  "@live-change/sockjs": "0.4.1",
30
- "@live-change/uid": "^0.9.106",
31
- "dotenv": "^16.4.4",
30
+ "@live-change/uid": "^0.9.108",
31
+ "dotenv": "^16.5.0",
32
32
  "express": "^4.18.2",
33
33
  "express-static-gzip": "2.1.7",
34
34
  "http-proxy-middleware": "2.0.6",
@@ -39,5 +39,5 @@
39
39
  "websocket": "^1.0.34",
40
40
  "yargs": "^17.7.2"
41
41
  },
42
- "gitHead": "1afc853b9044a57046dae972df68d89c8c1cd1a6"
42
+ "gitHead": "c500fad0c238b17fa816248f16e9e9692abea569"
43
43
  }