UNPKG

@lucidcms/core

Version:

The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.

2 lines 602 B
import{getMigrationRiskPriority as e}from"../../collection/migration/assess-migration-plan.mjs";const t=(e,t)=>e.risk===`destructive`?`destructive`:e.risk===`warning`||t?`warning`:`safe`,n=({assessment:e,hasPendingDatabaseMigrations:n,yes:r,allowDestructive:i})=>{if(i)return`proceed`;let a=t(e,n);return a===`destructive`?r?`reject-destructive`:`prompt-destructive`:a===`warning`?r?`proceed`:`prompt-warning`:`proceed`},r=(t,n)=>e(n.risk)>e(t.risk);export{t as getEffectiveMigrationRisk,r as requiresPostMigrationApproval,n as resolveMigrationApproval}; //# sourceMappingURL=migration-approval.mjs.map