PATH:
usr
/
local
/
lib
/
node_modules
/
pm2
/
node_modules
/
axios
/
lib
/
core
'use strict'; var isAbsoluteURL = require('../helpers/isAbsoluteURL'); var combineURLs = require('../helpers/combineURLs'); /** * Creates a new URL by combining the baseURL with the requestedURL, * only when the requestedURL is not already an absolute URL. * If the requestURL is absolute, this function returns the requestedURL untouched. * * @param {string} baseURL The base URL * @param {string} requestedURL Absolute or relative URL to combine * @returns {string} The combined full path */ module.exports = function buildFullPath(baseURL, requestedURL) { if (baseURL && !isAbsoluteURL(requestedURL)) { return combineURLs(baseURL, requestedURL); } return requestedURL; };
[-] transformData.js
[edit]
[-] dispatchRequest.js
[edit]
[-] buildFullPath.js
[edit]
[-] mergeConfig.js
[edit]
[+]
..
[-] enhanceError.js
[edit]
[-] settle.js
[edit]
[-] createError.js
[edit]
[-] InterceptorManager.js
[edit]
[-] README.md
[edit]
[-] Axios.js
[edit]