diff --git a/src/client.ts b/src/client.ts index 1f4c77d..552b9b9 100644 --- a/src/client.ts +++ b/src/client.ts @@ -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); }