@rip-lang/server 1.3.15 → 1.3.17
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/middleware.rip +1 -0
- package/package.json +2 -2
- package/server.rip +1 -1
package/middleware.rip
CHANGED
|
@@ -532,6 +532,7 @@ export serve = (opts = {}) ->
|
|
|
532
532
|
components["components/#{path}"] = Bun.file("#{routesDir}/#{path}").text!
|
|
533
533
|
for dir in componentDirs
|
|
534
534
|
for path in Array.from(glob.scanSync(dir)).sort()
|
|
535
|
+
continue if path is 'index.rip' or path.endsWith('/index.rip')
|
|
535
536
|
key = "components/_lib/#{path}"
|
|
536
537
|
components[key] = Bun.file("#{dir}/#{path}").text! unless components[key]
|
|
537
538
|
data = {}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rip-lang/server",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.17",
|
|
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.33"
|
|
49
49
|
},
|
|
50
50
|
"files": [
|
|
51
51
|
"api.rip",
|
package/server.rip
CHANGED
|
@@ -125,7 +125,7 @@ logAccessHuman = (app, req, res, totalSeconds, workerSeconds) ->
|
|
|
125
125
|
contentType = (res.headers.get('content-type') or '').split(';')[0] or ''
|
|
126
126
|
sub = if contentType.includes('/') then contentType.split('/')[1] else contentType
|
|
127
127
|
type = (typeAbbrev[sub] or sub or '').padEnd(4)
|
|
128
|
-
console.log "[#{timestamp} #{timezone} #{dur}] #{status} #{type} #{size}
|
|
128
|
+
console.log "[#{timestamp} #{timezone} #{dur}] #{status} #{type} #{size} │ #{method} #{path}"
|
|
129
129
|
|
|
130
130
|
INTERNAL_HEADERS = new Set(['rip-worker-busy', 'rip-worker-id', 'rip-no-log'])
|
|
131
131
|
|