(req: any)
| 20 | const clientAttempts = new Map<string, { count: number; lastAttempt: number }>(); |
| 21 | |
| 22 | function getClientIdentifier(req: any): string { |
| 23 | return req.ip || req.connection?.remoteAddress || 'unknown'; |
| 24 | } |
| 25 | |
| 26 | function calculateQueryDepth(query: string): number { |
| 27 | let depth = 0; |