File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import type { MaybeRefOrGetter } from 'vue'
22import { toValue } from 'vue'
3+ import { fetchNpmDownloadsRange } from '~/utils/npm/api'
34
45export type PackumentLikeForTime = {
56 time ?: Record < string , string >
@@ -45,12 +46,6 @@ export type PackageDownloadEvolutionOptions =
4546
4647type 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-
5449function toIsoDateString ( date : Date ) : string {
5550 return date . toISOString ( ) . slice ( 0 , 10 )
5651}
Original file line number Diff line number Diff 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} )
Original file line number Diff line number Diff line change @@ -127,9 +127,6 @@ export default defineNuxtConfig({
127127 compatibilityDate : '2026-01-31' ,
128128
129129 nitro : {
130- experimental : {
131- wasm : true ,
132- } ,
133130 externals : {
134131 inline : [
135132 'shiki' ,
You can’t perform that action at this time.
0 commit comments