@samiyev/guardian
Version:
Research-backed code quality guardian for AI-assisted development. Detects hardcodes, secrets, circular deps, framework leaks, entity exposure, and 9 architecture violations. Enforces Clean Architecture/DDD principles. Works with GitHub Copilot, Cursor, W
19 lines • 469 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DomainEvent = void 0;
const uuid_1 = require("uuid");
/**
* Base class for domain events
*/
class DomainEvent {
eventId;
occurredOn;
eventType;
constructor(eventType) {
this.eventId = (0, uuid_1.v4)();
this.occurredOn = new Date();
this.eventType = eventType;
}
}
exports.DomainEvent = DomainEvent;
//# sourceMappingURL=DomainEvent.js.map