rest-api-errors
Advanced tools
+6
-3
@@ -1,2 +0,2 @@ | ||
| class ApiError { | ||
| class APIError { | ||
| constructor(status, code, message) { | ||
@@ -64,3 +64,3 @@ this.status = status; | ||
| map[`${name}Error`] = map[name] = class extends ApiError { | ||
| map[`${name}Error`] = map[name] = class extends APIError { | ||
| constructor(code, message) { | ||
@@ -73,2 +73,5 @@ super(status, code, message); | ||
| module.exports = apiErrors; | ||
| module.exports = { | ||
| ...apiErrors, | ||
| APIError | ||
| }; |
+1
-1
| { | ||
| "name": "rest-api-errors", | ||
| "version": "1.2.3", | ||
| "version": "1.2.4", | ||
| "description": "Common errors that can be thrown to simplify promise based api implementations", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
5975
0.42%72
4.35%