diff --git a/src/helpers/transformDeployCoverageReport.ts b/src/helpers/transformDeployCoverageReport.ts index 9bc90b6..ee40457 100644 --- a/src/helpers/transformDeployCoverageReport.ts +++ b/src/helpers/transformDeployCoverageReport.ts @@ -1,6 +1,6 @@ 'use strict'; -import async from 'async'; +import { mapLimit } from 'async'; import { getCoverageHandler } from '../handlers/getCoverageHandler.js'; import { DeployCoverageData } from './types.js'; @@ -37,7 +37,7 @@ export async function transformDeployCoverageReport( }; const concurrencyLimit = getConcurrencyThreshold(); - await async.mapLimit(Object.keys(data).filter((fileName) => Object.hasOwn(data, fileName)), concurrencyLimit, async (fileName: string) => { + await mapLimit(Object.keys(data).filter((fileName) => Object.hasOwn(data, fileName)), concurrencyLimit, async (fileName: string) => { const result = await processFile(fileName); if (result) { filesProcessed++; diff --git a/src/helpers/transformTestCoverageReport.ts b/src/helpers/transformTestCoverageReport.ts index 6f1d26a..8131a29 100644 --- a/src/helpers/transformTestCoverageReport.ts +++ b/src/helpers/transformTestCoverageReport.ts @@ -1,6 +1,6 @@ 'use strict'; -import async from 'async'; +import { mapLimit } from 'async'; import { getCoverageHandler } from '../handlers/getCoverageHandler.js'; import { TestCoverageData } from './types.js'; @@ -40,7 +40,7 @@ export async function transformTestCoverageReport( }; const concurrencyLimit = getConcurrencyThreshold(); - await async.mapLimit(coverageData, concurrencyLimit, async (data: TestCoverageData) => { + await mapLimit(coverageData, concurrencyLimit, async (data: TestCoverageData) => { const result = await processFile(data); if (result) { filesProcessed++;