@profullstack/threatcrush 0.13.45 → 0.13.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -45362,8 +45362,10 @@ var RemediationManager = class {
45362
45362
  */
45363
45363
  async reconcile() {
45364
45364
  const now = Date.now();
45365
- const live2 = this.blocklist.filter((b) => b.expires_at > now);
45366
- const stale = this.blocklist.filter((b) => b.expires_at <= now);
45365
+ const lifted = this.blocklist.filter((b) => this.isAllowlisted(b.ip));
45366
+ for (const entry of lifted) this.logLine(`[firewall] reconcile: lifting ban on protected ${entry.ip}`);
45367
+ const live2 = this.blocklist.filter((b) => b.expires_at > now && !this.isAllowlisted(b.ip));
45368
+ const stale = this.blocklist.filter((b) => b.expires_at <= now || this.isAllowlisted(b.ip));
45367
45369
  for (const entry of stale) {
45368
45370
  if (!entry.dry_run) {
45369
45371
  try {