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.

14 lines (13 loc) 484 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getMaxApiDiscoverySamples = getMaxApiDiscoverySamples; const MAX_API_DISCOVERY_SAMPLES = 10; function getMaxApiDiscoverySamples() { if (process.env.AIKIDO_MAX_API_DISCOVERY_SAMPLES) { const parsed = parseInt(process.env.AIKIDO_MAX_API_DISCOVERY_SAMPLES, 10); if (!isNaN(parsed) && parsed >= 0) { return parsed; } } return MAX_API_DISCOVERY_SAMPLES; }