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) 509 B
/** * This function checks if a certain version satisfies a version range. * @param range A range of versions written in semver * @param version A version number * @returns True if the version is in range, otherwise returns false * @example * satisfiesVersion("^1.0.0 || ^2.0.0", "1.0.0") // true * @example * satisfiesVersion("^1.2.0", "1.2.1") // true * @example * satisfiesVersion("^1.0.0", "2.0.0") // false */ export declare function satisfiesVersion(range: string, version: string): boolean;