@frontegg/client
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -187,2 +187,3 @@ "use strict"; | ||
// response was already sent from the middleware, we have nothing left to do | ||
logger_1.default.debug('Headers was already sent from authMiddleware'); | ||
return [2 /*return*/]; | ||
@@ -194,2 +195,7 @@ } | ||
logger_1.default.error("Failed to call middleware - ", e_1); | ||
if (res.headersSent) { | ||
// response was already sent from the middleware, we have nothing left to do | ||
logger_1.default.debug('authMiddleware threw error, but headers was already sent'); | ||
return [2 /*return*/]; | ||
} | ||
return [2 /*return*/, res.status(401).send(e_1.message)]; | ||
@@ -196,0 +202,0 @@ case 7: |
{ | ||
"name": "@frontegg/client", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "Frontegg Javascript Library for backend", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
236171
3479