@trayio/axios
Advanced tools
Comparing version 1.9.0 to 1.9.1
@@ -8,3 +8,3 @@ import * as TE from 'fp-ts/TaskEither'; | ||
private readonly fileStorage; | ||
constructor(fileStorage: FileStorage); | ||
constructor(fileStorage?: FileStorage); | ||
execute(method: HttpMethod, url: string, request: HttpRequest): TE.TaskEither<Error, HttpResponse>; | ||
@@ -11,0 +11,0 @@ private axiosErrorToHttpResponse; |
@@ -36,4 +36,5 @@ "use strict"; | ||
const FormData = require("form-data"); | ||
const NodeFsFileStorage_1 = require("@trayio/commons/file/NodeFsFileStorage"); | ||
class AxiosHttpClient { | ||
constructor(fileStorage) { | ||
constructor(fileStorage = new NodeFsFileStorage_1.NodeFsFileStorage()) { | ||
this.fileStorage = fileStorage; | ||
@@ -40,0 +41,0 @@ this.appendFields = (formData) => (fields) => { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const NodeFsFileStorage_1 = require("@trayio/commons/file/NodeFsFileStorage"); | ||
const HttpClient_abstract_test_1 = require("@trayio/commons/http/HttpClient.abstract.test"); | ||
const AxiosHttpClient_1 = require("./AxiosHttpClient"); | ||
(0, HttpClient_abstract_test_1.httpClientTest)(new AxiosHttpClient_1.AxiosHttpClient(new NodeFsFileStorage_1.NodeFsFileStorage())); | ||
(0, HttpClient_abstract_test_1.httpClientTest)(new AxiosHttpClient_1.AxiosHttpClient()); |
{ | ||
"name": "@trayio/axios", | ||
"version": "1.9.0", | ||
"version": "1.9.1", | ||
"description": "Axios extensions and implementations", | ||
@@ -17,3 +17,3 @@ "exports": { | ||
"dependencies": { | ||
"@trayio/commons": "1.9.0", | ||
"@trayio/commons": "1.9.1", | ||
"axios": "0.27.2", | ||
@@ -20,0 +20,0 @@ "form-data": "4.0.0" |
Sorry, the diff of this file is not supported yet
9065
+ Added@trayio/commons@1.9.1(transitive)
- Removed@trayio/commons@1.9.0(transitive)
Updated@trayio/commons@1.9.1