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

23 lines 581 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ResponseDto = void 0; class ResponseDto { success; data; error; timestamp; constructor(success, data, error) { this.success = success; this.data = data; this.error = error; this.timestamp = new Date(); } static ok(data) { return new ResponseDto(true, data); } static fail(error) { return new ResponseDto(false, undefined, error); } } exports.ResponseDto = ResponseDto; //# sourceMappingURL=ResponseDto.js.map