@munlib/common 1.0.197 → 1.0.199

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.
@@ -557,7 +557,7 @@ var ErrorController = /** @class */ (function () {
557
557
  return exports.httpStatusCodes[apiStatusCode];
558
558
  };
559
559
  ErrorController.gethttpStatusCodesTypes = function (apiStatusCode) {
560
- return exports.statusCodeMapping[apiStatusCode] || instituciones_pagos_1.ErrorCategories.MIDDLEWARE;
560
+ return exports.httpStatusCodesTypes[apiStatusCode] || instituciones_pagos_1.ErrorCategories.MIDDLEWARE;
561
561
  };
562
562
  return ErrorController;
563
563
  }());
@@ -16,12 +16,13 @@ var __extends = (this && this.__extends) || (function () {
16
16
  })();
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.NotFoundError = void 0;
19
+ var instituciones_pagos_1 = require("../events/types/instituciones-pagos");
19
20
  var custom_error_1 = require("./custom-error");
20
21
  var erroresStatus_1 = require("./erroresStatus");
21
22
  var NotFoundError = /** @class */ (function (_super) {
22
23
  __extends(NotFoundError, _super);
23
24
  function NotFoundError() {
24
- var _this = _super.call(this, 'Route not found', "", "") || this;
25
+ var _this = _super.call(this, 'Route not found', instituciones_pagos_1.ErrorCategories.MIDDLEWARE, erroresStatus_1.ErrorController.getErrorMessage(instituciones_pagos_1.ErrorCategories.MIDDLEWARE)) || this;
25
26
  _this.statusCode = 404;
26
27
  _this.typeMsg = _this.typeMsg;
27
28
  _this.userMsg = _this.userMsg;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@munlib/common",
3
- "version": "1.0.197",
3
+ "version": "1.0.199",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",