@munlib/common 1.0.136 → 1.0.138

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.
@@ -7,4 +7,5 @@ export declare const statusCodeMapping: {
7
7
  export declare class ErrorController {
8
8
  static getGeneralStatus(apiStatusCode: string): string;
9
9
  static getErrorMessage(apiStatusCode: string): string;
10
+ static getErrorCodes(apiStatusCode: string): string;
10
11
  }
@@ -245,11 +245,14 @@ var ErrorController = /** @class */ (function () {
245
245
  function ErrorController() {
246
246
  }
247
247
  ErrorController.getGeneralStatus = function (apiStatusCode) {
248
- return exports.statusCodeMapping[apiStatusCode] || "unknown";
248
+ return exports.statusCodeMapping[apiStatusCode] || "error";
249
249
  };
250
250
  ErrorController.getErrorMessage = function (apiStatusCode) {
251
251
  return exports.errorCodes[apiStatusCode] || "Error al procesar la solicitud";
252
252
  };
253
+ ErrorController.getErrorCodes = function (apiStatusCode) {
254
+ return exports.errorCodes[apiStatusCode];
255
+ };
253
256
  return ErrorController;
254
257
  }());
255
258
  exports.ErrorController = ErrorController;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@munlib/common",
3
- "version": "1.0.136",
3
+ "version": "1.0.138",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",