The options to construct the class.
Protected
Readonly
_HTTPErrorTo generate the errors in case the validation fails.
Protected
Readonly
_optionsThe customization options.
Protected
Readonly
_responsesTo generate responses for popups.
Protected
Readonly
_statusesThe uility service to get HTTP status codes.
The customization options.
Protected
_isHelper method that checks if the incoming request is from a popup. It will look for the query string variable defined in the constructor options.
The request object sent by the application.
Protected
_isGenerates the middleware that validates the version.
This is the handler for the middleware/controller that validates the application version. This is useful in cases where you want to restrict the access to specific versions; for example: you have a frontend which needs to be aligned with the "current" version of the application, since the frontend won't realize a new version was released, the validator can be used to let the frontend know. Also, it can be configured to handle requests from popups, in which case, instead of generating an error message, it will send a post message.
Prettierignore