@websanova/vue-auth
Advanced tools
Comparing version 2.8.0-beta to 2.8.1-beta
@@ -17,3 +17,3 @@ { | ||
"version": "2.8.0-beta", | ||
"version": "2.8.1-beta", | ||
@@ -52,3 +52,3 @@ "repository": { | ||
"@websanova/vue-auth": "2.8.0-beta", | ||
"@websanova/vue-auth": "2.8.1-beta", | ||
"axios": "0.15.3", | ||
@@ -55,0 +55,0 @@ "vue-axios": "1.2.2" |
@@ -463,3 +463,3 @@ # Vue Auth | ||
* Returns either an object if a redirect occurred or null. | ||
* Returns either an object if a redirect occurred or `null`. | ||
* The object is in the form `{type: <string>, from: <object>, to: <object>}` Where `type` is one of `401`, `403`, `404` and the `from` and `to` objects are just copies of the route transitions. | ||
@@ -814,2 +814,3 @@ | ||
* Fix for `loginData.fetchUser` when set to `false`. | ||
* Removed `transition` method, replaced with `redirect`. | ||
@@ -816,0 +817,0 @@ * Added `redirect` method for easy access to check for redirects from auth. |
@@ -123,3 +123,3 @@ var __utils = require('./lib/utils.js'), | ||
function _parseUserData(data) { | ||
return data.data; | ||
return data.data || {}; | ||
} | ||
@@ -126,0 +126,0 @@ |
@@ -12,3 +12,3 @@ module.exports = (function (){ | ||
function toArray(val) { | ||
return (typeof val) === 'string' || (typeof val) === 'number' ? [val] : val; | ||
return val === undefined || (typeof val) === 'string' || (typeof val) === 'number' ? [val] : val; | ||
} | ||
@@ -15,0 +15,0 @@ |
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
383173
70
2748
913