UNPKG

@aikidosec/firewall

Version:

Zen by Aikido is an embedded Web Application Firewall that autonomously protects Node.js apps against common and critical attacks

23 lines (22 loc) 555 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Global = void 0; class Global { constructor(name, interceptors) { this.name = name; this.interceptors = interceptors; if (!this.name) { throw new Error("Name is required"); } if (!this.interceptors) { throw new Error("Interceptors are required"); } } getName() { return this.name; } getInterceptors() { return this.interceptors; } } exports.Global = Global;