File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff 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 */
865864export 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 {
You can’t perform that action at this time.
0 commit comments