@masonprotsman/common 1.0.7 → 1.0.10

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/build/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ // reimport stuff
2
3
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
4
  if (k2 === undefined) k2 = k;
4
5
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -10,6 +10,7 @@ const errorHandler = (err, req, res, next) => {
10
10
  if (err instanceof custom_error_1.CustomError) {
11
11
  return res.status(err.statusCode).send({ errors: err.serializeErrors() });
12
12
  }
13
+ console.error('Unexpected error:', err);
13
14
  // For unexpected errors, return 400 with the error message
14
15
  res.status(400).send({ message: err.message });
15
16
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@masonprotsman/common",
3
- "version": "1.0.7",
3
+ "version": "1.0.10",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -16,21 +16,16 @@
16
16
  "author": "",
17
17
  "license": "ISC",
18
18
  "devDependencies": {
19
- "@types/cookie-session": "^2.0.49",
20
- "@types/express": "^4.17.21",
21
- "@types/jsonwebtoken": "^9.0.7",
22
19
  "del-cli": "^5.1.0",
23
20
  "typescript": "^5.6.2"
24
21
  },
25
22
  "dependencies": {
23
+ "@types/cookie-session": "^2.0.49",
24
+ "@types/express": "^5.0.0",
25
+ "@types/jsonwebtoken": "^9.0.7",
26
26
  "cookie-session": "^2.1.0",
27
27
  "express": "^4.21.0",
28
28
  "express-validator": "^7.2.0",
29
29
  "jsonwebtoken": "^9.0.2"
30
- },
31
- "peerDependencies": {
32
- "@types/cookie-session": "^2.0.49",
33
- "@types/express": "^4.17.21",
34
- "@types/jsonwebtoken": "^9.0.7"
35
30
  }
36
31
  }