MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / buildFullPath

Function buildFullPath

out/cli.cjs:72291–72297  ·  view source on GitHub ↗
(baseURL, requestedURL, allowAbsoluteUrls)

Source from the content-addressed store, hash-verified

72289}
72290
72291// node_modules/axios/lib/helpers/combineURLs.js
72292function combineURLs(baseURL, relativeURL) {
72293 return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
72294}
72295
72296// node_modules/axios/lib/core/buildFullPath.js
72297function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
72298 let isRelativeUrl = !isAbsoluteURL2(requestedURL);
72299 if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
72300 return combineURLs(baseURL, requestedURL);

Callers 3

cli.cjsFile · 0.85
resolveConfig_defaultFunction · 0.85
getUriMethod · 0.85

Calls 2

isAbsoluteURL2Function · 0.85
combineURLsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…