mirror of
https://github.com/wkulhanek/bonob.git
synced 2025-12-21 17:33:29 +01:00
Feature/up (#48)
* Upgrade production dependencies * Upgrade dev dependencies
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
import { Express } from "express";
|
||||
import { ReadStream } from "fs";
|
||||
import { IHttpClient } from "soap";
|
||||
import request from "supertest";
|
||||
import * as req from "axios";
|
||||
|
||||
function supersoap(server: Express) {
|
||||
function supersoap(server: Express): IHttpClient {
|
||||
return {
|
||||
request: (
|
||||
rurl: string,
|
||||
@@ -15,12 +18,19 @@ function supersoap(server: Express) {
|
||||
data == null
|
||||
? request(server).get(withoutHost).send()
|
||||
: request(server).post(withoutHost).send(data);
|
||||
req
|
||||
return req
|
||||
.set(exheaders || {})
|
||||
.then((response) => callback(null, response, response.text))
|
||||
.catch(callback);
|
||||
},
|
||||
}
|
||||
|
||||
requestStream: (
|
||||
_: string,
|
||||
_2: any
|
||||
): req.AxiosPromise<ReadStream> => {
|
||||
throw "Not Implemented!!";
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
export default supersoap
|
||||
export default supersoap;
|
||||
|
||||
Reference in New Issue
Block a user