(fn, ...args)
| 49 | }; |
| 50 | |
| 51 | const test = (fn, ...args) => { |
| 52 | try { |
| 53 | return !!fn(...args); |
| 54 | } catch (e) { |
| 55 | return false; |
| 56 | } |
| 57 | }; |
| 58 | |
| 59 | const maybeWithAuthCredentials = (url) => { |
| 60 | const protocolIndex = url.indexOf('://'); |
no test coverage detected