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