fix(core): update

This commit is contained in:
2022-02-10 18:02:07 +01:00
parent 1bb08bfb7f
commit adadd2c100
4 changed files with 19977 additions and 3823 deletions

View File

@ -72,6 +72,7 @@ export class WebRequest {
optionsArg: {
method: 'GET' | 'POST' | 'PUT' | 'DELETE';
body?: any;
headers?: HeadersInit;
}
): Promise<Response> {
let allUrls: string[];
@ -106,7 +107,7 @@ export class WebRequest {
};
// lets go recursive
const doRequest = async (urlToUse: string) => {
const doRequest = async (urlToUse: string): Promise<any> => {
if (!urlToUse) {
throw new Error('request failed permanently');
}
@ -115,6 +116,7 @@ export class WebRequest {
method: optionsArg.method,
headers: {
'Content-Type': 'application/json',
...(optionsArg.headers || {})
},
body: optionsArg.body,
});