UNPKG

@casoon/auditmysite

Version:

Professional website analysis suite with robust accessibility testing, Core Web Vitals performance monitoring, SEO analysis, and content optimization insights. Features isolated browser contexts, retry mechanisms, and comprehensive API endpoints for profe

91 lines 2.54 kB
import { FullAuditResult } from '../../types/audit-results'; /** * Core Audit Options - Simplified for v2.0 * Focus on essential functionality for Sitemap audit with JSON export */ export interface CoreAuditOptions { sitemapUrl: string; maxPages?: number; outputDir?: string; generateHTML?: boolean; collectPerformanceMetrics?: boolean; timeout?: number; pa11yStandard?: 'WCAG2A' | 'WCAG2AA' | 'WCAG2AAA' | 'Section508'; maxConcurrent?: number; captureScreenshots?: boolean; includeWarnings?: boolean; } /** * 🚀 Core Audit Pipeline v2.0 * * Simplified, maintainable pipeline focused on: * 1. Sitemap audit (CORE) * 2. JSON export (PRIORITY 1) * 3. HTML report (PRIORITY 2) * * Key improvements: * - Reduced from 286 to <150 lines * - Only 2 queue modes (Standard vs Enhanced) * - Consistent JSON output structure * - Async file operations * - Single browser manager instance */ export declare class CoreAuditPipeline { /** * Main pipeline execution */ run(options: CoreAuditOptions): Promise<FullAuditResult>; /** * Parse sitemap and return structured result */ private parseSitemap; /** * Initialize browser pool (optimized for v2.0) */ private initializeBrowserPool; /** * Run accessibility audit with all features - OPTIMIZED v2.0 */ private runAccessibilityAudit; /** * Build full audit result with strict typing */ private buildFullAuditResult; /** * Map legacy AccessibilityResult to typed PageAuditResult */ private mapToPageAuditResult; /** * Calculate accessibility score from legacy result */ private calculateAccessibilityScore; /** * Map legacy performance data to PerformanceResult (stub) */ private mapPerformanceResult; /** * Map legacy SEO data to SEOResult (stub) */ private mapSEOResult; /** * Map legacy content weight data to ContentWeightResult (stub) */ private mapContentWeightResult; /** * Export to JSON (CORE FUNCTIONALITY) - returns file path for HTML generator */ private exportToJSON; /** * Generate HTML report from JSON file (Sprint 2 architecture) */ private generateHTMLReport; /** * Convert FullAuditResult to legacy format (temporary compatibility) */ private convertToLegacyFormat; /** * Cleanup browser resources */ private cleanupBrowserPool; } //# sourceMappingURL=core-audit-pipeline.d.ts.map