@jmlq/auth 0.0.1-alpha.4 → 0.0.1-alpha.6

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,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Id = void 0;
4
+ const node_crypto_1 = require("node:crypto");
4
5
  const errors_1 = require("../errors");
5
6
  class Id {
6
7
  constructor(id) {
@@ -19,10 +20,8 @@ class Id {
19
20
  return this.value;
20
21
  }
21
22
  static generate() {
22
- // Generar un ID único simple (en producción se podría usar uuid)
23
- const timestamp = Date.now();
24
- const random = Math.random().toString(36).substring(2);
25
- return new Id(`${timestamp}-${random}`);
23
+ // UUID
24
+ return new Id((0, node_crypto_1.randomUUID)());
26
25
  }
27
26
  }
28
27
  exports.Id = Id;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./application/factories";
2
2
  export * from "./domain/ports";
3
3
  export * from "./domain/entities";
4
+ export * from "./domain/object-values";
4
5
  export * from "./domain/props";
5
6
  export * from "./domain/errors";
6
7
  export * from "./application/dtos";
package/dist/index.js CHANGED
@@ -21,6 +21,8 @@ __exportStar(require("./application/factories"), exports);
21
21
  __exportStar(require("./domain/ports"), exports);
22
22
  // Entities
23
23
  __exportStar(require("./domain/entities"), exports);
24
+ // VOs
25
+ __exportStar(require("./domain/object-values"), exports);
24
26
  // Contratos (ports) + config
25
27
  __exportStar(require("./domain/props"), exports);
26
28
  // Errores públicos
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jmlq/auth",
3
3
  "description": "JWT authentication package with clean architecture",
4
- "version": "0.0.1-alpha.4",
4
+ "version": "0.0.1-alpha.6",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "scripts": {