Skip to content

Commit 4ac74fa

Browse files
ci: apply automated fixes
1 parent 77c6e4d commit 4ac74fa

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/utils/stats.functions.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -457,9 +457,8 @@ async function fetchNpmPackageDownloadsChunked(
457457
let lastChunkData: { day: string; downloads: number }[] = []
458458

459459
// Load cache functions (dynamic import for Netlify compatibility)
460-
const { getCachedNpmDownloadChunk, setCachedNpmDownloadChunk } = await import(
461-
'./stats-db.server'
462-
)
460+
const { getCachedNpmDownloadChunk, setCachedNpmDownloadChunk } =
461+
await import('./stats-db.server')
463462

464463
// Fetch chunks sequentially to avoid nested AsyncQueuer complexity
465464
// The outer queue (per-package) provides concurrency control
@@ -864,9 +863,8 @@ export async function computeNpmOrgStats(org: string): Promise<NpmStats> {
864863
*/
865864
export async function refreshNpmOrgStats(org: string): Promise<NpmStats> {
866865
// Import db functions dynamically to avoid pulling server code into client bundle
867-
const { discoverAndRegisterPackages, setCachedNpmOrgStats } = await import(
868-
'./stats-db.server'
869-
)
866+
const { discoverAndRegisterPackages, setCachedNpmOrgStats } =
867+
await import('./stats-db.server')
870868

871869
// First, discover and register all packages
872870
try {

0 commit comments

Comments
 (0)