@heliosjs/middlewares 9.0.1 → 9.0.4
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.
- package/dist/guard.d.ts +2 -2
- package/dist/guard.js.map +1 -1
- package/package.json +2 -2
package/dist/guard.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type GuardClass, GuardFunction } from '@heliosjs/core/types';
|
|
1
|
+
import { type GuardClass, GuardFunction, GuardInstance } from '@heliosjs/core/types';
|
|
2
2
|
/**
|
|
3
3
|
* Decorator to register a guard.
|
|
4
4
|
*
|
|
@@ -41,4 +41,4 @@ import { type GuardClass, GuardFunction } from '@heliosjs/core/types';
|
|
|
41
41
|
* Metadata is stored under the CONTROLLER_CONFIGURATION key and used
|
|
42
42
|
* internally by the framework during request processing.
|
|
43
43
|
*/
|
|
44
|
-
export declare function Guard(guard: GuardClass | GuardFunction): (target: any, propertyKey?: string, descriptor?: PropertyDescriptor) => void;
|
|
44
|
+
export declare function Guard(guard: GuardClass | GuardFunction | GuardInstance): (target: any, propertyKey?: string, descriptor?: PropertyDescriptor) => void;
|
package/dist/guard.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"guard.js","sourceRoot":"","sources":["../src/guard.ts"],"names":[],"mappings":";;AA4CA,sBAUC;AArDD,gDAA6D;AAC7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,SAAgB,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"guard.js","sourceRoot":"","sources":["../src/guard.ts"],"names":[],"mappings":";;AA4CA,sBAUC;AArDD,gDAA6D;AAC7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,SAAgB,KAAK,CAAC,KAAiD;IACrE,OAAO,UAAU,MAAW,EAAE,WAAoB,EAAE,UAA+B;QACjF,MAAM,IAAI,GAAG,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;QAEhC,IAAI,UAAU,EAAE,CAAC;YACf,IAAA,6BAAqB,EAAC,IAAI,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC;QACnD,CAAC;aAAM,CAAC;YACN,IAAA,6BAAqB,EAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACtC,CAAC;IACH,CAAC,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@heliosjs/middlewares",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.4",
|
|
4
4
|
"description": "Middlewares for @heliosjs",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"reflect-metadata": "^0.2.2"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@heliosjs/core": "^3.1.
|
|
32
|
+
"@heliosjs/core": "^3.1.4",
|
|
33
33
|
"typescript": ">=4.0.0",
|
|
34
34
|
"reflect-metadata": "^0.2.2",
|
|
35
35
|
"@types/node": "^25.5.0"
|