@copart/ops-tool-kit 1.10.11 → 1.10.12
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 +9 -4
- 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.10.
|
|
36
|
+
const version$5 = "1.10.12";
|
|
37
37
|
const main$1 = "dist/ops-tool-kit.js";
|
|
38
38
|
const style = "dist/ops-tool-kit.css";
|
|
39
39
|
const files = [
|
|
@@ -7039,7 +7039,9 @@ function () {
|
|
|
7039
7039
|
_context2.prev = 45;
|
|
7040
7040
|
endpoint = (_storage$getLocalItem = storage$1.getLocalItem('opsportal-core:config')) === null || _storage$getLocalItem === void 0 ? void 0 : (_storage$getLocalItem2 = _storage$getLocalItem.endpoints) === null || _storage$getLocalItem2 === void 0 ? void 0 : _storage$getLocalItem2.appScopesAWS;
|
|
7041
7041
|
_context2.next = 49;
|
|
7042
|
-
return fetcher.get(endpoint)
|
|
7042
|
+
return fetcher.get(endpoint).then(function (res) {
|
|
7043
|
+
return res.data;
|
|
7044
|
+
});
|
|
7043
7045
|
|
|
7044
7046
|
case 49:
|
|
7045
7047
|
appFunctions = _context2.sent;
|
|
@@ -11183,7 +11185,9 @@ function () {
|
|
|
11183
11185
|
endpoint = (_storage$getLocalItem = storage.getLocalItem('opsportal-core:config')) === null || _storage$getLocalItem === void 0 ? void 0 : (_storage$getLocalItem2 = _storage$getLocalItem.endpoints) === null || _storage$getLocalItem2 === void 0 ? void 0 : _storage$getLocalItem2.hierarchiesAWS;
|
|
11184
11186
|
_context.prev = 1;
|
|
11185
11187
|
_context.next = 4;
|
|
11186
|
-
return fetcher.get(endpoint)
|
|
11188
|
+
return fetcher.get(endpoint).then(function (res) {
|
|
11189
|
+
return res.data;
|
|
11190
|
+
});
|
|
11187
11191
|
|
|
11188
11192
|
case 4:
|
|
11189
11193
|
hierarchies = _context.sent;
|
|
@@ -42062,7 +42066,8 @@ var appFunctionIdAllowed = function appFunctionIdAllowed() {
|
|
|
42062
42066
|
var tile = arguments.length > 4 ? arguments[4] : undefined;
|
|
42063
42067
|
|
|
42064
42068
|
if (tile.useAppScopes) {
|
|
42065
|
-
|
|
42069
|
+
var userAppScopes = Array.isArray(appScopes) ? appScopes : [];
|
|
42070
|
+
return tile.appAuthName && userAppScopes.some(function (appScope) {
|
|
42066
42071
|
return appScope.appName === tile.appAuthName;
|
|
42067
42072
|
});
|
|
42068
42073
|
}
|