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.
@@ -12584,7 +12584,7 @@ class HumanBehaviorAPI {
12584
12584
  sessionId: sessionId,
12585
12585
  posthogName: userData.email || userData.name || null // Update user name with email
12586
12586
  };
12587
- logInfo('Sending user data to server:', payload);
12587
+ logDebug('Sending user data to server:', payload);
12588
12588
  const response = yield fetch(`${this.baseUrl}/api/ingestion/user`, {
12589
12589
  method: 'POST',
12590
12590
  headers: {
@@ -12597,7 +12597,7 @@ class HumanBehaviorAPI {
12597
12597
  throw new Error(`Failed to send user data: ${response.statusText} with API key: ${this.apiKey}`);
12598
12598
  }
12599
12599
  const result = yield response.json();
12600
- logInfo('Server response:', result);
12600
+ logDebug('Server response:', result);
12601
12601
  return result;
12602
12602
  }
12603
12603
  catch (error) {
@@ -13766,6 +13766,7 @@ class HumanBehaviorTracker {
13766
13766
  const originalEndUserId = this.endUserId;
13767
13767
  // Store user properties
13768
13768
  this.userProperties = userProperties;
13769
+ logDebug('Identifying user:', { userProperties, originalEndUserId, sessionId: this.sessionId });
13769
13770
  // Send user data with the original endUserId
13770
13771
  yield this.api.sendUserData(originalEndUserId, userProperties, this.sessionId);
13771
13772
  // Don't update endUserId - keep it as the original UUID