@datalyr/react-native 1.0.1 → 1.0.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/datalyr-sdk.js +1 -1
- package/lib/http-client.js +2 -2
- package/package.json +2 -2
- package/src/datalyr-sdk.ts +1 -1
- package/src/http-client.ts +2 -2
package/lib/datalyr-sdk.js
CHANGED
|
@@ -121,7 +121,7 @@ export class DatalyrSDK {
|
|
|
121
121
|
const installData = await attributionManager.trackInstall();
|
|
122
122
|
await this.track('app_install', {
|
|
123
123
|
platform: Platform.OS === 'ios' || Platform.OS === 'android' ? Platform.OS : 'android',
|
|
124
|
-
sdk_version: '1.0.
|
|
124
|
+
sdk_version: '1.0.2',
|
|
125
125
|
...installData,
|
|
126
126
|
});
|
|
127
127
|
}
|
package/lib/http-client.js
CHANGED
|
@@ -45,7 +45,7 @@ export class HttpClient {
|
|
|
45
45
|
const timeoutId = setTimeout(() => controller.abort(), this.config.timeout);
|
|
46
46
|
const headers = {
|
|
47
47
|
'Content-Type': 'application/json',
|
|
48
|
-
'User-Agent': `@datalyr/react-native/1.0.
|
|
48
|
+
'User-Agent': `@datalyr/react-native/1.0.2`,
|
|
49
49
|
};
|
|
50
50
|
// Server-side tracking uses X-API-Key header
|
|
51
51
|
if (this.config.useServerTracking !== false) {
|
|
@@ -152,7 +152,7 @@ export class HttpClient {
|
|
|
152
152
|
},
|
|
153
153
|
context: {
|
|
154
154
|
library: '@datalyr/react-native',
|
|
155
|
-
version: '1.0.
|
|
155
|
+
version: '1.0.2',
|
|
156
156
|
userProperties: payload.userProperties,
|
|
157
157
|
},
|
|
158
158
|
timestamp: payload.timestamp,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datalyr/react-native",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Datalyr SDK for React Native & Expo - Server-side attribution tracking",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"homepage": "https://datalyr.com",
|
|
44
44
|
"repository": {
|
|
45
45
|
"type": "git",
|
|
46
|
-
"url": "https://github.com/datalyr/
|
|
46
|
+
"url": "https://github.com/datalyr/react-native.git"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"react": ">=18.0.0",
|
package/src/datalyr-sdk.ts
CHANGED
|
@@ -166,7 +166,7 @@ export class DatalyrSDK {
|
|
|
166
166
|
const installData = await attributionManager.trackInstall();
|
|
167
167
|
await this.track('app_install', {
|
|
168
168
|
platform: Platform.OS === 'ios' || Platform.OS === 'android' ? Platform.OS : 'android',
|
|
169
|
-
sdk_version: '1.0.
|
|
169
|
+
sdk_version: '1.0.2',
|
|
170
170
|
...installData,
|
|
171
171
|
});
|
|
172
172
|
}
|
package/src/http-client.ts
CHANGED
|
@@ -72,7 +72,7 @@ export class HttpClient {
|
|
|
72
72
|
|
|
73
73
|
const headers: Record<string, string> = {
|
|
74
74
|
'Content-Type': 'application/json',
|
|
75
|
-
'User-Agent': `@datalyr/react-native/1.0.
|
|
75
|
+
'User-Agent': `@datalyr/react-native/1.0.2`,
|
|
76
76
|
};
|
|
77
77
|
|
|
78
78
|
// Server-side tracking uses X-API-Key header
|
|
@@ -197,7 +197,7 @@ export class HttpClient {
|
|
|
197
197
|
},
|
|
198
198
|
context: {
|
|
199
199
|
library: '@datalyr/react-native',
|
|
200
|
-
version: '1.0.
|
|
200
|
+
version: '1.0.2',
|
|
201
201
|
userProperties: payload.userProperties,
|
|
202
202
|
},
|
|
203
203
|
timestamp: payload.timestamp,
|