@heliosjs/middlewares 9.0.5 → 9.0.7

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/README.md ADDED
@@ -0,0 +1,23 @@
1
+ # HeliosJS
2
+
3
+ 🎯 A modern decorator-based Node.js framework for building scalable applications.
4
+
5
+ ## Documentation
6
+
7
+ 👉 **[Full Documentation](https://naumovoleg.github.io/helios/)**
8
+
9
+ ## Packages
10
+
11
+ | Package | Version | Description |
12
+ | ------------------------------------------------------------------------------------------- | ------- | ----------------------- |
13
+ | [@heliosjs/core](https://github.com/NaumovOleg/heliosjs/tree/master/src/core) | | Core decorators and DI |
14
+ | [@heliosjs/http](https://github.com/NaumovOleg/heliosjs/tree/master/src/http) | | HTTP server and routing |
15
+ | [@heliosjs/middlewares](https://github.com/NaumovOleg/heliosjs/tree/master/src/middlewares) | | Built-in middlewares |
16
+ | [@heliosjs/aws](https://github.com/NaumovOleg/heliosjs/tree/master/src/aws) | | Aws support |
17
+ | [@heliosjs/grpc](https://github.com/NaumovOleg/heliosjs/tree/master/src/grpc) | | Grpc support |
18
+
19
+ ## Quick Start
20
+
21
+ ```bash
22
+ npm install @heliosjs/core @heliosjs/http reflect-metadata
23
+ ```
package/dist/use.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { MiddlewareCB } from '@heliosjs/core/types';
1
+ import type { MiddlewareCB } from '@heliosjs/core/types';
2
2
  /**
3
3
  * Decorator to register middleware(s) at the controller or method level.
4
4
  *
package/dist/use.js CHANGED
@@ -49,7 +49,7 @@ const utils_1 = require("@heliosjs/core/utils");
49
49
  function Use(middleware) {
50
50
  return function (target, propertyKey, descriptor) {
51
51
  const middlewares = Array.isArray(middleware) ? middleware : [middleware];
52
- const data = middlewares.map(middleware => ({ middleware }));
52
+ const data = middlewares.map((middleware) => ({ middleware }));
53
53
  if (propertyKey) {
54
54
  (0, utils_1.defineMiddlewaresMeta)(data, target, propertyKey);
55
55
  }
package/dist/use.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"use.js","sourceRoot":"","sources":["../src/use.ts"],"names":[],"mappings":";;AA+CA,kBAcC;AA5DD,gDAA6D;AAE7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,SAAgB,GAAG,CAAC,UAAyC;IAC3D,OAAO,UAAU,MAAW,EAAE,WAAoB,EAAE,UAA+B;QACjF,MAAM,WAAW,GAAG,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC;QAE1E,MAAM,IAAI,GAAG,WAAW,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC;QAE7D,IAAI,WAAW,EAAE,CAAC;YAChB,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;QAED,OAAO,MAAM,CAAC;IAChB,CAAC,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"use.js","sourceRoot":"","sources":["../src/use.ts"],"names":[],"mappings":";;AA+CA,kBAcC;AA5DD,gDAA6D;AAE7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,SAAgB,GAAG,CAAC,UAAyC;IAC3D,OAAO,UAAU,MAAW,EAAE,WAAoB,EAAE,UAA+B;QACjF,MAAM,WAAW,GAAG,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC;QAE1E,MAAM,IAAI,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC;QAE/D,IAAI,WAAW,EAAE,CAAC;YAChB,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;QAED,OAAO,MAAM,CAAC;IAChB,CAAC,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heliosjs/middlewares",
3
- "version": "9.0.5",
3
+ "version": "9.0.7",
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.6",
32
+ "@heliosjs/core": "^3.1.8",
33
33
  "typescript": ">=4.0.0",
34
34
  "reflect-metadata": "^0.2.2",
35
35
  "@types/node": "^25.5.0"