fix: also strip distinct_id from dry-run output
Ephemeral UUID is harmless but showing it to users creates unnecessary doubt about whether they're being tracked. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -296,8 +296,8 @@ async function main(): Promise<void> {
|
|||||||
const payload = buildPayload(event, systemInfo, data, success);
|
const payload = buildPayload(event, systemInfo, data, success);
|
||||||
|
|
||||||
if (dryRun) {
|
if (dryRun) {
|
||||||
// Strip secrets before showing to user
|
// Strip internal fields before showing to user
|
||||||
const { api_key, ...visible } = payload;
|
const { api_key, distinct_id, ...visible } = payload;
|
||||||
console.log(JSON.stringify(visible, null, 2));
|
console.log(JSON.stringify(visible, null, 2));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user