@rip-lang/server 1.3.14 → 1.3.16

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 +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rip-lang/server",
3
- "version": "1.3.14",
3
+ "version": "1.3.16",
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.30"
48
+ "rip-lang": ">=3.13.32"
49
49
  },
50
50
  "files": [
51
51
  "api.rip",
package/server.rip CHANGED
@@ -124,7 +124,7 @@ logAccessHuman = (app, req, res, totalSeconds, workerSeconds) ->
124
124
  size = scale(bytes, 'B')
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
- type = (typeAbbrev[sub] or sub or '-').padEnd(4)
127
+ type = (typeAbbrev[sub] or sub or '').padEnd(4)
128
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'])
@@ -590,7 +590,7 @@ class Manager
590
590
  for dir in dirs
591
591
  try
592
592
  w = watch dir, { recursive: true }, (event, filename) ->
593
- if filename?.endsWith('.rip')
593
+ if filename?.endsWith('.rip') or filename?.endsWith('.html')
594
594
  broadcast('reload')
595
595
  else if filename?.endsWith('.css')
596
596
  broadcast('css')