Fix: Add .js extensions to bot detection imports

This commit is contained in:
gpt-engineer-app[bot]
2025-10-29 22:50:22 +00:00
parent a2cb037410
commit 1614c7f9d1
2 changed files with 4 additions and 4 deletions

View File

@@ -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;

View File

@@ -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;