@pbvision/fastify-firestore-service 0.0.44 → 0.0.46

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pbvision/fastify-firestore-service",
3
- "version": "0.0.44",
3
+ "version": "0.0.46",
4
4
  "description": "Web Framework using Fastify and Firestore ORM",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -42,7 +42,7 @@
42
42
  "@fastify/static": "^6.12",
43
43
  "@fastify/swagger": "^8.1.0",
44
44
  "@fastify/swagger-ui": "^2.0.1",
45
- "@pbvision/firestore-orm": "^0.0.20",
45
+ "@pbvision/firestore-orm": "^0.0.21",
46
46
  "@sentry/node": "^7.91.0",
47
47
  "fastify": "^4.10.0",
48
48
  "fastify-plugin": "^4.5.1",
@@ -22,7 +22,8 @@ export default fp(function (fastify, options, next) {
22
22
  fastify.setErrorHandler(async (error, req, reply) => {
23
23
  // extract the relevant bit of the traceback: remove fastify lines
24
24
  const traceback = error.stack.split('\n')
25
- const errorMessage = error.message.split('\n')
25
+ // istanbul ignore next
26
+ const errorMessage = error.message?.split('\n') ?? ''
26
27
  traceback.splice(0, errorMessage.length)
27
28
  let removeFromIdx
28
29
  if (error instanceof InvalidInputException) {