response-standardizer 1.1.8 → 1.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -24,4 +24,4 @@ export declare const warn: (message: string, meta?: any) => void;
|
|
|
24
24
|
export declare const info: (message: string, meta?: any) => void;
|
|
25
25
|
export declare const log: (level: "INFO" | "WARN" | "ERROR", message: string, meta?: any) => void;
|
|
26
26
|
export declare const handleRestException: (req: Request, res: Response, err: Error) => void;
|
|
27
|
-
export declare const handleValidationException: (error:
|
|
27
|
+
export declare const handleValidationException: (error: any) => void;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -247,7 +247,7 @@ export const handleRestException = (req: Request, res: Response, err: Error) =>
|
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
|
|
250
|
-
export const handleValidationException = (error:
|
|
250
|
+
export const handleValidationException = (error: any) => {
|
|
251
251
|
if (error instanceof ZodError) {
|
|
252
252
|
const validationErrors: any = {};
|
|
253
253
|
error.issues.forEach((issue) => {
|