@mapomodule/core
Advanced tools
Comparing version 1.0.0-alpha.8 to 1.0.0-alpha.9
@@ -6,2 +6,10 @@ # Change Log | ||
# [1.0.0-alpha.9](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.8...v1.0.0-alpha.9) (2022-02-08) | ||
**Note:** Version bump only for package @mapomodule/core | ||
# [1.0.0-alpha.8](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.7...v1.0.0-alpha.8) (2022-01-23) | ||
@@ -8,0 +16,0 @@ |
@@ -7,3 +7,3 @@ import createRepository from '@mapomodule/core/api/crud' | ||
const meta = Array.isArray(route?.meta) ? route.meta[0] : route.meta | ||
const { middleware } = meta | ||
const { middleware } = meta || {} | ||
return (typeof middleware === "string" ? [middleware] : middleware) || [] | ||
@@ -50,3 +50,3 @@ } | ||
get username() { return ctx.store.getters['mapo/user/username'] }, | ||
get permissions() { return ctx.store.getters['mapo/user/pagePermission'](ctx.app.context.route.name) }, | ||
get permissions() { return ctx.store.getters['mapo/user/pagePermission'](ctx.app?.context?.route?.name || "") }, | ||
get role() { return ctx.store.getters['mapo/user/role'] } | ||
@@ -59,3 +59,3 @@ }, | ||
get routeMiddlewares() { | ||
return getRouteMiddlewares(ctx.app.context.route) | ||
return getRouteMiddlewares(ctx.app?.context?.route || {}) | ||
}, | ||
@@ -62,0 +62,0 @@ /** |
{ | ||
"name": "@mapomodule/core", | ||
"version": "1.0.0-alpha.8", | ||
"version": "1.0.0-alpha.9", | ||
"description": "This is part of Mapo nuxt module. Injects the core mapo plugin helpers.", | ||
@@ -16,3 +16,3 @@ "author": "bnznamco <gabriele.baldi.01@gmail.com>", | ||
"dependencies": { | ||
"@mapomodule/utils": "^1.0.0-alpha.8" | ||
"@mapomodule/utils": "^1.0.0-alpha.9" | ||
}, | ||
@@ -22,3 +22,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "4448ce925e9f3af25f78f86c3e28a88145201520" | ||
"gitHead": "a75142247a9371981aea57b76828bd354b375aea" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19070