(value: string)
| 56 | const VERSION = packageJson.version |
| 57 | |
| 58 | function isLocalPath(value: string) { |
| 59 | return ( |
| 60 | value.startsWith('./') || |
| 61 | value.startsWith('../') || |
| 62 | value.startsWith('/') || |
| 63 | /^[a-zA-Z]:[\\/]/.test(value) |
| 64 | ) |
| 65 | } |
| 66 | |
| 67 | function isRemoteUrl(value: string) { |
| 68 | return /^https?:\/\//i.test(value) || /^file:\/\//i.test(value) |
no test coverage detected