@aikidosec/firewall
Version:
Zen by Aikido is an embedded Web Application Firewall that autonomously protects Node.js apps against common and critical attacks
21 lines (20 loc) • 464 B
TypeScript
type User = {
id: string;
name: string | undefined;
lastIpAddress: string | undefined;
};
export declare class Users {
private readonly maxEntries;
private users;
constructor(maxEntries?: number);
addUser(user: User): void;
asArray(): {
id: string;
name: string | undefined;
lastIpAddress: string | undefined;
firstSeenAt: number;
lastSeenAt: number;
}[];
clear(): void;
}
export {};