@vue-storefront/middleware
Advanced tools
Comparing version 5.3.0 to 5.3.1
@@ -1,6 +0,6 @@ | ||
import type { Integration } from "../types"; | ||
import type { ErrorHandler } from "../types"; | ||
/** | ||
* Default error handler for the middleware | ||
*/ | ||
export declare const defaultErrorHandler: Integration["errorHandler"]; | ||
export declare const defaultErrorHandler: ErrorHandler; | ||
//# sourceMappingURL=defaultErrorHandler.d.ts.map |
@@ -67,2 +67,3 @@ import type { Express, Request, Response } from "express"; | ||
} | ||
export type ErrorHandler = (error: unknown, req: AlokaiRequest, res: AlokaiResponse) => void; | ||
export interface Integration<CONFIG extends TObject = any, API extends ApiMethods = any, CONTEXT extends TObject = any> { | ||
@@ -111,3 +112,3 @@ location: string; | ||
*/ | ||
errorHandler?: (error: unknown, req: AlokaiRequest, res: AlokaiResponse) => void; | ||
errorHandler?: ErrorHandler; | ||
} | ||
@@ -114,0 +115,0 @@ export interface RequestParams { |
{ | ||
"name": "@vue-storefront/middleware", | ||
"version": "5.3.0", | ||
"version": "5.3.1", | ||
"main": "lib/index.cjs.js", | ||
@@ -5,0 +5,0 @@ "module": "lib/index.es.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
159094
3134