UNPKG

@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.

20 lines (19 loc) 599 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.checkHooks = checkHooks; async function checkHooks() { let success = false; try { const imported = await Promise.resolve().then(() => require("./zenHooksCheckImport")); if (imported.test() === ":)") { success = true; } } catch { // } if (!success) { // eslint-disable-next-line no-console console.warn(`AIKIDO: A self check of the code instrumentation failed. This means that the protection might not work as expected.`); } }