download
raw
387 Bytes
// 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
};

Xet Storage Details

Size:
387 Bytes
·
Xet hash:
09ad5fa1d9c7803340095b454b33fd249cf71ea2139283087d4e7e3f59cd3b0f

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.