check for new schema in meta file
This commit is contained in:
parent
039dcc943e
commit
f2af1891ee
@ -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",
|
||||
|
@ -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.');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user