@rip-lang/server 1.0.1 → 1.0.3
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/package.json +1 -1
- package/server.rip +3 -3
package/package.json
CHANGED
package/server.rip
CHANGED
|
@@ -280,7 +280,7 @@ parseFlags = (argv) ->
|
|
|
280
280
|
httpIntent = hasHttpKeyword or httpPortToken?
|
|
281
281
|
httpsIntent = true unless httpsIntent or httpIntent
|
|
282
282
|
|
|
283
|
-
httpPort = if httpIntent then (httpPortToken
|
|
283
|
+
httpPort = if httpIntent then (httpPortToken ?? 0) else 0
|
|
284
284
|
httpsPortDerived = if not httpIntent then (bareIntPort or httpsPortToken or 0) else null
|
|
285
285
|
|
|
286
286
|
socketPrefixOverride = getKV('--socket-prefix=')
|
|
@@ -373,7 +373,7 @@ runWorker = ->
|
|
|
373
373
|
return workerState.handler if workerState.handler
|
|
374
374
|
|
|
375
375
|
try
|
|
376
|
-
mod =
|
|
376
|
+
mod = import!(appEntry)
|
|
377
377
|
|
|
378
378
|
# Ensure module has fully executed by yielding to microtask queue
|
|
379
379
|
await Promise.resolve()
|
|
@@ -389,7 +389,7 @@ runWorker = ->
|
|
|
389
389
|
|
|
390
390
|
unless h
|
|
391
391
|
try
|
|
392
|
-
api =
|
|
392
|
+
api = import!('@rip-lang/api')
|
|
393
393
|
h = api?.startHandler?()
|
|
394
394
|
catch
|
|
395
395
|
null
|