@rip-lang/server 1.3.18 → 1.3.19
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 +2 -2
- package/server.rip +5 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rip-lang/server",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.19",
|
|
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.
|
|
48
|
+
"rip-lang": ">=3.13.35"
|
|
49
49
|
},
|
|
50
50
|
"files": [
|
|
51
51
|
"api.rip",
|
package/server.rip
CHANGED
|
@@ -339,6 +339,7 @@ parseFlags = (argv) ->
|
|
|
339
339
|
hsts: has('--hsts')
|
|
340
340
|
redirectHttp: not has('--no-redirect-http')
|
|
341
341
|
reload
|
|
342
|
+
quiet: has('--quiet')
|
|
342
343
|
socketPrefix
|
|
343
344
|
maxQueue: coerceInt(getKV('--max-queue='), coerceInt(process.env.RIP_MAX_QUEUE, 512))
|
|
344
345
|
queueTimeoutMs: coerceInt(getKV('--queue-timeout-ms='), coerceInt(process.env.RIP_QUEUE_TIMEOUT_MS, 30000))
|
|
@@ -1017,7 +1018,7 @@ class Server
|
|
|
1017
1018
|
|
|
1018
1019
|
port = @flags.httpsPort or @flags.httpPort or 80
|
|
1019
1020
|
protocol = if @flags.httpsPort then 'https' else 'http'
|
|
1020
|
-
console.log "rip-server: #{protocol}://#{@flags.appName}.ripdev.io#{formatPort(protocol, port)}"
|
|
1021
|
+
console.log "rip-server: #{protocol}://#{@flags.appName}.ripdev.io#{formatPort(protocol, port)}" unless @flags.quiet
|
|
1021
1022
|
|
|
1022
1023
|
controlFetch: (req) ->
|
|
1023
1024
|
url = new URL(req.url)
|
|
@@ -1139,7 +1140,7 @@ class Server
|
|
|
1139
1140
|
stderr: 'ignore'
|
|
1140
1141
|
|
|
1141
1142
|
@mdnsProcesses.set(host, proc)
|
|
1142
|
-
console.log "rip-server: #{protocol}://#{host}#{formatPort(protocol, port)}"
|
|
1143
|
+
console.log "rip-server: #{protocol}://#{host}#{formatPort(protocol, port)}" unless @flags.quiet
|
|
1143
1144
|
catch e
|
|
1144
1145
|
console.error "rip-server: failed to advertise #{host} via mDNS:", e.message
|
|
1145
1146
|
|
|
@@ -1174,6 +1175,7 @@ main = ->
|
|
|
1174
1175
|
--static Disable hot reload and file watching
|
|
1175
1176
|
--env=<mode> Set environment (dev, production)
|
|
1176
1177
|
--debug Enable debug logging
|
|
1178
|
+
--quiet Suppress URL lines (app prints its own)
|
|
1177
1179
|
|
|
1178
1180
|
Network:
|
|
1179
1181
|
http HTTP only (no TLS)
|
|
@@ -1287,6 +1289,7 @@ main = ->
|
|
|
1287
1289
|
|
|
1288
1290
|
httpOnly = flags.httpsPort is null
|
|
1289
1291
|
protocol = if httpOnly then 'http' else 'https'
|
|
1292
|
+
process.env.RIP_HTTP_ONLY = '1' if httpOnly
|
|
1290
1293
|
port = flags.httpsPort or flags.httpPort or 80
|
|
1291
1294
|
console.log "rip-server: app=#{flags.appName} workers=#{flags.workers} url=#{protocol}://#{flags.appName}.ripdev.io#{formatPort(protocol, port)}/server"
|
|
1292
1295
|
|