@webex/test-helper-make-local-url 2.42.0 → 2.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["module","exports","makeLocalUrl","resource","options","window","full","process","env","FIXTURE_PORT"],"sources":["index.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\n/**\n * Helper for getting a url to localhost\n * @param {string} resource\n * @param {Object} options\n * @param {boolean} options.full if true, will always include protocol and host\n * @returns {string}\n */\nmodule.exports = function makeLocalUrl(resource, options) {\n if (typeof window === 'undefined' || (options && options.full)) {\n return `http://localhost:${process.env.FIXTURE_PORT}${resource}`;\n }\n\n return `/fixtures${resource}`;\n};\n"],"mappings":";;AAAA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACAA,MAAM,CAACC,OAAO,GAAG,SAASC,
|
|
1
|
+
{"version":3,"names":["module","exports","makeLocalUrl","resource","options","window","full","concat","process","env","FIXTURE_PORT"],"sources":["index.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\n/**\n * Helper for getting a url to localhost\n * @param {string} resource\n * @param {Object} options\n * @param {boolean} options.full if true, will always include protocol and host\n * @returns {string}\n */\nmodule.exports = function makeLocalUrl(resource, options) {\n if (typeof window === 'undefined' || (options && options.full)) {\n return `http://localhost:${process.env.FIXTURE_PORT}${resource}`;\n }\n\n return `/fixtures${resource}`;\n};\n"],"mappings":";;AAAA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACAA,MAAM,CAACC,OAAO,GAAG,SAASC,YAAYA,CAACC,QAAQ,EAAEC,OAAO,EAAE;EACxD,IAAI,OAAOC,MAAM,KAAK,WAAW,IAAKD,OAAO,IAAIA,OAAO,CAACE,IAAK,EAAE;IAC9D,2BAAAC,MAAA,CAA2BC,OAAO,CAACC,GAAG,CAACC,YAAY,EAAAH,MAAA,CAAGJ,QAAQ;EAChE;EAEA,mBAAAI,MAAA,CAAmBJ,QAAQ;AAC7B,CAAC"}
|