@webex/test-helper-make-local-url 2.37.0 → 2.37.1
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 +0 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.js +1 -2
package/dist/index.js
CHANGED
|
@@ -15,7 +15,6 @@ module.exports = function makeLocalUrl(resource, options) {
|
|
|
15
15
|
if (typeof window === 'undefined' || options && options.full) {
|
|
16
16
|
return "http://localhost:".concat(process.env.FIXTURE_PORT).concat(resource);
|
|
17
17
|
}
|
|
18
|
-
|
|
19
18
|
return "/fixtures".concat(resource);
|
|
20
19
|
};
|
|
21
20
|
//# sourceMappingURL=index.js.map
|
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
|
|
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,YAAY,CAACC,QAAQ,EAAEC,OAAO,EAAE;EACxD,IAAI,OAAOC,MAAM,KAAK,WAAW,IAAKD,OAAO,IAAIA,OAAO,CAACE,IAAK,EAAE;IAC9D,kCAA2BC,OAAO,CAACC,GAAG,CAACC,YAAY,SAAGN,QAAQ;EAChE;EAEA,0BAAmBA,QAAQ;AAC7B,CAAC"}
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
/**
|
|
7
6
|
* Helper for getting a url to localhost
|
|
8
7
|
* @param {string} resource
|
|
@@ -11,7 +10,7 @@
|
|
|
11
10
|
* @returns {string}
|
|
12
11
|
*/
|
|
13
12
|
module.exports = function makeLocalUrl(resource, options) {
|
|
14
|
-
if (typeof window === 'undefined' || options && options.full) {
|
|
13
|
+
if (typeof window === 'undefined' || (options && options.full)) {
|
|
15
14
|
return `http://localhost:${process.env.FIXTURE_PORT}${resource}`;
|
|
16
15
|
}
|
|
17
16
|
|