MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / resolveWithinProject

Function resolveWithinProject

packages/core/src/safePath.ts:69–72  ·  view source on GitHub ↗
(base: string, relativePath: string)

Source from the content-addressed store, hash-verified

67 * let the symlink-escape slip past several call sites historically.
68 */
69export function resolveWithinProject(base: string, relativePath: string): string | null {
70 const resolved = resolve(base, relativePath);
71 return isSafePath(base, resolved) ? resolved : null;
72}

Callers 11

safePath.test.tsFile · 0.85
hoistExternalScriptFunction · 0.85
bundleToSingleHtmlFunction · 0.85
registerRenderRoutesFunction · 0.85
resolveFramesFunction · 0.85
readScriptFunction · 0.85
registerStoryboardRoutesFunction · 0.85
resolveProjectPathFunction · 0.85
registerFileRoutesFunction · 0.85
registerPreviewRoutesFunction · 0.85

Calls 2

resolveFunction · 0.85
isSafePathFunction · 0.85

Tested by

no test coverage detected