From a175a09dee144ca2bb8f84435d334c8bf6d80379 Mon Sep 17 00:00:00 2001 From: Thomas Taylor Date: Wed, 18 Feb 2026 12:53:02 +0000 Subject: [PATCH] Add defensive code to getType --- lib/integration/Plugin.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/integration/Plugin.js b/lib/integration/Plugin.js index 6653fa3..c35ed2c 100644 --- a/lib/integration/Plugin.js +++ b/lib/integration/Plugin.js @@ -336,9 +336,10 @@ export default class Plugin { async getType () { if (this._type) return this._type const info = await this.getInfo() + if (!info) return null const foundAttributeType = PLUGIN_TYPES.find(type => info[type]) const foundKeywordType = info.keywords - .map(keyword => { + ?.map(keyword => { const typematches = PLUGIN_TYPES.filter(type => keyword?.toLowerCase()?.includes(type)) return typematches.length ? typematches[0] : null })