From b8f77887ac8a78e7522c2cf83da592f9fe792a78 Mon Sep 17 00:00:00 2001 From: splatter Date: Mon, 24 Feb 2025 01:06:27 +0000 Subject: [PATCH] fix edge case with plugin without a name Signed-off-by: splatter --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index 1b375a8..e13cf38 100644 --- a/index.ts +++ b/index.ts @@ -71,7 +71,7 @@ const LOGO_NO_ANSI = `\ // CCCCCCC ███████████████████████████ // ```; -const isApiPlugin = (plugin: Plugin) => plugin.name.endsWith("API") || plugin.required; +const isApiPlugin = (plugin: Plugin) => plugin.name?.endsWith("API") || plugin.required; function getEnabledPlugins() { const counters = {