oolib 2.17.15 → 2.17.16
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.
|
@@ -52,7 +52,7 @@ var LoaderDiv = function (_a) {
|
|
|
52
52
|
var _c = getTypoSizeAndTrackSize({ L: L, M: M, S: S }), TypoComp = _c.TypoComp, trackSize = _c.trackSize, size = _c.size;
|
|
53
53
|
return (react_1.default.createElement(styled_1.StyledLoaderWrapper, __assign({}, { isBlock: isBlock }),
|
|
54
54
|
react_1.default.createElement(styled_1.StyledLoader, __assign({}, { size: size, trackSize: trackSize, invert: invert })),
|
|
55
|
-
(text || ((theme === null || theme === void 0 ? void 0 : theme._Branch) === "dev" && debug)) && (react_1.default.createElement(TypoComp, __assign({ invert: invert }, (L ? { bold: true } : { semibold: true })), "".concat((theme === null || theme === void 0 ? void 0 : theme._Branch) === "dev" && debug ? debug : "").concat(text)))));
|
|
55
|
+
(text || ((theme === null || theme === void 0 ? void 0 : theme._Branch) === "dev" && debug)) && (react_1.default.createElement(TypoComp, __assign({ invert: invert }, (L ? { bold: true } : { semibold: true })), "".concat((theme === null || theme === void 0 ? void 0 : theme._Branch) === "dev" && debug ? "".concat(debug, " ") : "").concat(text || '')))));
|
|
56
56
|
};
|
|
57
57
|
// still dont think we need to have this overlay thing,
|
|
58
58
|
// but lets consult with design and make a decision on this
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export function injectHttps(
|
|
1
|
+
export function injectHttps(url: any): any;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.injectHttps = void 0;
|
|
4
|
-
var injectHttps = function (
|
|
5
|
-
if (['mailto:', 'tel:', 'http://', 'https://'].every(function (d) { return typeof
|
|
6
|
-
return 'https://' +
|
|
4
|
+
var injectHttps = function (url) {
|
|
5
|
+
if (['mailto:', 'tel:', 'http://', 'https://'].every(function (d) { return typeof url === 'string' && !url.includes(d); })) {
|
|
6
|
+
return 'https://' + url;
|
|
7
7
|
}
|
|
8
8
|
else {
|
|
9
|
-
return
|
|
9
|
+
return url;
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
exports.injectHttps = injectHttps;
|