* Strip keys whose value is `undefined` so they don't clobber defaults * during object spread (e.g. `{baseUrl: undefined}` would wipe a GHES URL).
(obj: Record<string, unknown>)
| 5 | * during object spread (e.g. `{baseUrl: undefined}` would wipe a GHES URL). |
| 6 | */ |
| 7 | function stripUndefined(obj: Record<string, unknown>): Record<string, unknown> { |
| 8 | return Object.fromEntries( |
| 9 | Object.entries(obj).filter(([, v]) => v !== undefined) |
| 10 | ) |
| 11 | } |
| 12 | |
| 13 | /** |
| 14 | * Creates a wrapped getOctokit that inherits default options and plugins. |
no outgoing calls
no test coverage detected