@thantickets/common 1.0.7 → 1.0.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.
Potentially problematic release.
This version of @thantickets/common might be problematic. Click here for more details.
@@ -6,6 +6,7 @@ const errorHandler = (err, req, res, next) => {
|
|
6
6
|
if (err instanceof custom_error_1.CustomError) {
|
7
7
|
return res.status(err.statusCode).send({ errors: err.serializeErrors() });
|
8
8
|
}
|
9
|
+
console.error(err);
|
9
10
|
res.status(400).send({
|
10
11
|
errors: [{ message: 'Something went wrong' }]
|
11
12
|
});
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@thantickets/common",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.9",
|
4
4
|
"description": "",
|
5
5
|
"main": "./build/index.js",
|
6
6
|
"types": "./build/index.d.ts",
|
@@ -8,7 +8,7 @@
|
|
8
8
|
"build/**/*"
|
9
9
|
],
|
10
10
|
"scripts": {
|
11
|
-
"clean": "del ./build
|
11
|
+
"clean": "del-cli \"./build/*\"",
|
12
12
|
"build": "npm run clean && tsc",
|
13
13
|
"pub": "git add . && git commit -m \"Updates\" && npm version patch && npm run build && npm publish"
|
14
14
|
},
|