MCPcopy Create free account
hub / github.com/vercel/vercel / createDebug

Function createDebug

packages/client/src/utils/index.ts:424–434  ·  view source on GitHub ↗
(debug?: boolean)

Source from the content-addressed store, hash-verified

422};
423
424export function createDebug(debug?: boolean) {
425 if (debug) {
426 return (...logs: string[]) => {
427 process.stderr.write(
428 [`[client-debug] ${new Date().toISOString()}`, ...logs].join(' ') + '\n'
429 );
430 };
431 }
432
433 return () => {};
434}
435export type Debug = ReturnType<typeof createDebug>;

Callers 11

continueDeploymentFunction · 0.90
postContinueFunction · 0.90
postDeploymentFunction · 0.90
getDefaultNameFunction · 0.90
deployFunction · 0.90
buildCreateDeploymentFunction · 0.90
checkDeploymentStatusFunction · 0.90
inspectDeploymentFilesFunction · 0.90
uploadFunction · 0.90
uploadFilesFunction · 0.90
fetchApiFunction · 0.85

Calls 2

writeMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected