chore(deps): update dependency nuxt to ^3.13.1 (#2946)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
This commit is contained in:
renovate[bot] 2024-09-11 15:37:59 +01:00 committed by GitHub
parent 344ec56da0
commit dd6fab86ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 1489 additions and 1837 deletions

View file

@ -1,4 +1,4 @@
import { Buffer } from 'node:buffer'
import { writeFile } from 'node:fs/promises'
import { join, resolve } from 'pathe'
import fs from 'fs-extra'
import { ofetch } from 'ofetch'
@ -12,7 +12,7 @@ async function download(url: string, fileName: string) {
console.log('downloading', fileName)
try {
const image = await ofetch(url, { responseType: 'arrayBuffer' })
await fs.writeFile(fileName, Buffer.from(image))
await writeFile(fileName, new Uint8Array(image))
}
catch (err) {
console.error(err)