MCPcopy
hub / github.com/freshframework/fresh / resolve

Function resolve

tools/check_docs_lib.ts:318–325  ·  view source on GitHub ↗
(
  specifier: string,
  referrer: string,
)

Source from the content-addressed store, hash-verified

316}
317
318function resolve(
319 specifier: string,
320 referrer: string,
321) {
322 return (specifier.startsWith("./") || specifier.startsWith("../"))
323 ? new URL(specifier, referrer).href
324 : import.meta.resolve(specifier);
325}
326
327async function assertDocs(specifiers: string[]) {
328 const docs = await doc(specifiers, { resolve });

Callers 2

websocket_test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected