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.0

3

index.js

@@ -109,3 +109,4 @@ "use strict";

reject(err);
resolve();
else
resolve();
}); }); }; };

@@ -112,0 +113,0 @@ /**

@@ -59,3 +59,3 @@ import {NextFunction, Request, RequestHandler, Response} from 'express'

if (err) reject(err)
resolve()
else resolve()
})

@@ -62,0 +62,0 @@ )

{
"name": "middleware-async",
"version": "1.0.3",
"version": "1.1.0",
"description": "A handy tool to work with async/promise express middleware",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -26,3 +26,3 @@ /* eslint-disable import/no-extraneous-dependencies */

},
]))(req as Request, undefined as unknown as Response, undefined as unknown as NextFunction)
]))(req as Request, undefined as unknown as Response)
expect(req.val).toBe(4)

@@ -43,3 +43,3 @@ })

},
]))(req as Request, undefined as unknown as Response, undefined as unknown as NextFunction)
]))(req as Request, undefined as unknown as Response)
)

@@ -62,5 +62,5 @@ ).toBe('error')

},
]))(req as Request, undefined as unknown as Response, undefined as unknown as NextFunction)
]))(req as Request, undefined as unknown as Response)
expect(req.val).toBe(5)
})
})

@@ -20,5 +20,5 @@ import {combineToAsync} from '../index'

next()
})(req as Request, undefined as unknown as Response, undefined as unknown as NextFunction)
})(req as Request, undefined as unknown as Response)
expect(req.val).toBe(4)
})
})

@@ -11,3 +11,2 @@ /* eslint-disable import/no-extraneous-dependencies */

undefined as unknown as Response,
undefined as unknown as NextFunction
)

@@ -25,3 +24,2 @@ })

undefined as unknown as Response,
undefined as unknown as NextFunction
)

@@ -28,0 +26,0 @@ )).toBe('error')