@sm1/http-error-manager
Advanced tools
@@ -6,2 +6,3 @@ import { IHttpErrorConfig, IHttpErrorModal } from "./http-error-config.interface"; | ||
| getModal(inputUrl: string, inputErrorCode: string): IHttpErrorModal; | ||
| get genericError(): IHttpErrorModal; | ||
| } |
@@ -25,6 +25,9 @@ "use strict"; | ||
| catch (e) { | ||
| return this.config.genericError; | ||
| return this.genericError; | ||
| } | ||
| } | ||
| get genericError() { | ||
| return this.config.genericError; | ||
| } | ||
| } | ||
| exports.HttpErrorProcessor = HttpErrorProcessor; |
@@ -6,2 +6,3 @@ import { IHttpErrorConfig, IHttpErrorModal } from "./http-error-config.interface"; | ||
| getModal(inputUrl: string, inputErrorCode: string): IHttpErrorModal; | ||
| get genericError(): IHttpErrorModal; | ||
| } |
@@ -22,5 +22,8 @@ export class HttpErrorProcessor { | ||
| catch (e) { | ||
| return this.config.genericError; | ||
| return this.genericError; | ||
| } | ||
| } | ||
| get genericError() { | ||
| return this.config.genericError; | ||
| } | ||
| } |
+3
-2
| { | ||
| "name": "@sm1/http-error-manager", | ||
| "version": "1.1.3", | ||
| "version": "1.1.4", | ||
| "description": "", | ||
@@ -15,3 +15,4 @@ "main": "./lib/cjs/index.js", | ||
| "tsc": "tsc -p tsconfig.json && tsc -p tsconfig-cjs.json", | ||
| "prepublish": "npm run tsc" | ||
| "prepublish": "npm run tsc", | ||
| "publish": "npm run tsc && np" | ||
| }, | ||
@@ -18,0 +19,0 @@ "repository": { |
5313
5.08%120
7.14%