(params)
| 12 | } |
| 13 | |
| 14 | function encodeQuery(params) { |
| 15 | const usp = new URLSearchParams(); |
| 16 | for (const [k, v] of Object.entries(params || {})) { |
| 17 | if (v === undefined || v === null) continue; |
| 18 | usp.set(k, String(v)); |
| 19 | } |
| 20 | const qs = usp.toString(); |
| 21 | return qs ? `?${qs}` : ''; |
| 22 | } |
| 23 | |
| 24 | function splitHttpResponse(raw) { |
| 25 | // `gh api --include` uses LF line endings on macOS, but handle CRLF too. |
no outgoing calls
no test coverage detected