@datalyr/react-native 1.6.2 → 1.6.3
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/lib/http-client.js +3 -2
- package/package.json +1 -1
- package/src/http-client.ts +3 -2
package/lib/http-client.js
CHANGED
|
@@ -142,6 +142,7 @@ export class HttpClient {
|
|
|
142
142
|
transformForServerAPI(payload) {
|
|
143
143
|
return {
|
|
144
144
|
event: payload.eventName,
|
|
145
|
+
eventId: payload.eventId,
|
|
145
146
|
userId: payload.userId || payload.visitorId,
|
|
146
147
|
anonymousId: payload.anonymousId || payload.visitorId,
|
|
147
148
|
properties: {
|
|
@@ -152,8 +153,8 @@ export class HttpClient {
|
|
|
152
153
|
},
|
|
153
154
|
context: {
|
|
154
155
|
library: '@datalyr/react-native',
|
|
155
|
-
version: '1.
|
|
156
|
-
source: 'mobile_app',
|
|
156
|
+
version: '1.6.2',
|
|
157
|
+
source: 'mobile_app',
|
|
157
158
|
userProperties: payload.userProperties,
|
|
158
159
|
},
|
|
159
160
|
timestamp: payload.timestamp,
|
package/package.json
CHANGED
package/src/http-client.ts
CHANGED
|
@@ -187,6 +187,7 @@ export class HttpClient {
|
|
|
187
187
|
private transformForServerAPI(payload: EventPayload): any {
|
|
188
188
|
return {
|
|
189
189
|
event: payload.eventName,
|
|
190
|
+
eventId: payload.eventId,
|
|
190
191
|
userId: payload.userId || payload.visitorId,
|
|
191
192
|
anonymousId: payload.anonymousId || payload.visitorId,
|
|
192
193
|
properties: {
|
|
@@ -197,8 +198,8 @@ export class HttpClient {
|
|
|
197
198
|
},
|
|
198
199
|
context: {
|
|
199
200
|
library: '@datalyr/react-native',
|
|
200
|
-
version: '1.
|
|
201
|
-
source: 'mobile_app',
|
|
201
|
+
version: '1.6.2',
|
|
202
|
+
source: 'mobile_app',
|
|
202
203
|
userProperties: payload.userProperties,
|
|
203
204
|
},
|
|
204
205
|
timestamp: payload.timestamp,
|