8ca80721af908f39b0f56de98ff84a22cd19a11a36a3a3015e6ffad3da5efa82.json 2.0 KB

1
  1. {"ast":null,"code":"'use strict';\n\nimport isAbsoluteURL from '../helpers/isAbsoluteURL.js';\nimport combineURLs from '../helpers/combineURLs.js';\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n *\n * @returns {string} The combined full path\n */\nexport default function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n}","map":{"version":3,"names":["isAbsoluteURL","combineURLs","buildFullPath","baseURL","requestedURL"],"sources":["D:/A_GraduationDesign/errand/vue/node_modules/axios/lib/core/buildFullPath.js"],"sourcesContent":["'use strict';\n\nimport isAbsoluteURL from '../helpers/isAbsoluteURL.js';\nimport combineURLs from '../helpers/combineURLs.js';\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n *\n * @returns {string} The combined full path\n */\nexport default function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n}\n"],"mappings":"AAAA,YAAY;;AAEZ,OAAOA,aAAa,MAAM,6BAA6B;AACvD,OAAOC,WAAW,MAAM,2BAA2B;;AAEnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,SAASC,aAAaA,CAACC,OAAO,EAAEC,YAAY,EAAE;EAC3D,IAAID,OAAO,IAAI,CAACH,aAAa,CAACI,YAAY,CAAC,EAAE;IAC3C,OAAOH,WAAW,CAACE,OAAO,EAAEC,YAAY,CAAC;EAC3C;EACA,OAAOA,YAAY;AACrB"},"metadata":{},"sourceType":"module","externalDependencies":[]}