check for new schema in meta file

This commit is contained in:
Evert Prants 2021-10-07 18:50:09 +03:00
parent 039dcc943e
commit f2af1891ee
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@squeebot/core",
"version": "3.3.4",
"version": "3.3.5",
"description": "Squeebot v3 core for the execution environment",
"main": "lib/index.js",
"types": "lib/index.d.ts",

View File

@ -159,7 +159,7 @@ export class RepositoryManager {
const indexFileGet = await httpGET(url);
const meta = JSON.parse(indexFileGet);
if (!meta.name || !meta.plugins || !meta.schema) {
if (!meta.name || !meta.plugins || !(meta.$schema || meta.schema)) {
throw new Error('Invalid metadata file for repository.');
}