From f2af1891ee5c859ee9be77aad6f41bcaadd50225 Mon Sep 17 00:00:00 2001 From: Evert Prants Date: Thu, 7 Oct 2021 18:50:09 +0300 Subject: [PATCH] check for new schema in meta file --- package.json | 2 +- src/plugin/repository/manager.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7c9ffaf..cb7df83 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/plugin/repository/manager.ts b/src/plugin/repository/manager.ts index 28eb264..1de6f6f 100644 --- a/src/plugin/repository/manager.ts +++ b/src/plugin/repository/manager.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.'); }