MCPcopy Create free account
hub / github.com/subquery/subql / addV

Function addV

packages/cli/src/utils/utils.ts:49–55  ·  view source on GitHub ↗
(str: T)

Source from the content-addressed store, hash-verified

47}
48
49export 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
57export async function checkToken(token_path: string = ACCESS_TOKEN_PATH): Promise<string> {
58 const reqInput = () => input({message: 'Token cannot be found, Enter token', required: true});

Callers 2

createDeploymentAdapterFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected