UNPKG

@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

21 lines 545 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ValueObject = void 0; /** * Base class for Value Objects * Value objects are immutable and compared by value, not identity */ class ValueObject { props; constructor(props) { this.props = Object.freeze(props); } equals(vo) { if (!vo) { return false; } return JSON.stringify(this.props) === JSON.stringify(vo.props); } } exports.ValueObject = ValueObject; //# sourceMappingURL=ValueObject.js.map