@cripty2001/utils 0.0.42 → 0.0.43

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.
@@ -44,10 +44,10 @@ class Appserver {
44
44
  throw new AppserverError('REQUEST_INVALID_TYPE_HEADER', 'Content-Type must be a messagepack (application/vnd.msgpack)', 400);
45
45
  const data = (() => {
46
46
  try {
47
- return JSON.parse(req.body);
47
+ return (0, msgpack_1.decode)(req.body);
48
48
  }
49
49
  catch {
50
- throw new AppserverError('REQUEST_INVALID_BODY', 'Request body is not valid JSON', 400);
50
+ throw new AppserverError('REQUEST_INVALID_BODY', 'Request body is not valid msgpack', 400);
51
51
  }
52
52
  })();
53
53
  const authHeader = req.headers['authorization'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cripty2001/utils",
3
- "version": "0.0.42",
3
+ "version": "0.0.43",
4
4
  "description": "Internal Set of utils. If you need them use them, otherwise go to the next package ;)",
5
5
  "homepage": "https://github.com/cripty2001/utils#readme",
6
6
  "bugs": {