Skip to content

Commit

Permalink
Export HTTPError from got
Browse files Browse the repository at this point in the history
  • Loading branch information
busma13 committed Jul 30, 2024
1 parent ffd6bbd commit 2df0890
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/getReleases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ export async function getReleases(user: string, repo: string): Promise<GithubRel
const r = await got.get<GithubRelease[]>(url, requestConfig);
return r.body;
}

export { HTTPError } from 'got';
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { downloadRelease } from './downloadRelease';
import { HTTPError } from './getReleases';

export { downloadRelease };
export { HTTPError };

0 comments on commit 2df0890

Please sign in to comment.