Skip to content

Commit be5015e

Browse files
committed
Merge branch 'main' into remove-unnecessary-dependency
2 parents a58b30e + 5fbd523 commit be5015e

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

app/composables/useCharts.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { MaybeRefOrGetter } from 'vue'
22
import { toValue } from 'vue'
3+
import { fetchNpmDownloadsRange } from '~/utils/npm/api'
34

45
export type PackumentLikeForTime = {
56
time?: Record<string, string>
@@ -45,12 +46,6 @@ export type PackageDownloadEvolutionOptions =
4546

4647
type DailyDownloadsResponse = { downloads: Array<{ day: string; downloads: number }> }
4748

48-
declare function fetchNpmDownloadsRange(
49-
packageName: string,
50-
startIso: string,
51-
endIso: string,
52-
): Promise<DailyDownloadsResponse>
53-
5449
function toIsoDateString(date: Date): string {
5550
return date.toISOString().slice(0, 10)
5651
}

modules/production.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ export default defineNuxtModule({
1111

1212
if (isCI && provider !== 'github_actions') {
1313
nuxt.options.debug = defu(nuxt.options.debug, { hydration: true })
14+
nuxt.options.sourcemap = {
15+
server: true,
16+
client: true,
17+
}
1418
}
1519
},
1620
})

0 commit comments

Comments
 (0)