🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@zakaa/common

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zakaa/common - npm Package Compare versions

Comparing version
1.0.9
to
1.1.0
+2
-1
build/middlewares/errorHandler.js

@@ -6,6 +6,7 @@ "use strict";

var ErrorHandler = function (err, req, res, next) {
var _a;
if (err instanceof customError_1.CustomError) {
return res.status(err.statusCode).json({
success: false,
error: err.serializeErrors(),
error: (_a = err.serializeErrors()[0]) === null || _a === void 0 ? void 0 : _a.message,
message: err.message || "Something went wrong"

@@ -12,0 +13,0 @@ });

{
"name": "@zakaa/common",
"version": "1.0.9",
"version": "1.1.0",
"description": "zakaa project common packages",

@@ -5,0 +5,0 @@ "main": "./build/index.js",