fix(telemetry): renames _aggregateTelemetry to aggregateTelemetry to avoid confusion about it being a private function (it's not)

This commit is contained in:
Eyal Toledano
2025-05-17 17:48:45 -04:00
parent 6ba42b53dc
commit 8a3b611fc2
2 changed files with 4 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ import {
} from '../ui.js';
import expandTask from './expand-task.js';
import { getDebugFlag } from '../config-manager.js';
import { _aggregateTelemetry } from '../utils.js';
import { aggregateTelemetry } from '../utils.js';
import chalk from 'chalk';
import boxen from 'boxen';
@@ -153,7 +153,7 @@ async function expandAllTasks(
);
// Aggregate the collected telemetry data
const aggregatedTelemetryData = _aggregateTelemetry(
const aggregatedTelemetryData = aggregateTelemetry(
allTelemetryData,
'expand-all-tasks'
);

View File

@@ -552,7 +552,7 @@ function detectCamelCaseFlags(args) {
* @param {string} overallCommandName - The name for the aggregated command.
* @returns {Object|null} Aggregated telemetry object or null if input is empty.
*/
function _aggregateTelemetry(telemetryArray, overallCommandName) {
function aggregateTelemetry(telemetryArray, overallCommandName) {
if (!telemetryArray || telemetryArray.length === 0) {
return null;
}
@@ -624,5 +624,5 @@ export {
addComplexityToTask,
resolveEnvVariable,
findProjectRoot,
_aggregateTelemetry
aggregateTelemetry
};