(raw: string | undefined)
| 57 | } |
| 58 | |
| 59 | function parseCapabilities(raw: string | undefined): string[] | undefined { |
| 60 | if (raw === undefined) return undefined; |
| 61 | const caps = raw |
| 62 | .split(',') |
| 63 | .map((c) => c.trim().toLowerCase()) |
| 64 | .filter((c) => c.length > 0); |
| 65 | return caps.length === 0 ? undefined : caps; |
| 66 | } |
| 67 | |
| 68 | // `parseBooleanEnv` returns undefined for unrecognized input. Treat a non-empty |
| 69 | // but unparseable value (e.g. a typo like `flase`) as a config error so it |
no outgoing calls
no test coverage detected