@jsango/admin-audit
v1.3.0
Published
Structured audit log for jsango Admin — records every create, update, delete, and action
Readme
@jsango/admin-audit
Production-grade audit logging, sensitive field redaction, and change tracking for jsango Admin.
Part of the jsango backend framework for TypeScript.
Installation
pnpm add @jsango/admin-auditUsage
import { AdminAuditLogger, InMemoryAuditStore, diffChanges } from '@jsango/admin-audit';
const store = new InMemoryAuditStore();
const logger = new AdminAuditLogger(store);
await logger.log({
resourceName: 'User',
recordId: '123',
action: 'update',
userId: 'admin-1',
changes: diffChanges({ email: '[email protected]' }, { email: '[email protected]' }),
});Documentation
For full architecture documentation and guides, visit the jsango documentation.
License
MIT © jsango contributors
