humanbehavior-js 0.4.9 → 0.4.10

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "humanbehavior-js",
3
- "version": "0.4.9",
3
+ "version": "0.4.10",
4
4
  "description": "SDK for HumanBehavior session and event recording",
5
5
  "type": "module",
6
6
  "main": "./dist/cjs/index.js",
package/src/api.ts CHANGED
@@ -246,7 +246,7 @@ export class HumanBehaviorAPI {
246
246
  posthogName: userData.email || userData.name || null // Update user name with email
247
247
  };
248
248
 
249
- logInfo('Sending user data to server:', payload);
249
+ logDebug('Sending user data to server:', payload);
250
250
 
251
251
  const response = await fetch(`${this.baseUrl}/api/ingestion/user`, {
252
252
  method: 'POST',
@@ -262,7 +262,7 @@ export class HumanBehaviorAPI {
262
262
  }
263
263
 
264
264
  const result = await response.json();
265
- logInfo('Server response:', result);
265
+ logDebug('Server response:', result);
266
266
  return result;
267
267
  } catch (error) {
268
268
  logError('Error sending user data:', error);
package/src/tracker.ts CHANGED
@@ -740,6 +740,8 @@ export class HumanBehaviorTracker {
740
740
  // Store user properties
741
741
  this.userProperties = userProperties;
742
742
 
743
+ logDebug('Identifying user:', { userProperties, originalEndUserId, sessionId: this.sessionId });
744
+
743
745
  // Send user data with the original endUserId
744
746
  await this.api.sendUserData(originalEndUserId!, userProperties, this.sessionId);
745
747