busboy
busboy copied to clipboard
fix: add 'limit' event to BusboyFileStream typings
Closes #173
This PR adds the limit event to the BusboyFileStream typings so that consumers can listen for file‐size limit breaches.
It also includes:
- A unit test (
test/file-stream-limit.test.js) that verifies thelimitevent is emitted. - Documentation in
README.mdshowing how to use the event. -
tapand@types/tapadded todevDependenciesto support the new test.
Checklist
- [x] run
npm run test - [ ] run
npm run benchmark - [x] tests and/or benchmarks are included
- [x] documentation is changed or added
- [x] commit message and code follow the Developer’s Certificate of Origin and the Code of Conduct
Why didn't the CI run?