@libj/http
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -5,5 +5,10 @@ import { HttpClientConfig, HttpRequestOptions, HttpResponse, HttpSubmitArgs } from './types'; | ||
constructor(config?: HttpClientConfig); | ||
/*** Public ***/ | ||
get<D = LooseObject>(url: string, options?: HttpRequestOptions): Promise<HttpResponse<D>>; | ||
post<D = LooseObject>(...args: HttpSubmitArgs): Promise<HttpResponse<D>>; | ||
request<D = LooseObject>(url: string, options?: HttpRequestOptions): Promise<HttpResponse<D>>; | ||
get interceptors(): { | ||
request: import("axios").AxiosInterceptorManager<import("axios").AxiosRequestConfig>; | ||
response: import("axios").AxiosInterceptorManager<import("axios").AxiosResponse<any>>; | ||
}; | ||
/*** Private ***/ | ||
@@ -10,0 +15,0 @@ private agent; |
@@ -30,2 +30,3 @@ "use strict"; | ||
} | ||
/*** Public ***/ | ||
HttpClient.prototype.get = function (url, options) { | ||
@@ -55,2 +56,7 @@ if (options === void 0) { options = {}; } | ||
}; | ||
Object.defineProperty(HttpClient.prototype, "interceptors", { | ||
get: function () { return this.agent.interceptors; }, | ||
enumerable: false, | ||
configurable: true | ||
}); | ||
HttpClient.prototype.processOptions = function (inOptions) { | ||
@@ -57,0 +63,0 @@ var options = __assign({}, inOptions); |
{ | ||
"dependencies": { | ||
"@libj/http-meta": "0.1.0", | ||
"@libj/http-meta": "0.1.1", | ||
"axios": "^0.21.1", | ||
@@ -9,3 +9,3 @@ "form-data": "^4.0.0", | ||
"name": "@libj/http", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Http toolbox", | ||
@@ -34,3 +34,3 @@ "author": "Sergey Poskachey <seregynp@gmail.com>", | ||
], | ||
"gitHead": "569269235fb823d2d35933add6c86e1ee9eca888" | ||
"gitHead": "57c6323fbb4e94f46188eb5ee8112757ee1edaa8" | ||
} |
Sorry, the diff of this file is not supported yet
18824
264
+ Added@libj/http-meta@0.1.1(transitive)
- Removed@libj/http-meta@0.1.0(transitive)
Updated@libj/http-meta@0.1.1