@frontegg/client
Advanced tools
Comparing version 1.0.25 to 1.0.26-0
@@ -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", | ||
"version": "1.0.26-0", | ||
"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 @@ |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
54720
3