Skip to content

Commit 4478914

Browse files
committed
🧹 chore: clean up code review feedback
1 parent bc882d4 commit 4478914

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 1.4.22
1+
# 1.4.22 - 14 Jan 2026
22
Improvement:
33
- use imperative check for `replaceURLPath` instead of allocating `new URL`
44
- reduce ts-ignore/ts-expect-error on promise map handler

src/dynamic-handle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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') {

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

src/type-system/utils.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)