(parts: Record<string, unknown>)
| 120 | ) |
| 121 | |
| 122 | export function stableEventKey(parts: Record<string, unknown>): string { |
| 123 | const payload = Object.keys(parts) |
| 124 | .sort() |
| 125 | .map((key) => `${key}:${String(parts[key] ?? '')}`) |
| 126 | .join('|') |
| 127 | return createHash('sha256').update(payload).digest('hex') |
| 128 | } |
| 129 | |
| 130 | type ResolvedSubscription = Awaited<ReturnType<typeof getHighestPrioritySubscription>> |
| 131 |
no test coverage detected