Fix preflight middleware ordering and bump version
This commit is contained in:
parent
1288e51de0
commit
6ee3e2a729
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@extollo/lib",
|
||||
"version": "0.9.1",
|
||||
"version": "0.9.2",
|
||||
"description": "The framework library that lifts up your code.",
|
||||
"main": "lib/index.js",
|
||||
"types": "lib/index.d.ts",
|
||||
|
@ -362,7 +362,7 @@ export class Route<TReturn extends ResponseObject, THandlerParams extends unknow
|
||||
}
|
||||
|
||||
public pre(middleware: Instantiable<Middleware>): this {
|
||||
this.preflight.push(request => request.make<Middleware>(middleware, request).apply())
|
||||
this.preflight.prepend(request => request.make<Middleware>(middleware, request).apply())
|
||||
this.displays.push({
|
||||
stage: 'pre',
|
||||
display: `${middleware.name}`,
|
||||
|
Loading…
Reference in New Issue
Block a user