(status, config)
| 165 | } |
| 166 | |
| 167 | function serviceLooksUsable(status, config) { |
| 168 | if (!status?.httpUrl || !status?.accessToken) { |
| 169 | return false; |
| 170 | } |
| 171 | return status.httpUrl.replace(/\/$/, "") === config.localUrl; |
| 172 | } |
| 173 | |
| 174 | async function heartbeat(config, state, first, statusOverride) { |
| 175 | const metadata = await localProviderMetadata(config).catch((error) => ({ |
no test coverage detected