import * as semver from 'semver' ; export default { METRIC_INTERVAL : 990 } ; export function canUseInspector ( ) { const isAboveNode10 = semver . satisfies ( process . version , '>= 10.1.0' ) ; const isAboveNode8 = semver . satisfies ( process . version , '>= 8.0.0' ) ; const canUseInNode8 = process . env . FORCE_INSPECTOR === '1' || process . env . FORCE_INSPECTOR === 'true' || process . env . NODE_ENV === 'production' ; return isAboveNode10 || ( isAboveNode8 && canUseInNode8 ) ; }