Fix scope() helper and bump version

This commit is contained in:
Garrett Mills 2022-04-28 12:00:13 -05:00
parent 9d8f43d8fb
commit ce4133ff8e
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@extollo/lib",
"version": "0.9.34",
"version": "0.9.35",
"description": "The framework library that lifts up your code.",
"main": "lib/index.js",
"types": "lib/index.d.ts",

View File

@ -8,7 +8,7 @@ import {Constructable, Container} from '../../di'
export class ScopeRequiredMiddleware extends Middleware {
constructor(
request: Request,
protected readonly request: Request,
protected readonly scope: string,
) {
super(request)
@ -28,6 +28,6 @@ export class ScopeRequiredMiddleware extends Middleware {
export const scope = (name: string): Constructable<ScopeRequiredMiddleware> => {
return new Pipeline<Container, ScopeRequiredMiddleware>(
container => container.make(ScopeRequiredMiddleware, name),
container => container.make(ScopeRequiredMiddleware, container, name),
)
}