@jmlq/auth 0.0.1-alpha.31 → 0.0.1-alpha.32

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/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { optionalAudience } from "./domain/services/helpers";
1
+ export { optionalAudience, assertJwtStructure, } from "./domain/services/helpers";
2
2
  export type { IAuthServiceContainer } from "./infrastructure/types";
3
3
  export { AuthServiceFactoryOptions } from "./application/types";
4
4
  /**
@@ -12,7 +12,7 @@ export { normalizeJwtPayload } from "./domain/services";
12
12
  * Aunque ya se exporta vía `export * from "./domain/errors"`,
13
13
  * se expone de forma directa para que el host/plugins lo consuman sin ambigüedad.
14
14
  */
15
- export { InvalidJwtPayloadError } from "./domain/errors";
15
+ export { InvalidJwtPayloadError, InvalidJwtEmptyError, InvalidJwtMalformedError, } from "./domain/errors";
16
16
  export * from "./domain/ports";
17
17
  export * from "./domain/entities";
18
18
  export { readNonEmptyString } from "./domain/services/helpers";
package/dist/index.js CHANGED
@@ -14,9 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.readNonEmptyString = exports.InvalidJwtPayloadError = exports.normalizeJwtPayload = exports.optionalAudience = void 0;
17
+ exports.readNonEmptyString = exports.InvalidJwtMalformedError = exports.InvalidJwtEmptyError = exports.InvalidJwtPayloadError = exports.normalizeJwtPayload = exports.assertJwtStructure = exports.optionalAudience = void 0;
18
18
  var helpers_1 = require("./domain/services/helpers");
19
19
  Object.defineProperty(exports, "optionalAudience", { enumerable: true, get: function () { return helpers_1.optionalAudience; } });
20
+ Object.defineProperty(exports, "assertJwtStructure", { enumerable: true, get: function () { return helpers_1.assertJwtStructure; } });
20
21
  /**
21
22
  * Contrato público (JWT payload):
22
23
  * - Los plugins devuelven payload verificado criptográficamente como unknown.
@@ -31,6 +32,8 @@ Object.defineProperty(exports, "normalizeJwtPayload", { enumerable: true, get: f
31
32
  */
32
33
  var errors_1 = require("./domain/errors");
33
34
  Object.defineProperty(exports, "InvalidJwtPayloadError", { enumerable: true, get: function () { return errors_1.InvalidJwtPayloadError; } });
35
+ Object.defineProperty(exports, "InvalidJwtEmptyError", { enumerable: true, get: function () { return errors_1.InvalidJwtEmptyError; } });
36
+ Object.defineProperty(exports, "InvalidJwtMalformedError", { enumerable: true, get: function () { return errors_1.InvalidJwtMalformedError; } });
34
37
  // Contratos (ports) + config
35
38
  __exportStar(require("./domain/ports"), exports);
36
39
  // Entities
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.31",
4
+ "version": "0.0.1-alpha.32",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "scripts": {