@copart/ops-tool-kit 1.8.1-alpha.39 → 1.8.1-alpha.40
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/ops-tool-kit.js +10 -15
- package/dist/ops-tool-kit.js.map +1 -1
- package/package.json +1 -1
package/dist/ops-tool-kit.js
CHANGED
|
@@ -33,7 +33,7 @@ var ReactDOM__namespace = /*#__PURE__*/_interopNamespace(ReactDOM);
|
|
|
33
33
|
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
34
34
|
|
|
35
35
|
const name$f = "@copart/ops-tool-kit";
|
|
36
|
-
const version$5 = "1.8.1-alpha.
|
|
36
|
+
const version$5 = "1.8.1-alpha.40";
|
|
37
37
|
const main$1 = "dist/ops-tool-kit.js";
|
|
38
38
|
const style = "dist/ops-tool-kit.css";
|
|
39
39
|
const files = [
|
|
@@ -2560,29 +2560,24 @@ var isobject = function isObject(val) {
|
|
|
2560
2560
|
};
|
|
2561
2561
|
|
|
2562
2562
|
function isObjectObject(o) {
|
|
2563
|
-
return isobject(o) === true
|
|
2564
|
-
&& Object.prototype.toString.call(o) === '[object Object]';
|
|
2563
|
+
return isobject(o) === true && Object.prototype.toString.call(o) === '[object Object]';
|
|
2565
2564
|
}
|
|
2566
2565
|
|
|
2567
2566
|
var isPlainObject = function isPlainObject(o) {
|
|
2568
|
-
var ctor,prot;
|
|
2567
|
+
var ctor, prot;
|
|
2568
|
+
if (isObjectObject(o) === false) return false; // If has modified constructor
|
|
2569
2569
|
|
|
2570
|
-
if (isObjectObject(o) === false) return false;
|
|
2571
|
-
|
|
2572
|
-
// If has modified constructor
|
|
2573
2570
|
ctor = o.constructor;
|
|
2574
|
-
if (typeof ctor !== 'function') return false;
|
|
2571
|
+
if (typeof ctor !== 'function') return false; // If has modified prototype
|
|
2575
2572
|
|
|
2576
|
-
// If has modified prototype
|
|
2577
2573
|
prot = ctor.prototype;
|
|
2578
|
-
if (isObjectObject(prot) === false) return false;
|
|
2574
|
+
if (isObjectObject(prot) === false) return false; // If constructor does not have an Object-specific method
|
|
2579
2575
|
|
|
2580
|
-
// If constructor does not have an Object-specific method
|
|
2581
2576
|
if (prot.hasOwnProperty('isPrototypeOf') === false) {
|
|
2582
2577
|
return false;
|
|
2583
|
-
}
|
|
2578
|
+
} // Most likely a plain Object
|
|
2579
|
+
|
|
2584
2580
|
|
|
2585
|
-
// Most likely a plain Object
|
|
2586
2581
|
return true;
|
|
2587
2582
|
};
|
|
2588
2583
|
|
|
@@ -35256,7 +35251,7 @@ function filterOutNotificationForOtherApps(notifications) {
|
|
|
35256
35251
|
var currentApp = window.location.pathname === '/' ? 'home' : window.location.pathname;
|
|
35257
35252
|
var tilesConfig = storage$1.getLocalItem('opsportal-core:config').tiles || [];
|
|
35258
35253
|
var tile = tilesConfig.find(function (item) {
|
|
35259
|
-
return item.path === currentApp || "".concat(item.path, "/") === currentApp;
|
|
35254
|
+
return item.path === currentApp || "".concat(item.path, "/") === currentApp || currentApp.startsWith(item.path);
|
|
35260
35255
|
}) || {};
|
|
35261
35256
|
return notifications.filter(function (notification) {
|
|
35262
35257
|
var targetApps = pathOr$1(null, ['targetAudience', 'targetApplications'])(notification);
|
|
@@ -39782,7 +39777,7 @@ var getCurrentApp = function getCurrentApp() {
|
|
|
39782
39777
|
} else {
|
|
39783
39778
|
var tilesConfig = storage$1.getLocalItem('opsportal-core:config').tiles || [];
|
|
39784
39779
|
var tile = tilesConfig.find(function (item) {
|
|
39785
|
-
return item.path === currentApp || "".concat(item.path, "/") === currentApp;
|
|
39780
|
+
return item.path === currentApp || "".concat(item.path, "/") === currentApp || currentApp.startsWith(item.path);
|
|
39786
39781
|
}) || {};
|
|
39787
39782
|
app = tile.title;
|
|
39788
39783
|
}
|