(path)
| 389 | // being interchangeable |
| 390 | const WINDOWS_PIPE_REGEX = /^[/\\][/\\]\.[/\\]pipe[/\\].+/; |
| 391 | function createAgent(path) { |
| 392 | if (process.platform === 'win32' && !WINDOWS_PIPE_REGEX.test(path)) { |
| 393 | return (path === 'pageant' |
| 394 | ? new PageantAgent() |
| 395 | : new CygwinAgent(path)); |
| 396 | } |
| 397 | return new OpenSSHAgent(path); |
| 398 | } |
| 399 | |
| 400 | const AgentProtocol = (() => { |
| 401 | // Client->Server messages |
no outgoing calls
no test coverage detected
searching dependent graphs…