UNPKG

redos-detector

Version:

A CLI and library which tests helps score how vulnerable a regex pattern is to ReDoS attacks. Supported in the browser, Node and Deno.

4 lines (3 loc) 300 B
export declare function getOrCreate<TKey, TValue>(input: Map<TKey, TValue>, key: TKey, buildDefaultValue: () => TValue): TValue; export declare function areMapsEqual<K, V>(a: ReadonlyMap<K, V>, b: ReadonlyMap<K, V>): boolean; export declare function mustGet<K, V>(map: ReadonlyMap<K, V>, key: K): V;