@@ -18,8 +18,8 @@ import type {
1818 YearlyDataPoint ,
1919} from ' ~/types/chart'
2020import { DATE_INPUT_MAX } from ' ~/utils/input'
21- import { applyDownloadFilter } from ' ~/utils/chart-data-correction'
22- import { applyBlocklistFilter } from ' ~/utils/download-anomalies'
21+ import { applyDataCorrection } from ' ~/utils/chart-data-correction'
22+ import { applyBlocklistCorrection } from ' ~/utils/download-anomalies'
2323
2424const props = withDefaults (
2525 defineProps <{
@@ -946,9 +946,9 @@ const effectiveDataSingle = computed<EvolutionData>(() => {
946946 if (isDownloadsMetric .value && data .length ) {
947947 const pkg = effectivePackageNames .value [0 ] ?? props .packageName ?? ' '
948948 if (settings .value .chartFilter .anomaliesFixed ) {
949- data = applyBlocklistFilter (data , pkg , displayedGranularity .value )
949+ data = applyBlocklistCorrection (data , pkg , displayedGranularity .value )
950950 }
951- return applyDownloadFilter (
951+ return applyDataCorrection (
952952 data as Array <{ value: number }>,
953953 settings .value .chartFilter ,
954954 ) as EvolutionData
@@ -990,9 +990,9 @@ const chartData = computed<{
990990 let data = state .evolutionsByPackage [pkg ] ?? []
991991 if (isDownloadsMetric .value && data .length ) {
992992 if (settings .value .chartFilter .anomaliesFixed ) {
993- data = applyBlocklistFilter (data , pkg , granularity )
993+ data = applyBlocklistCorrection (data , pkg , granularity )
994994 }
995- data = applyDownloadFilter (
995+ data = applyDataCorrection (
996996 data as Array <{ value: number }>,
997997 settings .value .chartFilter ,
998998 ) as EvolutionData
0 commit comments