diff --git a/src/client.ts b/src/client.ts index 12c5915..6bbeaaa 100644 --- a/src/client.ts +++ b/src/client.ts @@ -76,11 +76,11 @@ export function mapIssue(i: RawIssue): Issue { }; } -export function mapLabel(l: RawLabel): Label { +function mapLabel(l: RawLabel): Label { return { name: l.name, color: l.color, description: l.description ?? null }; } -export function assertOwnerRepo(owner: string, repo: string): void { +function assertOwnerRepo(owner: string, repo: string): void { if (!OWNER_REPO.test(owner)) throw new ValidationError(`invalid owner: ${owner}`); if (!OWNER_REPO.test(repo)) throw new ValidationError(`invalid repo: ${repo}`); } diff --git a/src/http.ts b/src/http.ts index 54a1f6f..844cf25 100644 --- a/src/http.ts +++ b/src/http.ts @@ -15,7 +15,7 @@ export interface HttpResponse { const DEFAULT_BASE = "https://api.example-hub.test"; const DEFAULT_UA = "hubclient/0.1.0"; -export function sleep(ms: number): Promise { +function sleep(ms: number): Promise { return new Promise((resolve) => setTimeout(resolve, ms)); }