@websanova/vue-auth
Advanced tools
Comparing version 2.5.0-beta to 2.5.1-beta
@@ -17,3 +17,3 @@ { | ||
"version": "2.5.0-beta", | ||
"version": "2.5.1-beta", | ||
@@ -28,3 +28,3 @@ "repository": { | ||
"dependencies": { | ||
"@websanova/vue-auth": "2.5.0-beta" | ||
"@websanova/vue-auth": "2.5.1-beta" | ||
}, | ||
@@ -31,0 +31,0 @@ |
@@ -50,3 +50,2 @@ var __utils = require('./lib/utils.js'), | ||
if ( ! __cookie.exists.call(this)) { | ||
console.log('routerBeforeEach') | ||
this.options.logoutProcess.call(this, null, {}); | ||
@@ -153,3 +152,2 @@ | ||
data.error = function (res) { | ||
console.log('error'); | ||
_this.watch.loaded = true; | ||
@@ -164,3 +162,2 @@ | ||
else { | ||
console.log('duckPunch') | ||
__duckPunch.call(this, 'fetch', data); | ||
@@ -171,6 +168,5 @@ } | ||
function _fetchProcess(res, data) { | ||
console.log('fetchProcess'); | ||
this.watch.loaded = true; | ||
this.watch.authenticated = true; | ||
this.watch.data = this.options.parseUserData.call(this, this.options.http._httpData.call(this, res)); | ||
this.watch.loaded = true; | ||
@@ -177,0 +173,0 @@ if (data.success) { data.success.call(this, res); } |
@@ -9,3 +9,2 @@ var Auth = require('./auth.js')(); | ||
// var ready = auth.ready; | ||
var login = auth.login; | ||
@@ -23,3 +22,2 @@ var fetch = auth.fetch; | ||
get: function () { | ||
// auth.ready = ready.bind(this); | ||
auth.login = login.bind(this); | ||
@@ -26,0 +24,0 @@ auth.fetch = fetch.bind(this); |
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
391486
2976
3295