Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@accounts/client

Package Overview
Dependencies
Maintainers
5
Versions
201
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@accounts/client - npm Package Compare versions

Comparing version 0.1.0-beta.5 to 0.1.0-beta.6

16

lib/accounts-client.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc