@websanova/vue-auth
Advanced tools
Comparing version 3.1.2-beta to 3.1.3-beta
@@ -17,3 +17,3 @@ { | ||
"version": "3.1.2-beta", | ||
"version": "3.1.3-beta", | ||
@@ -20,0 +20,0 @@ "repository": { |
@@ -288,3 +288,3 @@ import * as __utils from './lib/utils.js'; | ||
if ( ! __auth.check()) { | ||
__auth.$vm.transitionRedirectType = 401; | ||
__auth.transitionRedirectType = 401; | ||
@@ -298,3 +298,3 @@ if (typeof authRedirect === 'function') { | ||
else if ((routeAuth.constructor === Array || __utils.isObject(routeAuth)) && ! __utils.compare(routeAuth, __auth.$vm.data[__auth.options.rolesKey])) { | ||
__auth.$vm.transitionRedirectType = 403; | ||
__auth.transitionRedirectType = 403; | ||
@@ -308,4 +308,4 @@ if (typeof forbiddenRedirect === 'function') { | ||
else { | ||
__auth.$vm.redirect = __auth.$vm.transitionRedirectType ? {type: __auth.$vm.transitionRedirectType, from: __auth.$vm.transitionPrev, to: __auth.$vm.transitionThis} : null; | ||
__auth.$vm.transitionRedirectType = null; | ||
__auth.$vm.redirect = __auth.transitionRedirectType ? {type: __auth.transitionRedirectType, from: __auth.transitionPrev, to: __auth.transitionThis} : null; | ||
__auth.transitionRedirectType = null; | ||
@@ -316,3 +316,3 @@ return cb(); | ||
else if (routeAuth === false && __auth.check()) { | ||
__auth.$vm.transitionRedirectType = 404; | ||
__auth.transitionRedirectType = 404; | ||
@@ -326,4 +326,4 @@ if (typeof notFoundRedirect === 'function') { | ||
else { | ||
__auth.$vm.redirect = __auth.$vm.transitionRedirectType ? {type: __auth.$vm.transitionRedirectType, from: __auth.$vm.transitionPrev, to: __auth.$vm.transitionThis} : null; | ||
__auth.$vm.transitionRedirectType = null; | ||
__auth.$vm.redirect = __auth.transitionRedirectType ? {type: __auth.transitionRedirectType, from: __auth.transitionPrev, to: __auth.transitionThis} : null; | ||
__auth.transitionRedirectType = null; | ||
@@ -330,0 +330,0 @@ return cb(); |
Sorry, the diff of this file is not supported yet
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
83513