mirror of
https://github.com/pesde-pkg/pesde.git
synced 2025-05-04 10:33:47 +01:00
fix(website): use provided fetch instead of global
This commit is contained in:
parent
974d140da6
commit
75dc6aa115
2 changed files with 2 additions and 2 deletions
|
@ -29,7 +29,7 @@ const fetchPackage = async (fetcher: typeof fetch, options: FetchPackageOptions)
|
|||
}
|
||||
}
|
||||
|
||||
export const load: LayoutLoad = async ({ params }) => {
|
||||
export const load: LayoutLoad = async ({ params, fetch }) => {
|
||||
const { scope, name, version, target } = params
|
||||
|
||||
if (version !== undefined && target === undefined) {
|
||||
|
|
|
@ -37,7 +37,7 @@ const fetchReadme = async (
|
|||
}
|
||||
}
|
||||
|
||||
export const load: PageLoad = async ({ parent }) => {
|
||||
export const load: PageLoad = async ({ parent, fetch }) => {
|
||||
const { pkg } = await parent()
|
||||
const { name, version, targets } = pkg
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue