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.
@@ -12592,7 +12592,7 @@ class HumanBehaviorAPI {
12592
12592
  sessionId: sessionId,
12593
12593
  posthogName: userData.email || userData.name || null // Update user name with email
12594
12594
  };
12595
- logInfo('Sending user data to server:', payload);
12595
+ logDebug('Sending user data to server:', payload);
12596
12596
  const response = yield fetch(`${this.baseUrl}/api/ingestion/user`, {
12597
12597
  method: 'POST',
12598
12598
  headers: {
@@ -12605,7 +12605,7 @@ class HumanBehaviorAPI {
12605
12605
  throw new Error(`Failed to send user data: ${response.statusText} with API key: ${this.apiKey}`);
12606
12606
  }
12607
12607
  const result = yield response.json();
12608
- logInfo('Server response:', result);
12608
+ logDebug('Server response:', result);
12609
12609
  return result;
12610
12610
  }
12611
12611
  catch (error) {
@@ -13774,6 +13774,7 @@ class HumanBehaviorTracker {
13774
13774
  const originalEndUserId = this.endUserId;
13775
13775
  // Store user properties
13776
13776
  this.userProperties = userProperties;
13777
+ logDebug('Identifying user:', { userProperties, originalEndUserId, sessionId: this.sessionId });
13777
13778
  // Send user data with the original endUserId
13778
13779
  yield this.api.sendUserData(originalEndUserId, userProperties, this.sessionId);
13779
13780
  // Don't update endUserId - keep it as the original UUID