rhonojs 0.1.0 → 0.1.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rhonojs",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Reactive Web app server focusing on MPAs with a simple server route & browser build api...uses Hono, ESBuild, rmemo, & ctx-core",
5
5
  "keywords": [
6
6
  "reactive",
@@ -127,7 +127,11 @@ export async function app__attach(app) {
127
127
  }
128
128
  }
129
129
  for (const middleware of middleware_a1) {
130
- app.use(middleware)
130
+ if (middleware instanceof Hono) {
131
+ app.route('/', middleware)
132
+ } else {
133
+ app.use(middleware)
134
+ }
131
135
  }
132
136
  app$.set(app)
133
137
  }).catch(err=>{