@mu-cabin/opms-permission 0.9.2 → 0.9.3

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.cjs CHANGED
@@ -162,10 +162,11 @@ var Storage = class {
162
162
  var storage = new Storage();
163
163
 
164
164
  // src/utils/dataHandler.ts
165
- function getCompletePath(item) {
165
+ var getCompletePath = (item) => {
166
166
  const menuUrl = item.openIndicator === "INNER_COMPONENT" ? item.componentPath : item.defaultUrl;
167
- return menuUrl ?? "";
168
- }
167
+ const path = item.prefix && item.openIndicator === "INNER_COMPONENT" ? `${item.prefix}${menuUrl}` : menuUrl ?? "";
168
+ return path;
169
+ };
169
170
  function getMenuName(item) {
170
171
  return item.resourceType !== "FOLDER" ? item.resourceName || "" : (item.showName ?? item.resourceName) || "";
171
172
  }
package/dist/index.mjs CHANGED
@@ -113,10 +113,11 @@ var Storage = class {
113
113
  var storage = new Storage();
114
114
 
115
115
  // src/utils/dataHandler.ts
116
- function getCompletePath(item) {
116
+ var getCompletePath = (item) => {
117
117
  const menuUrl = item.openIndicator === "INNER_COMPONENT" ? item.componentPath : item.defaultUrl;
118
- return menuUrl ?? "";
119
- }
118
+ const path = item.prefix && item.openIndicator === "INNER_COMPONENT" ? `${item.prefix}${menuUrl}` : menuUrl ?? "";
119
+ return path;
120
+ };
120
121
  function getMenuName(item) {
121
122
  return item.resourceType !== "FOLDER" ? item.resourceName || "" : (item.showName ?? item.resourceName) || "";
122
123
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mu-cabin/opms-permission",
3
- "version": "0.9.2",
3
+ "version": "0.9.3",
4
4
  "description": "Frontend SDK for OPMS permission and auth management.",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",