mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-20 09:11:12 -05:00
Fix: Add .js extensions to bot detection imports
This commit is contained in:
@@ -3,9 +3,9 @@
|
|||||||
* Combines user-agent patterns, header analysis, and behavioral heuristics
|
* Combines user-agent patterns, header analysis, and behavioral heuristics
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { BOT_PATTERNS, GENERIC_BOT_REGEX } from './userAgentPatterns';
|
import { BOT_PATTERNS, GENERIC_BOT_REGEX } from './userAgentPatterns.js';
|
||||||
import { analyzeHeaders } from './headerAnalysis';
|
import { analyzeHeaders } from './headerAnalysis.js';
|
||||||
import { analyzeHeuristics } from './heuristics';
|
import { analyzeHeuristics } from './heuristics.js';
|
||||||
|
|
||||||
export interface BotDetectionResult {
|
export interface BotDetectionResult {
|
||||||
isBot: boolean;
|
isBot: boolean;
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ type VercelResponse = ServerResponse & {
|
|||||||
send: (body: string) => VercelResponse;
|
send: (body: string) => VercelResponse;
|
||||||
};
|
};
|
||||||
|
|
||||||
import { detectBot } from './botDetection/index';
|
import { detectBot } from './botDetection/index.js';
|
||||||
|
|
||||||
interface PageData {
|
interface PageData {
|
||||||
title: string;
|
title: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user