@pbvision/cloud-run-service 0.0.33 → 0.0.35
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/analytics.js +1 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pbvision/cloud-run-service",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.35",
|
|
4
4
|
"description": "fastify-firestore-service Web Framework on Cloud Run",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@google-cloud/tasks": "^4.0.1",
|
|
31
|
-
"@pbvision/fastify-firestore-service": "^0.0.
|
|
31
|
+
"@pbvision/fastify-firestore-service": "^0.0.40",
|
|
32
32
|
"google-auth-library": "^9.4.2",
|
|
33
33
|
"ua-parser-js": "^1.0.37"
|
|
34
34
|
},
|
package/src/analytics.js
CHANGED
|
@@ -147,10 +147,9 @@ export class DatabaseAPIWithAnalytics extends DatabaseAPI {
|
|
|
147
147
|
|
|
148
148
|
function addSenderId (mixpanelUserId, properties, deviceId) {
|
|
149
149
|
if (mixpanelUserId.startsWith('$device:')) {
|
|
150
|
-
properties.distinct_id = mixpanelUserId
|
|
151
150
|
properties.$device_id = mixpanelUserId.substring(8)
|
|
152
151
|
} else {
|
|
153
|
-
properties
|
|
152
|
+
properties.$user_id = mixpanelUserId
|
|
154
153
|
if (deviceId) {
|
|
155
154
|
// istanbul ignore else
|
|
156
155
|
if (deviceId.startsWith('$device')) {
|