import { UrlOptions } from 'request' ; import requestPromise , { RequestPromiseOptions } from 'request-promise' ; export const MAX_TIMEOUT_MS = Number ( process . env . MAX_TIMEOUT_MS ?? 120000 ) ; export const requestPromiseExceptionHelper = async ( payload ) => { try { return requestPromise ( payload ) ; } catch ( err ) { err . url = payload . url ; throw err ; } } ;