Initial commit
This commit is contained in:
commit
b3a51a4115
10336 changed files with 2381973 additions and 0 deletions
13
node_modules/hono/dist/utils/handler.js
generated
vendored
Normal file
13
node_modules/hono/dist/utils/handler.js
generated
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
// src/utils/handler.ts
|
||||
import { COMPOSED_HANDLER } from "./constants.js";
|
||||
var isMiddleware = (handler) => handler.length > 1;
|
||||
var findTargetHandler = (handler) => {
|
||||
return handler[COMPOSED_HANDLER] ? (
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
findTargetHandler(handler[COMPOSED_HANDLER])
|
||||
) : handler;
|
||||
};
|
||||
export {
|
||||
findTargetHandler,
|
||||
isMiddleware
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue