@zaplier/sdk 1.6.6 → 1.6.7
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/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +3 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/sdk.js +3 -2
- package/dist/sdk.js.map +1 -1
- package/dist/sdk.min.js +1 -1
- package/dist/src/sdk.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -19957,7 +19957,7 @@ const DEFAULT_CONFIG = {
|
|
|
19957
19957
|
*/
|
|
19958
19958
|
class ZaplierSDK {
|
|
19959
19959
|
constructor(userConfig) {
|
|
19960
|
-
this.version = "1.7.
|
|
19960
|
+
this.version = "1.7.1";
|
|
19961
19961
|
this.isInitialized = false;
|
|
19962
19962
|
this.eventQueue = [];
|
|
19963
19963
|
/**
|
|
@@ -20389,7 +20389,8 @@ class ZaplierSDK {
|
|
|
20389
20389
|
const visitorIdentity = await this.visitorIdentityManager.getOrCreateVisitorIdentity({
|
|
20390
20390
|
fingerprintHash: result.data.hash,
|
|
20391
20391
|
stableCoreHash: result.data.stableCoreHash,
|
|
20392
|
-
|
|
20392
|
+
// CRITICAL: Use stableCoreHash as deviceFingerprint for consistency with backend
|
|
20393
|
+
deviceFingerprint: result.data.stableCoreHash || result.data.hash,
|
|
20393
20394
|
sessionId: this.sessionId,
|
|
20394
20395
|
userAgent: navigator.userAgent,
|
|
20395
20396
|
ipAddress: undefined, // Will be determined server-side
|