@pbvision/fastify-firestore-service 0.0.43 → 0.0.45
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 +2 -2
- package/src/api/api.js +8 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pbvision/fastify-firestore-service",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.45",
|
|
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.
|
|
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",
|
package/src/api/api.js
CHANGED
|
@@ -420,6 +420,14 @@ class API {
|
|
|
420
420
|
const inputs = this.constructor.getInputsToTrackWithSentry(this.req)
|
|
421
421
|
// istanbul ignore else
|
|
422
422
|
if (inputs) {
|
|
423
|
+
const inputsSerialized = {}
|
|
424
|
+
for (const [k, v] of Object.entries(inputs)) {
|
|
425
|
+
if (typeof v === 'object') {
|
|
426
|
+
inputsSerialized[k] = JSON.stringify(v)
|
|
427
|
+
} else {
|
|
428
|
+
inputsSerialized[k] = v
|
|
429
|
+
}
|
|
430
|
+
}
|
|
423
431
|
this.setSentryContext('inputs', inputs)
|
|
424
432
|
}
|
|
425
433
|
}
|