Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(params) {
params.moduleVersion = MODULE_VERSION;
const pxClient = new PxExpressClient();
this.enforcer = new PxEnforcer(params, pxClient);
if (this.enforcer.config.conf.DYNAMIC_CONFIGURATIONS) {
setInterval(
this.enforcer.config.confManager.loadData.bind(this.enforcer.config.confManager),
this.enforcer.config.conf.CONFIGURATION_LOAD_INTERVAL
);
}
this.middleware = this.newMiddleware();
}