@libj/http
Advanced tools
Comparing version 0.6.0 to 0.6.1
@@ -15,4 +15,4 @@ import { GetRequestOptions, HttpClientConfig, HttpRequestOptions, HttpResponse, HttpSubmitArgs } from './types'; | ||
private agent; | ||
private processOptions; | ||
private processRequestOptions; | ||
private extractSubmitArgs; | ||
} |
@@ -24,3 +24,3 @@ "use strict"; | ||
if (config === void 0) { config = {}; } | ||
this.agent = axios_1.default.create(config); | ||
this.agent = axios_1.default.create(this.processRequestOptions(config)); | ||
// Attach logger | ||
@@ -49,3 +49,3 @@ var logger = config.logger; | ||
return this.agent | ||
.request(__assign(__assign({}, this.processOptions(options)), { url: url })) | ||
.request(__assign(__assign({}, this.processRequestOptions(options)), { url: url })) | ||
.catch(function (err) { | ||
@@ -64,3 +64,3 @@ if (err.response) { | ||
}); | ||
HttpClient.prototype.processOptions = function (inOptions) { | ||
HttpClient.prototype.processRequestOptions = function (inOptions) { | ||
var options = __assign({}, inOptions); | ||
@@ -67,0 +67,0 @@ if (options.data instanceof HttpForm_1.HttpForm) { |
{ | ||
"dependencies": { | ||
"@libj/http-meta": "0.1.19", | ||
"@libj/logger": "0.1.6", | ||
"@libj/http-meta": "0.1.20", | ||
"@libj/logger": "0.1.7", | ||
"@libj/make-uri": "1.1.15", | ||
@@ -11,3 +11,3 @@ "axios": "^0.21.1", | ||
"name": "@libj/http", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"description": "Http toolbox", | ||
@@ -36,3 +36,3 @@ "author": "Sergey Poskachey <seregynp@gmail.com>", | ||
], | ||
"gitHead": "15aaac256ae85c1848bbe27e6b0cb8188e92e422" | ||
"gitHead": "402b4454728a916c29dd2a2e233ab1241d7f1e83" | ||
} |
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
22174
+ Added@libj/http-meta@0.1.20(transitive)
+ Added@libj/logger@0.1.7(transitive)
- Removed@libj/http-meta@0.1.19(transitive)
- Removed@libj/logger@0.1.6(transitive)
Updated@libj/http-meta@0.1.20
Updated@libj/logger@0.1.7