x-essential-lib 0.5.1 → 0.5.2
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 +2 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -288,7 +288,6 @@ const Ae = [
|
|
|
288
288
|
{ path: "/mine/general/language", level: 3, requiredState: "org" },
|
|
289
289
|
{ path: "/app/manager", level: 1, requiredState: "org" },
|
|
290
290
|
{ path: "/app/editor", level: 2, requiredState: "org" },
|
|
291
|
-
{ path: "/app/editor/*", level: 2, requiredState: "org" },
|
|
292
291
|
{ path: "/asset", level: 1, requiredState: "org" },
|
|
293
292
|
{ path: "/calc", level: 1, requiredState: "org" },
|
|
294
293
|
{ path: "/data", level: 1, requiredState: "org" }
|
|
@@ -301,7 +300,7 @@ function N(e) {
|
|
|
301
300
|
let l = 0;
|
|
302
301
|
for (let c = 0; c < r.length && !(c >= n.length || r[c] !== n[c]); c++)
|
|
303
302
|
l++;
|
|
304
|
-
l >= t && (a = o, t = l);
|
|
303
|
+
l > 0 && l >= t && (a = o, t = l);
|
|
305
304
|
}), a;
|
|
306
305
|
}
|
|
307
306
|
function ae(e) {
|
|
@@ -811,7 +810,7 @@ function mt(e, a) {
|
|
|
811
810
|
if (!o.running)
|
|
812
811
|
return;
|
|
813
812
|
const i = N(t.path);
|
|
814
|
-
if (
|
|
813
|
+
if (!(!i || i.requiredState !== "org"))
|
|
815
814
|
try {
|
|
816
815
|
const { update: p, permissions: y } = await Ze(a, {
|
|
817
816
|
checksum: o.permissionChecksum
|