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.
@@ -12580,7 +12580,7 @@ class HumanBehaviorAPI {
12580
12580
  sessionId: sessionId,
12581
12581
  posthogName: userData.email || userData.name || null // Update user name with email
12582
12582
  };
12583
- logInfo('Sending user data to server:', payload);
12583
+ logDebug('Sending user data to server:', payload);
12584
12584
  const response = yield fetch(`${this.baseUrl}/api/ingestion/user`, {
12585
12585
  method: 'POST',
12586
12586
  headers: {
@@ -12593,7 +12593,7 @@ class HumanBehaviorAPI {
12593
12593
  throw new Error(`Failed to send user data: ${response.statusText} with API key: ${this.apiKey}`);
12594
12594
  }
12595
12595
  const result = yield response.json();
12596
- logInfo('Server response:', result);
12596
+ logDebug('Server response:', result);
12597
12597
  return result;
12598
12598
  }
12599
12599
  catch (error) {
@@ -13762,6 +13762,7 @@ class HumanBehaviorTracker {
13762
13762
  const originalEndUserId = this.endUserId;
13763
13763
  // Store user properties
13764
13764
  this.userProperties = userProperties;
13765
+ logDebug('Identifying user:', { userProperties, originalEndUserId, sessionId: this.sessionId });
13765
13766
  // Send user data with the original endUserId
13766
13767
  yield this.api.sendUserData(originalEndUserId, userProperties, this.sessionId);
13767
13768
  // Don't update endUserId - keep it as the original UUID