Skip to content

Commit

Permalink
Merge pull request #301 from terascope/export-got-HTTPError
Browse files Browse the repository at this point in the history
Export got http error
  • Loading branch information
jsnoble authored Jul 30, 2024
2 parents ffd6bbd + 44ebc0d commit d04abef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/**/*",
Expand Down
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';
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { downloadRelease } from './downloadRelease';
import { HTTPError } from './getReleases';

export { downloadRelease };
export { downloadRelease, HTTPError };

0 comments on commit d04abef

Please sign in to comment.