UNPKG

@lucidcms/core

Version:

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

2 lines 378 B
import{copy as e}from"../../../i18n/copy.mjs";import t from"../../../../utils/errors/tidy-zod-errors.mjs";const n=e=>e.replace(/\n/g,` `).trim().replaceAll(` →`,` →`),r=(r,i)=>{let a=i.safeParse(r);if(a?.success)return{valid:!0};let o=n(t(a.error));return{valid:!1,message:e.literal(o)}};export{r as default,n as modifyMessage}; //# sourceMappingURL=zod-safe-parse.mjs.map