fix: strip PostHog internal fields from dry-run output

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Koshkoshinsk
2026-03-19 21:21:29 +00:00
committed by gavrielc
parent 3747dfeacc
commit 8c1d5598ba

View File

@@ -298,6 +298,9 @@ async function main(): Promise<void> {
if (dryRun) { if (dryRun) {
// Strip internal fields before showing to user // Strip internal fields before showing to user
const { api_key, distinct_id, ...visible } = payload; const { api_key, distinct_id, ...visible } = payload;
const props = visible.properties as Record<string, unknown>;
delete props.$process_person_profile;
delete props.$lib;
console.log(JSON.stringify(visible, null, 2)); console.log(JSON.stringify(visible, null, 2));
return; return;
} }