@rip-lang/server 1.3.23 → 1.3.25

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 +2 -2
  2. package/server.rip +6 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rip-lang/server",
3
- "version": "1.3.23",
3
+ "version": "1.3.25",
4
4
  "description": "Pure Rip web framework and application server",
5
5
  "type": "module",
6
6
  "main": "api.rip",
@@ -45,7 +45,7 @@
45
45
  "author": "Steve Shreeve <steve.shreeve@gmail.com>",
46
46
  "license": "MIT",
47
47
  "dependencies": {
48
- "rip-lang": ">=3.13.39"
48
+ "rip-lang": ">=3.13.41"
49
49
  },
50
50
  "files": [
51
51
  "api.rip",
package/server.rip CHANGED
@@ -514,7 +514,12 @@ class Manager
514
514
  if existsSync(setupFile)
515
515
  # Check reachability before setup — determines if WE will start the DB
516
516
  dbUrl = process.env.DB_URL or 'http://localhost:4213'
517
- dbAlreadyRunning = await (try fetch(dbUrl + '/health').then(-> true) catch -> false)
517
+ dbAlreadyRunning = do! ->
518
+ try
519
+ await fetch(dbUrl + '/health')
520
+ true
521
+ catch
522
+ false
518
523
  @dbUrl = dbUrl unless dbAlreadyRunning
519
524
 
520
525
  setupEnv = Object.assign {}, process.env,