@zodash/error
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -6,2 +6,10 @@ # Change Log | ||
## [0.1.5](https://github.com/zcorky/zodash/compare/@zodash/error@0.1.4...@zodash/error@0.1.5) (2021-03-23) | ||
**Note:** Version bump only for package @zodash/error | ||
## [0.1.4](https://github.com/zcorky/zodash/compare/@zodash/error@0.1.3...@zodash/error@0.1.4) (2020-12-16) | ||
@@ -8,0 +16,0 @@ |
import Error from './core'; | ||
import HttpError from './providers/http'; | ||
import ApiError from './providers/api'; | ||
export { Error, HttpError, ApiError, }; | ||
export { Error, HttpError, ApiError }; | ||
export default Error; |
@@ -21,3 +21,3 @@ "use strict"; | ||
const message = (_a = options === null || options === void 0 ? void 0 : options.message) !== null && _a !== void 0 ? _a : 'Unknown Error'; | ||
this.status = isCodeMessage ? 200 : (status || 500); | ||
this.status = isCodeMessage ? 200 : status || 500; | ||
this.code = options.code || this.status; | ||
@@ -24,0 +24,0 @@ this.message = message; |
@@ -10,3 +10,3 @@ "use strict"; | ||
super(); | ||
const message = isMessage ? options : ((_a = options === null || options === void 0 ? void 0 : options.message) !== null && _a !== void 0 ? _a : 'unknown'); | ||
const message = isMessage ? options : (_a = options === null || options === void 0 ? void 0 : options.message) !== null && _a !== void 0 ? _a : 'unknown'; | ||
this.status = status || 500; | ||
@@ -13,0 +13,0 @@ this.message = message; |
{ | ||
"name": "@zodash/error", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "simple common error", | ||
@@ -68,5 +68,5 @@ "keywords": [ | ||
"dependencies": { | ||
"@zodash/pick": "^1.1.3" | ||
"@zodash/pick": "^1.1.4" | ||
}, | ||
"gitHead": "8adb9e89b832af9650dfe58f820ec85eb81c3de2" | ||
"gitHead": "36ae103b292f402d459b7c9eb6e63fe6ea93eb2b" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
10571
16
Updated@zodash/pick@^1.1.4