opennms
Version:
Client API for the OpenNMS network monitoring platform
1 lines • 1.69 kB
JSON
{"remainingRequest":"/data/node_modules/babel-loader/lib/index.js!/data/node_modules/axios/lib/helpers/combineURLs.js","dependencies":[{"path":"/data/node_modules/axios/lib/helpers/combineURLs.js","mtime":1553611387516},{"path":"/data/.babelrc","mtime":1553611371556},{"path":"/data/node_modules/cache-loader/dist/cjs.js","mtime":1553611387012},{"path":"/data/node_modules/babel-loader/lib/index.js","mtime":1553611386992}],"contextDependencies":[],"result":["'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n * @returns {string} The combined URL\n */\n\nmodule.exports = function combineURLs(baseURL, relativeURL) {\n return relativeURL ? baseURL.replace(/\\/+$/, '') + '/' + relativeURL.replace(/^\\/+/, '') : baseURL;\n};",{"version":3,"sources":["node_modules/axios/lib/helpers/combineURLs.js"],"names":["module","exports","combineURLs","baseURL","relativeURL","replace"],"mappings":"AAAA;;AAEA;;;;;;;;AAOAA,OAAOC,OAAP,GAAiB,SAASC,WAAT,CAAqBC,OAArB,EAA8BC,WAA9B,EAA2C;AAC1D,SAAOA,cACHD,QAAQE,OAAR,CAAgB,MAAhB,EAAwB,EAAxB,IAA8B,GAA9B,GAAoCD,YAAYC,OAAZ,CAAoB,MAApB,EAA4B,EAA5B,CADjC,GAEHF,OAFJ;AAGD,CAJD","file":"combineURLs.js","sourceRoot":"/data","sourcesContent":["'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n * @returns {string} The combined URL\n */\nmodule.exports = function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/+$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n};\n"]}]}