refactor: dedupe doctor compat record helper

This commit is contained in:
Peter Steinberger
2026-04-06 20:19:27 +01:00
parent 38e4fb3642
commit 6d52014ef8
5 changed files with 5 additions and 19 deletions

View File

@@ -3,7 +3,7 @@ type CompatMutationResult = {
changed: boolean;
};
function asObjectRecord(value: unknown): Record<string, unknown> | null {
export function asObjectRecord(value: unknown): Record<string, unknown> | null {
return value && typeof value === "object" && !Array.isArray(value)
? (value as Record<string, unknown>)
: null;

View File

@@ -1,5 +1,6 @@
export { collectProviderDangerousNameMatchingScopes } from "../config/dangerous-name-matching.js";
export {
asObjectRecord,
hasLegacyAccountStreamingAliases,
hasLegacyStreamingAliases,
normalizeLegacyDmAliases,