fix: use npm install (#77)

This commit is contained in:
Luca Casonato
2024-09-13 18:57:49 +02:00
committed by GitHub
parent 084daf99a8
commit 90ced52839
771 changed files with 307 additions and 127 deletions

16
node_modules/@fastify/busboy/lib/utils/getLimit.js generated vendored Normal file
View File

@@ -0,0 +1,16 @@
'use strict'
module.exports = function getLimit (limits, name, defaultLimit) {
if (
!limits ||
limits[name] === undefined ||
limits[name] === null
) { return defaultLimit }
if (
typeof limits[name] !== 'number' ||
isNaN(limits[name])
) { throw new TypeError('Limit ' + name + ' is not a valid number') }
return limits[name]
}