chore: upgrade deps

This commit is contained in:
Kevin 2023-03-20 23:11:04 +08:00
parent 55e0f040a3
commit 01d1a30413
No known key found for this signature in database
GPG key ID: 68D73816CD641CDB
5 changed files with 912 additions and 385 deletions

View file

@ -1,6 +1,6 @@
import { join, resolve } from 'pathe'
import fs from 'fs-extra'
import { $fetch } from 'ohmyfetch'
import { ofetch } from 'ofetch'
import { elkTeamMembers } from '../composables/about'
const avatarsDir = resolve('./public/avatars/')
@ -13,7 +13,7 @@ async function download(url: string, fileName: string) {
console.log('downloading', fileName)
try {
const image = await $fetch(url, { responseType: 'arrayBuffer' })
const image = await ofetch(url, { responseType: 'arrayBuffer' })
await fs.writeFile(fileName, Buffer.from(image))
}
catch (err) {