@tsed/platform-middlewares 7.45.0 → 7.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,8 +8,9 @@ const di_1 = require("@tsed/di");
8
8
  * @decorator
9
9
  * @classDecorator
10
10
  */
11
- function Middleware() {
11
+ function Middleware(opts) {
12
12
  return (0, di_1.Injectable)({
13
+ ...opts,
13
14
  type: di_1.ProviderType.MIDDLEWARE
14
15
  });
15
16
  }
@@ -1 +1 @@
1
- {"version":3,"file":"middleware.js","sourceRoot":"","sources":["../../../src/decorators/middleware.ts"],"names":[],"mappings":";;;AAAA,iCAAkD;AAElD;;;;;GAKG;AACH,SAAgB,UAAU;IACxB,OAAO,IAAA,eAAU,EAAC;QAChB,IAAI,EAAE,iBAAY,CAAC,UAAU;KAC9B,CAAC,CAAC;AACL,CAAC;AAJD,gCAIC"}
1
+ {"version":3,"file":"middleware.js","sourceRoot":"","sources":["../../../src/decorators/middleware.ts"],"names":[],"mappings":";;;AAAA,iCAAgE;AAEhE;;;;;GAKG;AACH,SAAgB,UAAU,CAAC,IAA0C;IACnE,OAAO,IAAA,eAAU,EAAC;QAChB,GAAG,IAAI;QACP,IAAI,EAAE,iBAAY,CAAC,UAAU;KAC9B,CAAC,CAAC;AACL,CAAC;AALD,gCAKC"}
@@ -5,8 +5,9 @@ import { Injectable, ProviderType } from "@tsed/di";
5
5
  * @decorator
6
6
  * @classDecorator
7
7
  */
8
- export function Middleware() {
8
+ export function Middleware(opts) {
9
9
  return Injectable({
10
+ ...opts,
10
11
  type: ProviderType.MIDDLEWARE
11
12
  });
12
13
  }
@@ -1 +1 @@
1
- {"version":3,"file":"middleware.js","sourceRoot":"","sources":["../../../src/decorators/middleware.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,YAAY,EAAC,MAAM,UAAU,CAAC;AAElD;;;;;GAKG;AACH,MAAM,UAAU,UAAU;IACxB,OAAO,UAAU,CAAC;QAChB,IAAI,EAAE,YAAY,CAAC,UAAU;KAC9B,CAAC,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"middleware.js","sourceRoot":"","sources":["../../../src/decorators/middleware.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAgB,YAAY,EAAC,MAAM,UAAU,CAAC;AAEhE;;;;;GAKG;AACH,MAAM,UAAU,UAAU,CAAC,IAA0C;IACnE,OAAO,UAAU,CAAC;QAChB,GAAG,IAAI;QACP,IAAI,EAAE,YAAY,CAAC,UAAU;KAC9B,CAAC,CAAC;AACL,CAAC"}