From 5a3a39e795a601f4be16e39c53dfd1b2ad008700 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Thu, 1 Jul 2021 21:57:28 +0200 Subject: [PATCH] Update pluginManager.service.ts --- .../src/services/pluginManager.service.ts | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/tabby-plugin-manager/src/services/pluginManager.service.ts b/tabby-plugin-manager/src/services/pluginManager.service.ts index 4a70b1d52..0b49ab7c7 100644 --- a/tabby-plugin-manager/src/services/pluginManager.service.ts +++ b/tabby-plugin-manager/src/services/pluginManager.service.ts @@ -41,15 +41,18 @@ export class PluginManagerService { }, }) ).pipe( - map(response => response.data.objects.map(item => ({ - name: item.package.name.substring(namePrefix.length), - packageName: item.package.name, - description: item.package.description, - version: item.package.version, - homepage: item.package.links.homepage, - author: (item.package.author || {}).name, - isOfficial: item.package.publisher.name === OFFICIAL_NPM_ACCOUNT, - }))), + map(response => response.data.objects + .filter(item => !item.keywords?.includes('tabby-dummy-transition-plugin')) + .map(item => ({ + name: item.package.name.substring(namePrefix.length), + packageName: item.package.name, + description: item.package.description, + version: item.package.version, + homepage: item.package.links.homepage, + author: (item.package.author || {}).name, + isOfficial: item.package.publisher.name === OFFICIAL_NPM_ACCOUNT, + })) + ), map(plugins => plugins.filter(x => x.packageName.startsWith(namePrefix))), map(plugins => plugins.filter(x => !BLACKLIST.includes(x.packageName))), map(plugins => plugins.sort((a, b) => a.name.localeCompare(b.name))),