@thantickets/common 1.0.7 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.7",
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
  },