src/http.ts
Function fetchURLIntoJSON
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function fetchURLIntoJSON(
options: RequestOptions | string
): Promise<JSONResponse> {
return new Promise((resolve, reject) => {
fetchURL(options).then(
Function fetchURL
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function fetchURL(
optionsOrString: RequestOptions | string
): Promise<Response> {
let options: RequestOptions
if (isString(optionsOrString)) {