scrapers/nus-v2/src/services/nus-api.ts
Function callApi
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function callApi<Data>(endpoint: string, params: ApiParams): Promise<Data> {
// 1. Construct request URL
const url = new URL(endpoint, config.baseUrl);
let response;