MCPcopy
hub / github.com/prisma/prisma / safeResolveBinary

Function safeResolveBinary

packages/internals/src/resolveBinary.ts:69–74  ·  view source on GitHub ↗
(name: BinaryType, proposedPath?: string)

Source from the content-addressed store, hash-verified

67}
68
69export function safeResolveBinary(name: BinaryType, proposedPath?: string): TE.TaskEither<Error, string> {
70 return TE.tryCatch(
71 () => resolveBinary(name, proposedPath),
72 (error) => error as Error,
73 )
74}
75
76export async function maybeCopyToTmp(file: string): Promise<string> {
77 if (__dirname.match(vercelPkgPathRegex)) {

Callers 1

resolveEngineFunction · 0.90

Calls 1

resolveBinaryFunction · 0.85

Tested by

no test coverage detected