From 2df08907ab292ece97e0b887d25b66af481286d0 Mon Sep 17 00:00:00 2001 From: busma13 Date: Tue, 30 Jul 2024 11:09:25 -0700 Subject: [PATCH 1/3] Export HTTPError from got --- src/getReleases.ts | 2 ++ src/index.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/getReleases.ts b/src/getReleases.ts index 7f6c11a..12143ec 100644 --- a/src/getReleases.ts +++ b/src/getReleases.ts @@ -20,3 +20,5 @@ export async function getReleases(user: string, repo: string): Promise(url, requestConfig); return r.body; } + +export { HTTPError } from 'got'; diff --git a/src/index.ts b/src/index.ts index 8ad2c64..13b164f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,5 @@ import { downloadRelease } from './downloadRelease'; +import { HTTPError } from './getReleases'; export { downloadRelease }; +export { HTTPError }; From 5c5e29d41ebd1abbe6197c12f871f88b13c5a435 Mon Sep 17 00:00:00 2001 From: busma13 Date: Tue, 30 Jul 2024 11:10:42 -0700 Subject: [PATCH 2/3] Bump version from 0.8.10 to 0.8.11 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 754c9ea..8294ad0 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "publishConfig": { "access": "public" }, - "version": "0.8.10", + "version": "0.8.11", "description": "Download a specific release from github", "files": [ "dist/src/**/*", From 44ebc0d324a335a36dc41c7152f7e4507b17d044 Mon Sep 17 00:00:00 2001 From: busma13 Date: Tue, 30 Jul 2024 13:20:30 -0700 Subject: [PATCH 3/3] export single object --- src/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 13b164f..6426e75 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,5 +1,4 @@ import { downloadRelease } from './downloadRelease'; import { HTTPError } from './getReleases'; -export { downloadRelease }; -export { HTTPError }; +export { downloadRelease, HTTPError };