Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1651,17 +1651,17 @@ export class ClobClient {
}

// http methods
private async get(endpoint: string, options?: RequestOptions, skipThrow = false) {
protected async get(endpoint: string, options?: RequestOptions, skipThrow = false) {
const result = await get(endpoint, options);
return skipThrow ? result : this.throwIfError(result);
}

private async post(endpoint: string, options?: RequestOptions, skipThrow = false) {
protected async post(endpoint: string, options?: RequestOptions, skipThrow = false) {
const result = await post(endpoint, options, this.retryOnError);
return skipThrow ? result : this.throwIfError(result);
}

private async del(endpoint: string, options?: RequestOptions, skipThrow = false) {
protected async del(endpoint: string, options?: RequestOptions, skipThrow = false) {
const result = await del(endpoint, options);
return skipThrow ? result : this.throwIfError(result);
}
Expand Down