@aikidosec/firewall
Version:
Zen by Aikido is an embedded Application Firewall that autonomously protects Node.js apps against common and critical attacks, provides rate limiting, detects malicious traffic (including bots), and more.
23 lines (22 loc) • 555 B
JavaScript
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;
;