"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const isAbsoluteURL = require("../helpers/isAbsoluteURL.js");
const combineURLs = require("../helpers/combineURLs.js");
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
  let isRelativeUrl = !isAbsoluteURL.default(requestedURL);
  if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) {
    return combineURLs.default(baseURL, requestedURL);
  }
  return requestedURL;
}
exports.default = buildFullPath;
