(value: string | undefined)
| 57 | } |
| 58 | |
| 59 | function splitEnvList(value: string | undefined): Set<string> { |
| 60 | return new Set( |
| 61 | (value ?? '') |
| 62 | .split(',') |
| 63 | .map((item) => item.trim()) |
| 64 | .filter(Boolean), |
| 65 | ) |
| 66 | } |
| 67 | |
| 68 | function isTruthyEnv(value: string | undefined): boolean { |
| 69 | return value === '1' || value === 'true' || value === 'yes' |
no outgoing calls
no test coverage detected