opennms
Version:
Client API for the OpenNMS network monitoring platform
1 lines • 2 kB
JSON
{"remainingRequest":"/data/node_modules/babel-loader/lib/index.js!/data/node_modules/axios/lib/helpers/isAbsoluteURL.js","dependencies":[{"path":"/data/node_modules/axios/lib/helpers/isAbsoluteURL.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 * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\n\nmodule.exports = function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"<scheme>://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return (/^([a-z][a-z\\d\\+\\-\\.]*:)?\\/\\//i.test(url)\n );\n};",{"version":3,"sources":["node_modules/axios/lib/helpers/isAbsoluteURL.js"],"names":["module","exports","isAbsoluteURL","url","test"],"mappings":"AAAA;;AAEA;;;;;;;AAMAA,OAAOC,OAAP,GAAiB,SAASC,aAAT,CAAuBC,GAAvB,EAA4B;AAC3C;AACA;AACA;AACA,SAAO,iCAAgCC,IAAhC,CAAqCD,GAArC;AAAP;AACD,CALD","file":"isAbsoluteURL.js","sourceRoot":"/data","sourcesContent":["'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nmodule.exports = function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"<scheme>://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d\\+\\-\\.]*:)?\\/\\//i.test(url);\n};\n"]}]}