| @@ -23,7 +23,7 @@ export type SourceForCredentialStatus = { · 22 unmodified lines |
| 23 | }; | 23 | }; |
| 24 | | 24 | |
| 25 | const scopeRank = (ranks: ReadonlyMap<string, number>, scopeId: ScopeId): number => | 25 | const scopeRank = (ranks: ReadonlyMap<string, number>, scopeId: ScopeId): number => |
| 26 | ranks.get(scopeId as string) ?? Number.MAX_SAFE_INTEGER; | 26 | ranks.get(scopeId) ?? Number.MAX_SAFE_INTEGER; |
| 27 | | 27 | |
| 28 | export const effectiveBindingForScope = ( | 28 | export const effectiveBindingForScope = ( |
| 29 | rows: readonly BindingRowForCredentialStatus[], | 29 | rows: readonly BindingRowForCredentialStatus[], |
| @@ -60,7 +60,7 @@ const hasConnectionBinding = ( · 30 unmodified lines |
| 60 | const binding = effectiveBindingForScope(rows, slot, targetScope, ranks); | 60 | const binding = effectiveBindingForScope(rows, slot, targetScope, ranks); |
| 61 | if (binding?.value.kind !== "connection") return false; | 61 | if (binding?.value.kind !== "connection") return false; |
| 62 | return liveConnectionIds | 62 | return liveConnectionIds |
| 63 | ? liveConnectionIds.has(binding.value.connectionId as string) | 63 | ? liveConnectionIds.has(binding.value.connectionId) |
| 64 | : true; | 64 | : true; |
| 65 | }; | 65 | }; |
| 66 | | 66 | |
| @@ -83,7 +83,7 @@ export function missingCredentialLabels( · 16 unmodified lines |
| 83 | const liveConnectionIds = rawLiveConnectionIds | 83 | const liveConnectionIds = rawLiveConnectionIds |
| 84 | ? rawLiveConnectionIds instanceof Set | 84 | ? rawLiveConnectionIds instanceof Set |
| 85 | ? rawLiveConnectionIds | 85 | ? rawLiveConnectionIds |
| 86 | : new Set([...rawLiveConnectionIds].map((id) => id as string)) | 86 | : new Set(rawLiveConnectionIds) |
| 87 | : undefined; | 87 | : undefined; |
| 88 | | 88 | |
| 89 | for (const [headerName, value] of Object.entries(source.config.headers ?? {})) { | 89 | for (const [headerName, value] of Object.entries(source.config.headers ?? {})) { |