@pbvision/fastify-firestore-service 0.0.46 → 0.0.48

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.46",
3
+ "version": "0.0.48",
4
4
  "description": "Web Framework using Fastify and Firestore ORM",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -21,7 +21,8 @@ export default fp(function (fastify, options, next) {
21
21
  // log any exception which occurs
22
22
  fastify.setErrorHandler(async (error, req, reply) => {
23
23
  // extract the relevant bit of the traceback: remove fastify lines
24
- const traceback = error.stack.split('\n')
24
+ // istanbul ignore next
25
+ const traceback = error.stack?.split('\n') ?? []
25
26
  // istanbul ignore next
26
27
  const errorMessage = error.message?.split('\n') ?? ''
27
28
  traceback.splice(0, errorMessage.length)