Howard86 / next-api-handler

lightweight nextjs api handler wrapper, portable & configurable for serverless environment
https://next-api-handler.vercel.app
Other
49 stars 1 forks source link

61 adding a middleware without returning value will throw errors #62

Closed Howard86 closed 1 year ago

Howard86 commented 1 year ago

Bug fix

61

added middleware value check

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
next-api-handler ✅ Ready (Inspect) Visit Preview Dec 6, 2022 at 2:36PM (UTC)
cypress[bot] commented 1 year ago



Test summary

11 0 0 0


Run details

Project next-api-handler
Status Passed
Commit 71a1b5e0bb
Started Dec 6, 2022 2:37 PM
Ended Dec 6, 2022 2:37 PM
Duration 00:12 💡
OS Linux Debian - 11.4
Browser Electron 102

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

codecov[bot] commented 1 year ago

Codecov Report

Merging #62 (71a1b5e) into main (cd190b7) will not change coverage. The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main       #62   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            6         6           
  Lines          148       153    +5     
  Branches        21        23    +2     
=========================================
+ Hits           148       153    +5     
Impacted Files Coverage Δ
src/lib/express-like-router.ts 100.00% <100.00%> (ø)
src/lib/router-builder.ts 100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

codeclimate[bot] commented 1 year ago

Code Climate has analyzed commit 71a1b5e0 and detected 1 issue on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 1

View more on Code Climate.