@websanova/vue-auth
Advanced tools
Comparing version 2.12.1-beta to 2.13.0-beta
@@ -17,3 +17,3 @@ { | ||
"version": "2.12.1-beta", | ||
"version": "2.13.0-beta", | ||
@@ -38,10 +38,15 @@ "repository": { | ||
"vue-loader": "9.5.1", | ||
"vue": "2.3.4", | ||
"vue-router": "2.5.3", | ||
"vue-resource": "1.3.4", | ||
"vue-server-renderer": "2.3.4", | ||
"vue-style-loader": "1.0.0", | ||
"css-loader": "0.25.0", | ||
"style-loader": "0.13.1", | ||
"vue-html-loader": "1.2.3", | ||
"file-loader": "^0.8.4", | ||
"vue-loader": "12.2.1", | ||
"vue-style-loader": "3.0.1", | ||
"vue-template-compiler": "2.3.4", | ||
"css-loader": "0.28.4", | ||
"style-loader": "0.18.2", | ||
"file-loader": "0.11.2", | ||
"webpack": "1.13.1", | ||
@@ -53,5 +58,5 @@ "webpack-dev-server": "1.16.1", | ||
"@websanova/vue-auth": "2.12.1-beta", | ||
"axios": "^0.16.1", | ||
"vue-axios": "^2.0.2" | ||
"@websanova/vue-auth": "2.13.0-beta", | ||
"axios": "0.16.2", | ||
"vue-axios": "2.0.2" | ||
}, | ||
@@ -58,0 +63,0 @@ |
@@ -477,2 +477,3 @@ # Vue Auth | ||
* Returns the currently stored users data. | ||
* Update the current user by passing in an object. | ||
@@ -485,2 +486,7 @@ ~~~ | ||
~~~ | ||
this.$auth.user(userObject); | ||
~~~ | ||
### check | ||
@@ -526,3 +532,4 @@ | ||
* Returns the currently activated token if none are specified. | ||
* Can also specify a specific token, but only `other` and `default` will actually return anything. | ||
* Can also specify a specific token, but only `other` and `default` will actually return anything unless setting your own token. | ||
* Can set a token with optional second argument, set null to use default naming conventions. | ||
@@ -533,4 +540,10 @@ ~~~ | ||
var token = this.$auth.token('default'); | ||
this.$auth.token(null, token); | ||
this.$auth.token('test', token); | ||
var token = this.$auth.token('test'); | ||
~~~ | ||
### fetch | ||
@@ -537,0 +550,0 @@ |
@@ -545,3 +545,7 @@ var __utils = require('./lib/utils.js'), | ||
Auth.prototype.token = function (name) { | ||
Auth.prototype.token = function (name, token) { | ||
if (token) { | ||
__token.set.call(this, name, token); | ||
} | ||
return __token.get.call(this, name); | ||
@@ -548,0 +552,0 @@ }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
846411
98
13444
944
23
4
90
3