(connectionString: string)
| 228 | } |
| 229 | |
| 230 | export function removeAuthFromConnectionString(connectionString: string) { |
| 231 | const indices = getIndicesOfAuthInUrl(connectionString); |
| 232 | if (!indices) { |
| 233 | return connectionString; |
| 234 | } |
| 235 | |
| 236 | const { start, end } = indices; |
| 237 | |
| 238 | if (start === -1 || end === -1) { |
| 239 | return connectionString; |
| 240 | } |
| 241 | |
| 242 | return connectionString.slice(0, start) + connectionString.slice(end + 1); |
| 243 | } |
| 244 | |
| 245 | export function extractAuthFromConnectionString(connectionString: string | any[]) { |
| 246 | const indices = getIndicesOfAuthInUrl(connectionString); |
nothing calls this directly
no test coverage detected