(str: T)
| 47 | } |
| 48 | |
| 49 | export function addV<T extends string | undefined>(str: T): T { |
| 50 | // replaced includes to first byte. |
| 51 | if (str && str[0] !== 'v') { |
| 52 | return `v${str}` as T; |
| 53 | } |
| 54 | return str; |
| 55 | } |
| 56 | |
| 57 | export async function checkToken(token_path: string = ACCESS_TOKEN_PATH): Promise<string> { |
| 58 | const reqInput = () => input({message: 'Token cannot be found, Enter token', required: true}); |
no outgoing calls
no test coverage detected