From 74456fcc7f6dac9b05fa12b6413a4c3350eeb4b5 Mon Sep 17 00:00:00 2001 From: Igor Savin Date: Sat, 4 Dec 2021 23:49:15 +0200 Subject: [PATCH] Replace unsupported busboy version with fastify fork --- lib/read-body.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/read-body.js b/lib/read-body.js index 6af6be6b..c7277504 100644 --- a/lib/read-body.js +++ b/lib/read-body.js @@ -2,7 +2,7 @@ import { extname } from 'node:path' import { pipeline as _pipeline } from 'node:stream' import { promisify } from 'node:util' -import Busboy from 'busboy' +import Busboy from '@fastify/busboy' import { createWriteStream } from 'fs-temp' import hasOwnProperty from 'has-own-property' import _onFinished from 'on-finished' diff --git a/package.json b/package.json index ede222b5..35dce7cd 100644 --- a/package.json +++ b/package.json @@ -21,8 +21,8 @@ "middleware" ], "dependencies": { + "@fastify/busboy": "^1.0.0", "append-field": "^2.0.0", - "busboy": "^0.3.1", "bytes": "^3.1.0", "fs-temp": "^2.0.1", "has-own-property": "^2.0.0",