import { UNVERSIONED_VERSION } from '../../common/constants' ; import type { BaseParams } from '../../common/types' ; import type { LevelLogger } from './' ; export function checkParamsVersion ( jobParams , logger ) { if ( jobParams . version ) { logger . debug ( `Using reporting job params v${ jobParams . version }` ) ; return jobParams . version ; } logger . warning ( `No version provided in report job params. Assuming ${ UNVERSIONED_VERSION }` ) ; return UNVERSIONED_VERSION ; }