@universis/janitor 2.4.0 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@universis/janitor",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "description": "Universis api plugin for handling user authorization and rate limiting",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,7 +25,8 @@ function validateClientScope() {
25
25
 
26
26
  function validateScope() {
27
27
  return (req, res, next) => {
28
- return validateClientScope(req, res, (err) => {
28
+ const validateClientScopeHandler = validateClientScope();
29
+ return validateClientScopeHandler(req, res, (err) => {
29
30
  if (err) {
30
31
  return next(err);
31
32
  }