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:
parent
344ec56da0
commit
dd6fab86ee
13 changed files with 1489 additions and 1837 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue