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.

9 lines (8 loc) 348 B
/** * Decodes a URI component, returning undefined if the URI is invalid. * This function is a safe alternative to `decodeURIComponent`, which throws * an error if the URI is malformed. * * We use this for performance reasons (throwing errors is very slow). */ export declare function safeDecodeURIComponent(uri: string): string | undefined;