From 214ce026dafb2e1404c3502582076cf6ce6dca42 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Fri, 2 Feb 2024 10:42:29 -0600 Subject: [PATCH] feat: Make get_nextflow_release compatible with arrays Although it seems like we're moving backwards, the new API only supports a single data dump. I still like the iterative nature rather, so tack on array support. --- src/functions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions.ts b/src/functions.ts index 69f1d84..6bc594e 100644 --- a/src/functions.ts +++ b/src/functions.ts @@ -96,7 +96,7 @@ async function get_latest_stable_nextflow_release( export async function get_nextflow_release( version: string, - releases: AsyncGenerator + releases: NextflowRelease[] | AsyncGenerator ): Promise { // First, check to see if we are using a "latest-*" version system, and return // early