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/**/*", 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..6426e75 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,4 @@ import { downloadRelease } from './downloadRelease'; +import { HTTPError } from './getReleases'; -export { downloadRelease }; +export { downloadRelease, HTTPError };