@rip-lang/server 0.7.5 → 0.7.6

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.rip +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rip-lang/server",
3
- "version": "0.7.5",
3
+ "version": "0.7.6",
4
4
  "description": "Pure Rip application server — multi-worker, hot reload, HTTPS, mDNS",
5
5
  "type": "module",
6
6
  "main": "server.rip",
package/server.rip CHANGED
@@ -728,13 +728,14 @@ class Server
728
728
  status: ->
729
729
  uptime = Math.floor((nowMs() - @startedAt) / 1000)
730
730
  healthy = @sockets.length > 0
731
+ hosts = Array.from(@hostRegistry.values())
731
732
  body = JSON.stringify
732
733
  status: if healthy then 'healthy' else 'degraded'
733
734
  app: @flags.appName
734
735
  workers: @sockets.length
735
736
  ports: { http: @flags.httpPort or undefined, https: @flags.httpsPort or undefined }
736
- uptime
737
- hosts: Array.from(@hostRegistry.values())
737
+ uptime: uptime
738
+ hosts: hosts
738
739
  headers = new Headers({ 'content-type': 'application/json', 'cache-control': 'no-cache' })
739
740
  @maybeAddSecurityHeaders(headers)
740
741
  new Response(body, { headers })