NPM Update / fix
This commit is contained in:
2
node_modules/@fastify/busboy/lib/types/multipart.js
generated
vendored
2
node_modules/@fastify/busboy/lib/types/multipart.js
generated
vendored
@ -163,7 +163,7 @@ function Multipart (boy, cfg) {
|
||||
|
||||
++nfiles
|
||||
|
||||
if (!boy._events.file) {
|
||||
if (boy.listenerCount('file') === 0) {
|
||||
self.parser._ignore()
|
||||
return
|
||||
}
|
||||
|
2
node_modules/@fastify/busboy/lib/utils/decodeText.js
generated
vendored
2
node_modules/@fastify/busboy/lib/utils/decodeText.js
generated
vendored
@ -96,7 +96,7 @@ const decoders = {
|
||||
if (textDecoders.has(this.toString())) {
|
||||
try {
|
||||
return textDecoders.get(this).decode(data)
|
||||
} catch (e) { }
|
||||
} catch {}
|
||||
}
|
||||
return typeof data === 'string'
|
||||
? data
|
||||
|
Reference in New Issue
Block a user