src/requests.ts
Function _fetchRequestWithTimeout
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function _fetchRequestWithTimeout(method: string, url: string, options: RequestOptions): Promise<XMLHttpRequest> {
const abortController = typeof AbortController === 'function' ?
new AbortController() :
null;
let timeoutId;
Function _xhrRequestWithTimeout
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function _xhrRequestWithTimeout(method: string, url: string, options: RequestOptions): Promise<XMLHttpRequest> {
return new Promise((resolve, reject) => {
log('[requests XHR]', method, url);