You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@frontegg/client

Package Overview
Dependencies
Maintainers
1
Versions
184
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@frontegg/client - npm Package Compare versions

Comparing version

to
1.0.25-2

6

dist/src/middleware/index.js

@@ -99,9 +99,9 @@ "use strict";

permissions = context.permissions;
if (permissions === null) {
if (!permissions) {
logger_1.default.error('No permissions were passed for frontegg middleware');
res.status(403).send();
return [2 /*return*/, res.status(403).send()];
}
if (!permissions.length) {
logger_1.default.error('Permissions array is empty for frontegg middleware');
res.status(403).send();
return [2 /*return*/, res.status(403).send()];
}

@@ -108,0 +108,0 @@ // We allow OPTIONS

{
"name": "@frontegg/client",
"version": "1.0.25-1",
"version": "1.0.25-2",
"description": "Frontegg Javascript Library for backend",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -57,5 +57,5 @@ import * as httpProxy from 'http-proxy';

if (permissions === null) {
if (!permissions) {
Logger.error('No permissions were passed for frontegg middleware');
res.status(403).send();
return res.status(403).send();
}

@@ -65,3 +65,3 @@

Logger.error('Permissions array is empty for frontegg middleware');
res.status(403).send();
return res.status(403).send();
}

@@ -68,0 +68,0 @@