@tsed/platform-middlewares 8.33.0 → 8.35.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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DecoratorTypes, Store, UnsupportedDecoratorType, decorateMethodsOf, decoratorTypeOf } from "@tsed/core";
|
|
2
2
|
import { JsonEntityFn } from "@tsed/schema";
|
|
3
3
|
/**
|
|
4
4
|
* Change authentication options.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DecoratorTypes, StoreFn, UnsupportedDecoratorType, decorateMethodsOf, decoratorTypeOf, useDecorators } from "@tsed/core";
|
|
2
2
|
import { AuthOptions } from "./authOptions.js";
|
|
3
3
|
import { UseBefore } from "./useBefore.js";
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DecoratorTypes,
|
|
1
|
+
import { DecoratorTypes, UnsupportedDecoratorType, isClass } from "@tsed/core";
|
|
2
2
|
import { JsonEntityFn } from "@tsed/schema";
|
|
3
3
|
const useOnce = (list = [], middlewares = []) => {
|
|
4
4
|
return middlewares
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DecoratorTypes, UnsupportedDecoratorType, decorateMethodsOf, decoratorTypeOf } from "@tsed/core";
|
|
2
2
|
import { UseBefore } from "./useBefore.js";
|
|
3
3
|
/**
|
|
4
4
|
* Mounts the specified middleware function or functions at the specified path: the middleware function is executed when
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { constant } from "@tsed/di";
|
|
2
1
|
import { $on } from "@tsed/hooks";
|
|
2
|
+
import { constant } from "@tsed/di";
|
|
3
3
|
export function alterMiddlewaresForHook(middlewares, hook) {
|
|
4
4
|
const env = constant("env");
|
|
5
5
|
return middlewares.filter((options) => options.use && (!options.env || options.env === env) && options.hook === hook);
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/platform-middlewares",
|
|
3
|
+
"version": "8.35.0",
|
|
3
4
|
"description": "Middlewares module for Ts.ED Framework",
|
|
4
|
-
"type": "module",
|
|
5
|
-
"version": "8.33.0",
|
|
6
5
|
"source": "./src/index.ts",
|
|
6
|
+
"type": "module",
|
|
7
7
|
"main": "./lib/esm/index.js",
|
|
8
8
|
"module": "./lib/esm/index.js",
|
|
9
9
|
"typings": "./lib/types/index.d.ts",
|
|
@@ -26,13 +26,12 @@
|
|
|
26
26
|
"tslib": ">=2.7.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@tsed/barrels": "8.
|
|
30
|
-
"@tsed/core": "8.
|
|
31
|
-
"@tsed/di": "8.
|
|
32
|
-
"@tsed/platform-router": "8.
|
|
33
|
-
"@tsed/schema": "8.
|
|
34
|
-
"@tsed/typescript": "8.
|
|
35
|
-
"eslint": "9.12.0",
|
|
29
|
+
"@tsed/barrels": "8.35.0",
|
|
30
|
+
"@tsed/core": "8.35.0",
|
|
31
|
+
"@tsed/di": "8.35.0",
|
|
32
|
+
"@tsed/platform-router": "8.35.0",
|
|
33
|
+
"@tsed/schema": "8.35.0",
|
|
34
|
+
"@tsed/typescript": "8.35.0",
|
|
36
35
|
"typescript": "6.0.2",
|
|
37
36
|
"vitest": "4.1.4"
|
|
38
37
|
},
|