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