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/cjs/angular/index.cjs +3 -2
- package/dist/cjs/angular/index.cjs.map +1 -1
- package/dist/cjs/index.cjs +3 -2
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/react/index.cjs +3 -2
- package/dist/cjs/react/index.cjs.map +1 -1
- package/dist/cjs/remix/index.cjs +3 -2
- package/dist/cjs/remix/index.cjs.map +1 -1
- package/dist/cjs/svelte/index.cjs +3 -2
- package/dist/cjs/svelte/index.cjs.map +1 -1
- package/dist/cjs/vue/index.cjs +3 -2
- package/dist/cjs/vue/index.cjs.map +1 -1
- package/dist/esm/angular/index.js +3 -2
- package/dist/esm/angular/index.js.map +1 -1
- package/dist/esm/index.js +3 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/react/index.js +3 -2
- package/dist/esm/react/index.js.map +1 -1
- package/dist/esm/remix/index.js +3 -2
- package/dist/esm/remix/index.js.map +1 -1
- package/dist/esm/svelte/index.js +3 -2
- package/dist/esm/svelte/index.js.map +1 -1
- package/dist/esm/vue/index.js +3 -2
- package/dist/esm/vue/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
- package/src/api.ts +2 -2
- package/src/tracker.ts +2 -0
package/dist/esm/remix/index.js
CHANGED
|
@@ -12582,7 +12582,7 @@ class HumanBehaviorAPI {
|
|
|
12582
12582
|
sessionId: sessionId,
|
|
12583
12583
|
posthogName: userData.email || userData.name || null // Update user name with email
|
|
12584
12584
|
};
|
|
12585
|
-
|
|
12585
|
+
logDebug('Sending user data to server:', payload);
|
|
12586
12586
|
const response = yield fetch(`${this.baseUrl}/api/ingestion/user`, {
|
|
12587
12587
|
method: 'POST',
|
|
12588
12588
|
headers: {
|
|
@@ -12595,7 +12595,7 @@ class HumanBehaviorAPI {
|
|
|
12595
12595
|
throw new Error(`Failed to send user data: ${response.statusText} with API key: ${this.apiKey}`);
|
|
12596
12596
|
}
|
|
12597
12597
|
const result = yield response.json();
|
|
12598
|
-
|
|
12598
|
+
logDebug('Server response:', result);
|
|
12599
12599
|
return result;
|
|
12600
12600
|
}
|
|
12601
12601
|
catch (error) {
|
|
@@ -13764,6 +13764,7 @@ class HumanBehaviorTracker {
|
|
|
13764
13764
|
const originalEndUserId = this.endUserId;
|
|
13765
13765
|
// Store user properties
|
|
13766
13766
|
this.userProperties = userProperties;
|
|
13767
|
+
logDebug('Identifying user:', { userProperties, originalEndUserId, sessionId: this.sessionId });
|
|
13767
13768
|
// Send user data with the original endUserId
|
|
13768
13769
|
yield this.api.sendUserData(originalEndUserId, userProperties, this.sessionId);
|
|
13769
13770
|
// Don't update endUserId - keep it as the original UUID
|