@kolinalabs/nodejs-api-pack
Advanced tools
Comparing version 1.0.4 to 1.0.5
{ | ||
"name": "@kolinalabs/nodejs-api-pack", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Basic API flow helper for NodeJS", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -11,2 +11,3 @@ const { Method, Type } = require("./enums"); | ||
this.operation = {}; | ||
this.routeChecker = null; | ||
} | ||
@@ -43,2 +44,6 @@ | ||
getRouteChecker() { | ||
return this.routeChecker; | ||
} | ||
getOperationChecker() { | ||
@@ -109,2 +114,10 @@ return this.checkers[0] || null; | ||
async checkRoute() { | ||
const checker = this.getRouteChecker(); | ||
if (!checker) { | ||
return; | ||
} | ||
await checker.checkRoute(this.operation); | ||
} | ||
async check() { | ||
@@ -111,0 +124,0 @@ const checker = this.getOperationChecker(); |
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
415
18917
13