@vercube/auth 0.0.21 → 0.0.23

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 CHANGED
@@ -3,10 +3,10 @@
3
3
  <br>
4
4
  <br>
5
5
 
6
- # Vercube
7
-
8
- Next generation HTTP framework
9
-
6
+ # Vercube
7
+
8
+ Next generation HTTP framework
9
+
10
10
  <a href="https://www.npmjs.com/package/@vercube/auth">
11
11
  <img src="https://img.shields.io/npm/v/%40vercube%2Fauth?style=for-the-badge&logo=npm&color=%23767eff" alt="npm"/>
12
12
  </a>
@@ -16,6 +16,9 @@
16
16
  <a href="https://github.com/vercube/vercube/blob/main/LICENSE" target="_blank">
17
17
  <img src="https://img.shields.io/npm/l/%40vercube%2Fauth?style=for-the-badge&color=%23767eff" alt="License"/>
18
18
  </a>
19
+ <a href="https://codecov.io/gh/vercube/vercube" target="_blank">
20
+ <img src="https://img.shields.io/codecov/c/github/vercube/vercube?style=for-the-badge&color=%23767eff" alt="Coverage"/>
21
+ </a>
19
22
  <br/>
20
23
  <br/>
21
24
  </div>
@@ -23,7 +26,9 @@
23
26
  An ultra-efficient JavaScript server framework that runs anywhere - Node.js, Bun, or Deno - with unmatched flexibility and complete configurability for developers who refuse to sacrifice speed or control.
24
27
 
25
28
  ## <a name="module">Auth module</a>
29
+
26
30
  The Auth module provides a flexible and extensible authentication and authorization system for Vercube applications. It offers a unified interface for different authentication implementations through a dependency injection-based architecture.
27
31
 
28
32
  ## <a name="documentation">📖 Documentation</a>
29
- Comprehensive documentation is available at [vercube.dev](https://vercube.dev). There you'll find detailed module descriptions, project information, guides, and everything else you need to know about Vercube.
33
+
34
+ Comprehensive documentation is available at [vercube.dev](https://vercube.dev). There you'll find detailed module descriptions, project information, guides, and everything else you need to know about Vercube.
package/dist/index.mjs CHANGED
@@ -33,8 +33,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
33
33
  var AuthProvider = class {};
34
34
 
35
35
  //#endregion
36
- //#region ../../node_modules/.pnpm/@oxc-project+runtime@0.77.3/node_modules/@oxc-project/runtime/src/helpers/decorate.js
37
- var require_decorate = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.77.3/node_modules/@oxc-project/runtime/src/helpers/decorate.js"(exports, module) {
36
+ //#region ../../node_modules/.pnpm/@oxc-project+runtime@0.82.3/node_modules/@oxc-project/runtime/src/helpers/decorate.js
37
+ var require_decorate = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.82.3/node_modules/@oxc-project/runtime/src/helpers/decorate.js": ((exports, module) => {
38
38
  function __decorate(decorators, target, key, desc) {
39
39
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
40
40
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -42,11 +42,11 @@ var require_decorate = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runti
42
42
  return c > 3 && r && Object.defineProperty(target, key, r), r;
43
43
  }
44
44
  module.exports = __decorate, module.exports.__esModule = true, module.exports["default"] = module.exports;
45
- } });
45
+ }) });
46
46
 
47
47
  //#endregion
48
48
  //#region src/Middleware/AuthMiddleware.ts
49
- var import_decorate$1 = __toESM(require_decorate());
49
+ var import_decorate$1 = /* @__PURE__ */ __toESM(require_decorate());
50
50
  /**
51
51
  * Middleware for auth
52
52
  * @implements {BaseMiddleware}
@@ -104,11 +104,11 @@ function Auth(options) {
104
104
 
105
105
  //#endregion
106
106
  //#region src/Decorators/User.ts
107
- var import_decorate = __toESM(require_decorate());
107
+ var import_decorate = /* @__PURE__ */ __toESM(require_decorate());
108
108
  /**
109
109
  * Decorator class for injecting the current user into controller methods
110
110
  * Extends BaseDecorator to provide user injection functionality
111
- *
111
+ *
112
112
  * @class UserDecorator
113
113
  * @extends {BaseDecorator<UserDecoratorOptions>}
114
114
  */
@@ -136,16 +136,16 @@ var UserDecorator = class extends BaseDecorator {
136
136
  (0, import_decorate.default)([Inject(Container)], UserDecorator.prototype, "gContainer", void 0);
137
137
  /**
138
138
  * Creates a decorator that injects the current user into controller methods
139
- *
139
+ *
140
140
  * @param {UserDecoratorOptions} [params] - Optional configuration for the decorator
141
141
  * @returns {Function} A decorator function that can be applied to controller method parameters
142
- *
142
+ *
143
143
  * @example
144
144
  * // Basic usage
145
145
  * async someMethod(@User() user: User) {
146
146
  * // user is automatically injected
147
147
  * }
148
- *
148
+ *
149
149
  * @example
150
150
  * // With custom provider
151
151
  * async someMethod(@User() user: User) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercube/auth",
3
- "version": "0.0.21",
3
+ "version": "0.0.23",
4
4
  "description": "Auth module for Vercube framework",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,9 +22,9 @@
22
22
  "README.md"
23
23
  ],
24
24
  "dependencies": {
25
- "@vercube/core": "0.0.21",
26
- "@vercube/di": "0.0.21",
27
- "@vercube/logger": "0.0.21"
25
+ "@vercube/core": "0.0.23",
26
+ "@vercube/logger": "0.0.23",
27
+ "@vercube/di": "0.0.23"
28
28
  },
29
29
  "publishConfig": {
30
30
  "access": "public"