import { inject , injectable } from 'inversify' ; import { TaskConfig } from '../task-config' ; import { resolve } from 'url' ; import { ScanArguments } from 'accessibility-insights-scan' ; import { iocTypes } from '../ioc/ioc-types' ; @ injectable ( ) export class ScanUrlResolver { constructor ( @ inject ( iocTypes . TaskConfig ) private readonly taskConfig , private readonly resolveUrl = resolve ) { } public resolveLocallyHostedUrls ( baseUrl ) { return { url : this . resolveUrl ( baseUrl , this . taskConfig . getScanUrlRelativePath ( ) ) , } ; } }