UNPKG

@lucidcms/core

Version:

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

2 lines 490 B
import e from"../../../utils/errors/lucid-error.mjs";import{translate as t}from"../../i18n/translate.mjs";import{version as n}from"../../../packages/core/package.mjs";import r from"semver";const i=i=>{let a=i.lucidVersion??n,o=r.coerce(a)??a;if(!r.satisfies(o,i.requiredVersions))throw new e({scope:i.key,message:t(`server:core.plugins.version.not.supported`,{data:{version:o,supportedVersions:i.requiredVersions}})})};export{i as default}; //# sourceMappingURL=check-plugin-version.mjs.map