From 5d1d40a4ea6e84c30328c26a4f79d4b79034868f Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Fri, 2 Feb 2024 20:13:28 -0600 Subject: [PATCH] feat!: Remove Octkit conversion function for NextflowRelease --- src/nextflow-release.ts | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/nextflow-release.ts b/src/nextflow-release.ts index bb80c1d..d62b3f4 100644 --- a/src/nextflow-release.ts +++ b/src/nextflow-release.ts @@ -9,21 +9,6 @@ export type NextflowRelease = { published_at?: string } -/** - * Converts the raw OctoKit data into a structured NextflowRelease - * @param data A "release" data struct from OctoKit - * @returns `data` converted into a `NextflowRelease` - */ -export function nextflow_release(data: object): NextflowRelease { - const nf_release: NextflowRelease = { - version: data["tag_name"], - isEdge: data["prerelease"], - downloadUrl: nextflow_bin_url(data, false), - downloadUrlAll: nextflow_bin_url(data, true) - } - return nf_release -} - /** * Gets the download URL of a Nextflow binary * @param release A "release" data struct from OctoKit