@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.
@@ -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.5.0',
156
- source: 'mobile_app', // Explicitly set source for mobile
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datalyr/react-native",
3
- "version": "1.6.2",
3
+ "version": "1.6.3",
4
4
  "description": "Datalyr SDK for React Native & Expo - Server-side attribution tracking for iOS and Android",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -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.5.0',
201
- source: 'mobile_app', // Explicitly set source for mobile
201
+ version: '1.6.2',
202
+ source: 'mobile_app',
202
203
  userProperties: payload.userProperties,
203
204
  },
204
205
  timestamp: payload.timestamp,