UNPKG

optivise

Version:

Optivise - The Ultimate Optimizely Development Assistant with AI-powered features, zero-config setup, and comprehensive development support

16 lines 442 B
export class AuditTrailService { enabled = process.env.OPTIVISE_AUDIT === 'true'; events = []; record(event) { if (!this.enabled) return; this.events.push(event); if (this.events.length > 1000) this.events.shift(); } getRecent() { return [...this.events].slice(-100); } } export const auditTrail = new AuditTrailService(); //# sourceMappingURL=audit-trail.js.map