Z User
phase7: MCP stdio smoke test (handshake + tools/list + get_roots 6:74) — 4/4 tests PASS
54a6341 Download node_modules/hono/dist/cjs/utils/handler.js from bravesigma/quran-md-plugin: direct link, hf CLI and curl.
- Browser
- Download file 514 Bytes
-
https://huggingface.co/datasets/bravesigma/quran-md-plugin/resolve/main/node_modules/hono/dist/cjs/utils/handler.js
- Command line
-
hf download hf://datasets/bravesigma/quran-md-plugin/node_modules/hono/dist/cjs/utils/handler.js
-
curl -L -o handler.js https://huggingface.co/datasets/bravesigma/quran-md-plugin/resolve/main/node_modules/hono/dist/cjs/utils/handler.js
514 Bytes
| Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); | |
| const require_utils_constants = require("./constants.js"); | |
| //#region src/utils/handler.ts | |
| /** | |
| * @module | |
| * Handler utility. | |
| */ | |
| const isMiddleware = (handler) => handler.length > 1; | |
| const findTargetHandler = (handler) => { | |
| return handler["__COMPOSED_HANDLER"] ? findTargetHandler(handler[require_utils_constants.COMPOSED_HANDLER]) : handler; | |
| }; | |
| //#endregion | |
| exports.findTargetHandler = findTargetHandler; | |
| exports.isMiddleware = isMiddleware; | |