(urlObj, params)
| 4 | |
| 5 | // Helper: attach key/value pairs from `params` into URLSearchParams of `urlObj` |
| 6 | function attachQueryParams (urlObj, params) { |
| 7 | if (!params) return urlObj |
| 8 | for (const [k, v] of Object.entries(params)) { |
| 9 | if (v != null) urlObj.searchParams.set(k, v) |
| 10 | } |
| 11 | return urlObj |
| 12 | } |
| 13 | |
| 14 | // Avoid importing `@solid/oidc-op` at module-evaluation time to prevent |
| 15 | // import errors in environments where that package isn't resolvable. |
no outgoing calls
no test coverage detected