UNPKG

@lucidcms/core

Version:

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

2 lines 343 B
import{copy as e}from"../../i18n/copy.mjs";import t from"../../../utils/errors/lucid-api-error.mjs";import{zValidator as n}from"./z-validator.mjs";const r=(r,i)=>n(r,i,n=>{if(!n.success)throw new t({type:`validation`,message:e(`server:core.errors.validation.message`),zod:n.error})});export{r as default}; //# sourceMappingURL=validate.mjs.map