Comparing version 2.0.5 to 2.0.6
@@ -6,3 +6,3 @@ interface Error { | ||
} | ||
export declare const isError: (error: any) => error is Error; | ||
export declare const isError: (object: any) => object is Error; | ||
/** | ||
@@ -9,0 +9,0 @@ * |
@@ -18,3 +18,6 @@ "use strict"; | ||
exports.httpError = exports.isError = void 0; | ||
const isError = (error) => typeof error === 'object' && typeof error.name === 'string' && typeof error.status === 'number'; | ||
const isError = (object) => typeof object === 'object' && | ||
typeof object.error === 'object' && | ||
typeof object.error.name === 'string' && | ||
typeof object.error.status === 'number'; | ||
exports.isError = isError; | ||
@@ -21,0 +24,0 @@ /** |
{ | ||
"name": "bridge", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"description": "Bridge is a new way of developing your api's", | ||
@@ -5,0 +5,0 @@ "author": "El Ouahabi Nabil", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
99115
1073