This repository was archived by the owner on Jul 31, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ export class App<
222
222
223
223
const path = typeof base === 'string' ? base : '/'
224
224
225
- let regex : { keys : string [ ] | boolean ; pattern : RegExp } | undefined
225
+ let regex : any
226
226
227
227
for ( const fn of fns ) {
228
228
if ( fn instanceof App ) {
@@ -263,7 +263,8 @@ export class App<
263
263
find ( url : string , method : string ) {
264
264
return this . middleware . filter ( ( m ) => {
265
265
if ( ! m . path ) m . path = '/'
266
- m . regex = m . type === 'mw' ? rg ( m . path , true ) : rg ( m . path )
266
+
267
+ m . regex = ( m . type === 'mw' ? rg ( m . path , true ) : rg ( m . path ) ) as { pattern : RegExp ; keys : false }
267
268
268
269
return ( m . method ? m . method === method : true ) && m . regex ?. pattern . test ( url )
269
270
} )
Original file line number Diff line number Diff line change @@ -21,4 +21,4 @@ export type { Req, Res }
21
21
22
22
export { serve , Server } from 'https://deno.land/std@0.97.0/http/server.ts'
23
23
24
- export { Router , pushMiddleware } from 'https://esm.sh/@tinyhttp/router@1.3.1 '
24
+ export { Router , pushMiddleware } from 'https://esm.sh/@tinyhttp/router@1.3.3 '
Original file line number Diff line number Diff line change 4
4
"entry" : " ./mod.ts" ,
5
5
"description" : " 0-legacy, tiny & fast web framework as a replacement of Express" ,
6
6
"homepage" : " https://github.com/talentlessguy/tinyhttp-deno" ,
7
- "version" : " 0.1.3 " ,
7
+ "version" : " 0.1.4 " ,
8
8
"files" : [
9
9
" ./*.ts" ,
10
10
" ./utils/*.ts" ,
You can’t perform that action at this time.
0 commit comments