@rip-lang/server 1.3.57 → 1.3.58

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/middleware.rip +3 -3
  2. package/package.json +1 -1
package/middleware.rip CHANGED
@@ -518,11 +518,11 @@ export serve = (opts = {}) ->
518
518
 
519
519
  # Route: {prefix}/*.rip — serve .rip files from the app directory tree
520
520
  appDirResolved = resolve(appDir)
521
- get "#{prefix}/*.rip" (c) ->
522
- name = c.req.path.slice("#{prefix}/".length)
521
+ get "#{prefix}/*.rip" ->
522
+ name = @req.path.slice("#{prefix}/".length)
523
523
  path = resolve(appDir, name)
524
524
  return unless path.startsWith(appDirResolved)
525
- c.send path, 'text/x-rip; charset=UTF-8' if existsSync(path)
525
+ @send path, 'text/x-rip; charset=UTF-8' if existsSync(path)
526
526
 
527
527
  # Route: {prefix}/bundle — all components + app data as JSON (cached + Brotli)
528
528
  bundleCache = { json: null, br: null, etag: null }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rip-lang/server",
3
- "version": "1.3.57",
3
+ "version": "1.3.58",
4
4
  "description": "Pure Rip web framework and application server",
5
5
  "type": "module",
6
6
  "main": "api.rip",