@experium/nest-bruteforce-guard
Version:
Authorization protection from bruteforce
16 lines (15 loc) • 388 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExceptionCatcherRegistry = void 0;
class ExceptionCatcherRegistry {
constructor() {
this.catchers = [];
}
register(catcher) {
this.catchers.push(catcher);
}
getAll() {
return this.catchers;
}
}
exports.ExceptionCatcherRegistry = ExceptionCatcherRegistry;