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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user