@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.
8 lines (7 loc) • 397 B
TypeScript
import type { PackageJson } from "type-fest";
import type { ModulePathInfo } from "./getModuleInfoFromPath";
/**
* This function checks if the required file is the main file of the package.
* It does this by checking the package.json file of the package.
*/
export declare function isMainJsFile(pathInfo: ModulePathInfo, requireId: string, filename: string, packageJson: PackageJson): boolean;