New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.30.0 to 0.31.0

13

lib/accounts-client.js

@@ -216,11 +216,14 @@ "use strict";

tokens = _a.sent();
if (!tokens) return [3 /*break*/, 4];
return [4 /*yield*/, this.setTokens(tokens)];
if (!tokens) return [3 /*break*/, 5];
return [4 /*yield*/, this.logout()];
case 2:
_a.sent();
return [4 /*yield*/, this.clearTokens(true)];
return [4 /*yield*/, this.setTokens(tokens)];
case 3:
_a.sent();
_a.label = 4;
case 4: return [2 /*return*/];
return [4 /*yield*/, this.clearTokens(true)];
case 4:
_a.sent();
_a.label = 5;
case 5: return [2 /*return*/];
}

@@ -227,0 +230,0 @@ });

{
"name": "@accounts/client",
"version": "0.30.0",
"version": "0.31.0",
"description": "Fullstack authentication and accounts-management",

@@ -51,3 +51,2 @@ "main": "lib/index.js",

"@types/jest": "25.2.3",
"@types/jwt-decode": "2.2.1",
"@types/node": "14.0.14",

@@ -61,7 +60,7 @@ "jest": "26.0.1",

"dependencies": {
"@accounts/types": "^0.30.0",
"jwt-decode": "2.2.0",
"@accounts/types": "^0.31.0",
"jwt-decode": "3.1.2",
"tslib": "2.0.0"
},
"gitHead": "a883d3b90c481e9c73a7655ef2aadac092fc6b0e"
"gitHead": "8938531dd59f40e14e029c8785433acb455bd58c"
}

@@ -177,2 +177,3 @@ import { LoginResult, Tokens, ImpersonationResult, User } from '@accounts/types';

if (tokens) {
await this.logout();
await this.setTokens(tokens);

@@ -179,0 +180,0 @@ await this.clearTokens(true);

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