You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

middleware-async

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

middleware-async - npm Package Compare versions

Comparing version

to
1.1.4

4

package.json
{
"name": "middleware-async",
"version": "1.1.3",
"version": "1.1.4",
"description": "A handy tool to work with async/promise express middleware",
"main": "index.js",
"repository": "git@github.com:tranvansang/middleware-async.git",
"repository": "github:tranvansang/middleware-async",
"author": "Tran Sang <tranvansangk41@gmail.com>",

@@ -8,0 +8,0 @@ "license": "MIT",

@@ -71,3 +71,3 @@ # Async Middleware [![Build Status](https://travis-ci.org/tranvansang/middleware-async.svg?branch=master)](https://travis-ci.org/tranvansang/middleware-async)

- `middlewaareAsync(middlware)`: returns a handler that covers error thrown or error that is rejected by handler via the `next` function. The next function is called at most once.
- `asyncMiddleware(middlware)`: returns a handler that covers error thrown or error that is rejected by handler via the `next` function. The next function is called at most once.
- `combineMiddlewares(list of handlers or list of list of handlers with any depth)`: combine many handlers into one handler. Very useful for testing

@@ -74,0 +74,0 @@ You can combine your handlers like `combineMiddlewares([mdw1, mdw2], [[mdw3], [mdw4, [mdw5, mdw6]], mdw7], mdw8)`. The function will take care of expanding parameters.