File tree Expand file tree Collapse file tree 4 files changed +3
-5
lines changed
Expand file tree Collapse file tree 4 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 1- # 1.4.22
1+ # 1.4.22 - 14 Jan 2026
22Improvement:
33- use imperative check for ` replaceURLPath ` instead of allocating ` new URL `
44- reduce ts-ignore/ts-expect-error on promise map handler
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ export const createDynamicHandler = (app: AnyElysia) => {
117117 // @ts -ignore
118118 if ( hooks . config ?. mount )
119119 // @ts -ignore
120- return hooks . config . mount ( request )
120+ return await hooks . config . mount ( request )
121121
122122 let body : string | Record < string , any > | undefined
123123 if ( request . method !== 'GET' && request . method !== 'HEAD' ) {
Original file line number Diff line number Diff line change @@ -8071,7 +8071,7 @@ export default class Elysia<
80718071 *
80728072 * Beside benchmark purpose, please use 'handle' instead.
80738073 */
8074- get fetch ( ) {
8074+ get fetch ( ) : ( request : Request ) => MaybePromise < Response > {
80758075 const fetch = this . config . aot
80768076 ? composeGeneralHandler ( this )
80778077 : createDynamicHandler ( this )
Original file line number Diff line number Diff line change @@ -145,8 +145,6 @@ export const fileType = async (
145145 const result = await fileTypeFromBlob ( file )
146146 if ( ! result ) throw new InvalidFileType ( name , extension )
147147
148- console . log ( result , extension )
149-
150148 if ( typeof extension === 'string' )
151149 if ( ! checkFileExtension ( result . mime , extension ) )
152150 throw new InvalidFileType ( name , extension )
You can’t perform that action at this time.
0 commit comments