(key, fallback)
| 141 | } |
| 142 | |
| 143 | function envBool(key, fallback) { |
| 144 | const v = envStr(key) |
| 145 | if (v === undefined) return fallback |
| 146 | return ['1', 'true', 'yes', 'on'].includes(v.toLowerCase()) |
| 147 | } |
| 148 | |
| 149 | const deprecationWarned = new Set() |
| 150 | function envBoolWithLegacy(primary, legacy, fallback) { |
no test coverage detected