@rip-lang/api 0.5.0 → 0.5.1

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/api.rip +3 -0
  2. package/package.json +1 -1
package/api.rip CHANGED
@@ -300,6 +300,9 @@ runHandler = (c, handler) ->
300
300
  export startHandler = -> fetch
301
301
 
302
302
  export start = (opts = {}) ->
303
+ # Skip if running under rip-server (worker sets these env vars)
304
+ return if process.env.WORKER_ID? or process.env.SOCKET_PATH?
305
+
303
306
  handler = startHandler()
304
307
  host = opts.host or '0.0.0.0'
305
308
  port = opts.port or 3000
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rip-lang/api",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Pure Rip API framework — elegant, fast, zero dependencies",
5
5
  "type": "module",
6
6
  "main": "api.rip",