Feature/up (#48)

* Upgrade production dependencies

* Upgrade dev dependencies
This commit is contained in:
Simon J
2021-09-07 22:56:59 +10:00
committed by GitHub
parent 287e203449
commit c1815e5e48
3 changed files with 1277 additions and 2234 deletions

View File

@@ -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;