@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) • 565 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.BuiltinModule = void 0;
class BuiltinModule {
constructor(name) {
this.name = name;
this.requireInterceptors = [];
if (!this.name) {
throw new Error("Name is required");
}
}
getName() {
return this.name;
}
onRequire(interceptor) {
this.requireInterceptors.push(interceptor);
}
getRequireInterceptors() {
return this.requireInterceptors;
}
}
exports.BuiltinModule = BuiltinModule;