@accounts/client
Advanced tools
Comparing version 0.1.0-beta.5 to 0.1.0-beta.6
@@ -69,5 +69,3 @@ "use strict"; | ||
this.transport = transport; | ||
var middleware = options.reduxLogger | ||
? [options.reduxLogger] | ||
: []; | ||
var middleware = options.reduxLogger ? [options.reduxLogger] : []; | ||
var reduxStoreKey = options.reduxStoreKey || config_1.default.reduxStoreKey; | ||
@@ -136,8 +134,6 @@ this.store = | ||
case 1: | ||
_a.accessToken = (_b.sent()) || | ||
null; | ||
_a.accessToken = (_b.sent()) || null; | ||
return [4, this.getStorageData(getTokenKey(REFRESH_TOKEN, this.options))]; | ||
case 2: | ||
tokens = (_a.refreshToken = (_b.sent()) || | ||
null, | ||
tokens = (_a.refreshToken = (_b.sent()) || null, | ||
_a); | ||
@@ -328,4 +324,3 @@ this.store.dispatch(module_1.setTokens(tokens)); | ||
_a.sent(); | ||
if (this.options.onResumedSessionHook && | ||
lodash_1.isFunction(this.options.onResumedSessionHook)) { | ||
if (this.options.onResumedSessionHook && lodash_1.isFunction(this.options.onResumedSessionHook)) { | ||
this.options.onResumedSessionHook(); | ||
@@ -401,4 +396,3 @@ } | ||
} | ||
if (!common_1.validators.validateUsername(user.username) && | ||
!common_1.validators.validateEmail(user.email)) { | ||
if (!common_1.validators.validateUsername(user.username) && !common_1.validators.validateEmail(user.email)) { | ||
throw new common_1.AccountsError('Username or Email is required'); | ||
@@ -405,0 +399,0 @@ } |
{ | ||
"name": "@accounts/client", | ||
"version": "0.1.0-beta.5", | ||
"version": "0.1.0-beta.6", | ||
"description": "Fullstack authentication and accounts-management", | ||
@@ -60,3 +60,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@accounts/common": "^0.1.0-beta.5", | ||
"@accounts/common": "^0.1.0-beta.6", | ||
"crypto-js": "^3.1.9-1", | ||
@@ -63,0 +63,0 @@ "immutable": "^3.8.1", |
Sorry, the diff of this file is not supported yet
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
59000
964