compose-middleware icon indicating copy to clipboard operation
compose-middleware copied to clipboard

Compose an array of middleware into a single function for use in Express, Connect, router, etc

Results 14 compose-middleware issues
Sort by recently updated
recently updated
newest added

I am using Typescript v4.0.2 and I am getting a type error when trying to use third party middleware that uses the NextFunction type from @types/express. Culprit code: ```typescript //...

Fixes: #24 I found that the type conflict comes from the err parameter type. @types/express: `(err?: any): void` compose-middleware: `(err?: Error | null): void` This PR changes the Next err...

Hi @blakeembrey During the implementation, I noticed that Express app.use and app[METHOD] accepts variadic number of middlewares implementing internally the composition as @knksmith57 expected in #4 However having this implementation...

Hi @blakeembrey I find your package and it's just what I was looking for. I really like this package because it can helps to split my middlewares into little pieces...

This seems to work, but I'm not sure if I'm missing anything (like error handling): ```js const { compose } = require('compose-middleware') const { createServer } = require('http') const middleware...

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start)...

dependencies
javascript

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=handlebars&package-manager=npm_and_yarn&previous-version=4.5.1&new-version=4.7.8)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`....

dependencies
javascript

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=decode-uri-component&package-manager=npm_and_yarn&previous-version=0.2.0&new-version=0.2.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`....

dependencies
javascript

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=ws&package-manager=npm_and_yarn&previous-version=5.2.2&new-version=5.2.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`....

dependencies
javascript

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start)...

dependencies
javascript