File tree 1 file changed +6
-4
lines changed
sites/floating-ui-svelte.vercel.app/src/routes 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -12,18 +12,20 @@ async function getPageFind() {
12
12
}
13
13
14
14
async function getLatestVersion ( fetcher : typeof fetch ) {
15
- const response = await fetcher ( "https://registry.npmjs.org/@skeletonlabs/floating-ui-svelte" ) ;
15
+ const response = await fetcher (
16
+ "https://registry.npmjs.org/@skeletonlabs/floating-ui-svelte" ,
17
+ ) ;
16
18
const data = await response . json ( ) ;
17
- const version = data [ "dist-tags" ] . latest ;
19
+ const version = data [ "dist-tags" ] . latest as string ;
18
20
return version ;
19
21
}
20
22
21
23
export async function load ( { fetch } ) {
22
- const version = getLatestVersion ( fetch ) ;
24
+ const version = await getLatestVersion ( fetch ) ;
23
25
const pagefind = await getPageFind ( ) ;
24
26
return {
25
27
version : version ,
26
- pagefind : pagefind
28
+ pagefind : pagefind ,
27
29
} ;
28
30
}
29
31
You can’t perform that action at this time.
0 commit comments