UNPKG

hook-engine

Version:

Production-grade webhook engine with comprehensive adapter support, security, reliability, structured logging, and CLI tools.

13 lines (12 loc) 322 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isDuplicate = isDuplicate; const seenEvents = new Set(); function isDuplicate(event) { const key = `${event.source}:${event.id}`; if (seenEvents.has(key)) { return true; } seenEvents.add(key); return false; }