MCPcopy
hub / github.com/balazsbotond/urlcat / joinFullUrl

Function joinFullUrl

src/index.ts:133–139  ·  view source on GitHub ↗
(renderedPath: string, baseUrl: string, pathAndQuery: string)

Source from the content-addressed store, hash-verified

131}
132
133function joinFullUrl(renderedPath: string, baseUrl: string, pathAndQuery: string): string {
134 if (renderedPath.length) {
135 return join(baseUrl, '/', pathAndQuery);
136 } else {
137 return join(baseUrl, '?', pathAndQuery);
138 }
139}
140
141function urlcatImpl(
142 pathTemplate: string,

Callers 1

urlcatImplFunction · 0.85

Calls 1

joinFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…