UNPKG

ubon

Version:

Security scanner for AI-generated apps (Cursor, Lovable, Windsurf, v0). Catches hardcoded secrets, prompt injection, hallucinated imports, Server Actions / Edge runtime mistakes, and the vibe-coded vulnerabilities traditional linters miss.

41 lines 923 B
export interface CacheEntry<T> { data: T; timestamp: number; ttl: number; } export declare class FileCache<T> { private cacheDir; constructor(name: string); private ensureCacheDir; private getCacheFilePath; /** * Get cached data if it exists and hasn't expired */ get(key: string): T | null; /** * Store data in cache with TTL */ set(key: string, data: T, ttlMs: number): void; /** * Clear all cached entries (cleanup utility) */ clear(): void; /** * Remove expired entries (maintenance utility) */ cleanup(): void; } /** * Create a cache key for OSV queries */ export declare function createOSVCacheKey(queries: any[]): string; /** * Default TTL values */ export declare const CACHE_TTL: { OSV_VULNERABILITIES: number; SHORT: number; MEDIUM: number; LONG: number; }; //# sourceMappingURL=cache.d.ts.map