page-integrity-js
Version:
A library for monitoring and controlling DOM mutations and script execution, essential for PCI DSS compliance and security audits
15 lines (14 loc) • 476 B
TypeScript
import { ScriptAnalysis } from './script-analyzer';
export interface CacheEntry {
url: string;
analysis?: ScriptAnalysis;
reason?: string;
}
export declare class CacheManager {
private cacheName;
private maxSize;
constructor(cacheName?: string, maxSize?: number);
cacheResponse(hash: string, url: string, analysis?: ScriptAnalysis): Promise<void>;
getCachedResponse(hash: string): Promise<CacheEntry | null>;
clearCache(): Promise<void>;
}