@springworks/error-factory
Advanced tools
Comparing version 3005.14.3 to 3005.23.0
@@ -23,2 +23,5 @@ import { Output } from '@hapi/boom'; | ||
details?: ValidationDetail[]; | ||
toJSON: () => { | ||
[key: string]: any; | ||
}; | ||
} | ||
@@ -25,0 +28,0 @@ export interface CreateErrorParams { |
@@ -14,2 +14,3 @@ import { ClientError, ClientHttpStatusCode, createClientError, CreateClientErrorParams, ErrorResponse } from './client-error/client-error'; | ||
export declare function createError(params?: CreateErrorParams): FelError; | ||
export declare function isFelError(input: unknown): input is FelError; | ||
//# sourceMappingURL=main.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createError = exports.localized_client_error_response_schema = exports.client_error_response_schema = exports.createClientError = void 0; | ||
exports.isFelError = exports.createError = exports.localized_client_error_response_schema = exports.client_error_response_schema = exports.createClientError = void 0; | ||
const client_error_1 = require("./client-error/client-error"); | ||
@@ -23,1 +23,5 @@ Object.defineProperty(exports, "createClientError", { enumerable: true, get: function () { return client_error_1.createClientError; } }); | ||
exports.createError = createError; | ||
function isFelError(input) { | ||
return input instanceof Error && typeof input.toJSON === 'function'; | ||
} | ||
exports.isFelError = isFelError; |
@@ -6,2 +6,13 @@ # Change Log | ||
# [3005.23.0](https://github.com/Springworks/m2h-mono/compare/v3005.22.3...v3005.23.0) (2021-02-11) | ||
### Features | ||
* **error-factory:** function to check if unknown instance is FelError ([6ebc058](https://github.com/Springworks/m2h-mono/commit/6ebc0583a31a2da01f693e32239816b680f39397)) | ||
## [3005.14.3](https://github.com/Springworks/m2h-mono/compare/v3005.14.2...v3005.14.3) (2020-12-23) | ||
@@ -8,0 +19,0 @@ |
{ | ||
"name": "@springworks/error-factory", | ||
"version": "3005.14.3", | ||
"version": "3005.23.0", | ||
"description": "Custom error that makes use of HTTP error codes to identify different error types.", | ||
@@ -32,3 +32,3 @@ "main": "build/main.js", | ||
"homepage": "https://github.com/Springworks/m2h-mono/tree/master/packages/error-factory#readme", | ||
"gitHead": "f57b7b7a1714819794a145da80c3a674aeb42379" | ||
"gitHead": "6a4826f9e130e52b3dd0b6386e7529e1489804e2" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
41525
475