@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.
11 lines (10 loc) • 408 B
TypeScript
type WrappedFunction<T> = T & {
__original: T;
};
export declare function wrap(module: any, name: string, wrapper: (original: Function) => Function): Function;
export declare function createWrappedFunction(original: Function, wrapper: (original: Function) => Function): Function;
/**
* Check if a function is wrapped
*/
export declare function isWrapped<T>(fn: T): fn is WrappedFunction<T>;
export {};