@injectivelabs/utils
Advanced tools
Comparing version 1.12.0-beta.12 to 1.12.0-beta.13
@@ -9,4 +9,5 @@ import { AxiosRequestConfig } from 'axios'; | ||
post<T, P>(endpoint: string, data?: T): Promise<P>; | ||
put<T, P>(endpoint: string, data?: T): Promise<P>; | ||
delete<T, P>(endpoint: string, params?: T): Promise<P>; | ||
} | ||
//# sourceMappingURL=HttpClient.d.ts.map |
@@ -27,2 +27,5 @@ "use strict"; | ||
} | ||
put(endpoint, data = {}) { | ||
return this.client.put(endpoint, data, this.config); | ||
} | ||
delete(endpoint, params = {}) { | ||
@@ -29,0 +32,0 @@ return this.client.delete(endpoint, Object.assign({ params }, this.config)); |
@@ -9,4 +9,5 @@ import { AxiosRequestConfig } from 'axios'; | ||
post<T, P>(endpoint: string, data?: T): Promise<P>; | ||
put<T, P>(endpoint: string, data?: T): Promise<P>; | ||
delete<T, P>(endpoint: string, params?: T): Promise<P>; | ||
} | ||
//# sourceMappingURL=HttpClient.d.ts.map |
@@ -27,2 +27,5 @@ import axios from 'axios'; | ||
} | ||
put(endpoint, data = {}) { | ||
return this.client.put(endpoint, data, this.config); | ||
} | ||
delete(endpoint, params = {}) { | ||
@@ -29,0 +32,0 @@ return this.client.delete(endpoint, { params, ...this.config }); |
{ | ||
"name": "@injectivelabs/utils", | ||
"description": "List of utils and helper functions that can be reused throughout Injective's projects.", | ||
"version": "1.12.0-beta.12", | ||
"version": "1.12.0-beta.13", | ||
"sideEffects": false, | ||
@@ -44,3 +44,3 @@ "author": { | ||
}, | ||
"gitHead": "092bd8a20233d8a965c55226eb9714f858b11e5c" | ||
"gitHead": "d73949dc4bfb69f8e1295f69d1bca9fec76c8cd4" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
129909
1553