@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.
15 lines (14 loc) • 586 B
JavaScript
;
// Set to true if the new hook system was imported (also if no agent)
// Prevents that the following import has side effects if it's still inside the codebase / used for middleware
// import Zen from "@aikidosec/firewall"
Object.defineProperty(exports, "__esModule", { value: true });
exports.setIsNewHookSystemUsed = setIsNewHookSystemUsed;
exports.isNewHookSystemUsed = isNewHookSystemUsed;
let _isNewHookSystemUsed = false;
function setIsNewHookSystemUsed(value) {
_isNewHookSystemUsed = value;
}
function isNewHookSystemUsed() {
return _isNewHookSystemUsed;
}