@injectivelabs/utils
Advanced tools
Comparing version 1.0.80 to 1.0.81
@@ -8,3 +8,3 @@ import { AxiosRequestConfig } from 'axios'; | ||
protected client: HttpClient; | ||
constructor(endpoint: string); | ||
constructor(endpoint: string, options?: Record<string, any>); | ||
setConfig(config: AxiosRequestConfig): HttpRestClient; | ||
@@ -11,0 +11,0 @@ get<T>(endpoint: string, params?: Record<string, any>): Promise<T>; |
@@ -31,4 +31,4 @@ "use strict"; | ||
class HttpRestClient { | ||
constructor(endpoint) { | ||
this.client = new HttpClient_1.default(endpoint); | ||
constructor(endpoint, options = {}) { | ||
this.client = new HttpClient_1.default(endpoint, options); | ||
} | ||
@@ -35,0 +35,0 @@ setConfig(config) { |
{ | ||
"name": "@injectivelabs/utils", | ||
"description": "List of utils and helper functions that can be reused throughout Injective's projects.", | ||
"version": "1.0.80", | ||
"version": "1.0.81", | ||
"author": { | ||
@@ -44,3 +44,3 @@ "name": "Bojan Angjelkoski", | ||
}, | ||
"gitHead": "9eeb5d0126f867b743cd6a92c2fa289f81ec3856" | ||
"gitHead": "79d0579e55e16e8263024d584b5a3f234056f79f" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
74790