(changedState: Set<string>, url: URL | undefined, credential: 'username' | 'password')
| 944 | } |
| 945 | |
| 946 | export const hasExplicitCredentialInUrlChange = (changedState: Set<string>, url: URL | undefined, credential: 'username' | 'password'): boolean => ( |
| 947 | changedState.has(credential) |
| 948 | || (changedState.has('url') && url?.[credential] !== '') |
| 949 | ); |
| 950 | |
| 951 | const hasProtocolSlashes = (value: string): boolean => /^[a-z][\d+\-.a-z]*:\/\//iv.test(value); |
| 952 |
no test coverage detected
searching dependent graphs…