From f5b7bbe62cd484d5e4b6dc6b08e5ae7494173891 Mon Sep 17 00:00:00 2001 From: Georges KABBOUCHI Date: Sun, 19 May 2024 12:49:05 +0300 Subject: [PATCH] feat: include keywords in package filtering (#90) --- app/services/packages_fetcher.ts | 7 ++++++- content/packages/adonisjs-jobs.yml | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/app/services/packages_fetcher.ts b/app/services/packages_fetcher.ts index dfea953..c45af88 100644 --- a/app/services/packages_fetcher.ts +++ b/app/services/packages_fetcher.ts @@ -115,8 +115,13 @@ export class PackagesFetcher { return packages.filter((pkg) => { const name = pkg.name.toLowerCase() const description = pkg.description.toLowerCase() + const keywords = pkg.keywords?.join(' ') || '' - return name.includes(loweredSearch) || description.includes(loweredSearch) + return ( + name.includes(loweredSearch) || + description.includes(loweredSearch) || + keywords.includes(loweredSearch) + ) }) } diff --git a/content/packages/adonisjs-jobs.yml b/content/packages/adonisjs-jobs.yml index fc0af4b..ecb63db 100644 --- a/content/packages/adonisjs-jobs.yml +++ b/content/packages/adonisjs-jobs.yml @@ -8,6 +8,11 @@ website: https://github.com/KABBOUCHI/adonisjs-jobs learn_more: '' category: Extensions type: 3rd-party +keywords: + - queue + - bullmq + - background-jobs + - redis maintainers: - name: Georges KABBOUCHI github: KABBOUCHI