(path: string)
| 386 | } |
| 387 | |
| 388 | async function removeSocketPath(path: string): Promise<void> { |
| 389 | if (process.platform === 'win32') return |
| 390 | try { |
| 391 | await unlink(path) |
| 392 | } catch { |
| 393 | // Already gone. |
| 394 | } |
| 395 | } |
| 396 | |
| 397 | function stripAuthToken(message: UdsMessage): UdsMessage { |
| 398 | const { authToken: _authToken, ...metaWithoutAuth } = message.meta ?? {} |
no test coverage detected