@donedeal0/codefather
Version:
Codefather protects your codebase by controlling who can change what. Set authorization levels, lock down files, and enforce your rules—offline via CLI or online with GitHub Actions.
1 lines • 656 B
JavaScript
;var t=()=>typeof document>"u"?new URL(`file:${__filename}`).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href,e=t();var n=(r=>(r.Success="success",r.MultiSuccess="multi-success",r.Error="error",r.MultiErrors="multi-errors",r.Warning="warning",r.NoChanges="no-changes",r.NotFound="not-found",r.NoGitConfig="no-gitconfig",r))(n||{}),a={success:"\x1B[32m",error:"\x1B[31m",warning:"\x1B[33m",info:"\x1B[37m"};function u(o){try{return JSON.parse(o)}catch{throw new Error("Your JSON file is invalid. You gotta respect the rules if you want my help.")}}exports.a=e;exports.b=n;exports.c=a;exports.d=u;