| 3 | import detectBot from 'isbot' |
| 4 | |
| 5 | export interface RequestWithBotDetector extends Request { |
| 6 | isBot: boolean |
| 7 | botName: string |
| 8 | } |
| 9 | |
| 10 | export function botDetector(): Handler<RequestWithBotDetector, Response> { |
| 11 | return (req, _, next) => { |
nothing calls this directly
no outgoing calls
no test coverage detected