backtrace-service
Advanced tools
Comparing version 3.0.0-alpha.2 to 3.0.0-alpha.3
@@ -31,3 +31,3 @@ import { NextFunction, Request, Response } from 'express'; | ||
*/ | ||
checkProjectAccess(request: Request, response: Express.Response, projects: string[] | number[]): void; | ||
checkProjectAccess(request: Request, response: Express.Response, projects: string[] | number[]): boolean; | ||
/** | ||
@@ -34,0 +34,0 @@ * Unconditionally set projectValidated flag to true. |
@@ -181,5 +181,5 @@ "use strict"; | ||
this.log('debug', "missing projects_ext"); | ||
return; // invalidated because flag is never set to true | ||
return false; // invalidated because flag is never set to true | ||
} | ||
ProjectValidation.check(response, projectsExt, projects); | ||
return ProjectValidation.check(response, projectsExt, projects); | ||
}; | ||
@@ -186,0 +186,0 @@ /** |
@@ -9,3 +9,3 @@ import { NextFunction, Request, Response } from 'express'; | ||
*/ | ||
export declare function check(res: Express.Response, allKnownProjects: IProjectsExt[], scopedProjects: string[] | number[]): void; | ||
export declare function check(res: Express.Response, allKnownProjects: IProjectsExt[], scopedProjects: string[] | number[]): boolean; | ||
/** | ||
@@ -12,0 +12,0 @@ * Middleware for Backtrace Teams |
@@ -26,3 +26,3 @@ "use strict"; | ||
setInvalid(res); | ||
return; | ||
return false; | ||
} | ||
@@ -46,6 +46,6 @@ // Remove duplicates because size matters in the end | ||
setValid(res); | ||
return; | ||
return true; | ||
} | ||
setInvalid(res); | ||
return; | ||
return false; | ||
} | ||
@@ -52,0 +52,0 @@ exports.check = check; |
{ | ||
"name": "backtrace-service", | ||
"version": "3.0.0-alpha.2", | ||
"version": "3.0.0-alpha.3", | ||
"description": "Common tools for Backtrace Node services", | ||
@@ -5,0 +5,0 @@ "author": "Backtrace", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
148874