( state: RemoteConnectionState, options: Parameters<typeof isCompatibleConnection>[1], )
| 508 | } |
| 509 | |
| 510 | function optionalConnectionFieldsMatch( |
| 511 | state: RemoteConnectionState, |
| 512 | options: Parameters<typeof isCompatibleConnection>[1], |
| 513 | ): boolean { |
| 514 | return [ |
| 515 | [state.leaseBackend, options.desiredLeaseBackend], |
| 516 | [state.platform, options.flags.platform], |
| 517 | [state.target, options.flags.target], |
| 518 | [state.leaseProvider, options.connection?.leaseProvider], |
| 519 | [state.clientId, options.connection?.clientId], |
| 520 | ].every(([left, right]) => right === undefined || left === right); |
| 521 | } |
| 522 | |
| 523 | function isSameDaemonState( |
| 524 | a: RemoteConnectionState['daemon'], |
no outgoing calls
no test coverage detected