(env: NodeJS.ProcessEnv = process.env)
| 22 | } |
| 23 | |
| 24 | export function isTelemetryDisabledByEnv(env: NodeJS.ProcessEnv = process.env): boolean { |
| 25 | const value = env[TELEMETRY_DISABLE_ENV]; |
| 26 | return value !== undefined && TRUE_ENV_VALUES.has(value.trim().toLowerCase()); |
| 27 | } |
| 28 | |
| 29 | export function shouldEnableTelemetry( |
| 30 | input: { readonly enabled?: boolean; readonly env?: NodeJS.ProcessEnv } = {}, |
no test coverage detected