@zaplier/sdk 1.0.7 → 1.0.8
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 +22 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +22 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/sdk.js +22 -3
- package/dist/sdk.js.map +1 -1
- package/dist/sdk.min.js +1 -1
- package/dist/src/modules/fingerprint.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/sdk.js
CHANGED
|
@@ -5983,10 +5983,29 @@
|
|
|
5983
5983
|
// - Exact hardware values (use buckets)
|
|
5984
5984
|
// Generate ultra-stable hash with additional collision resistance
|
|
5985
5985
|
const stableCoreHash = hashStableCore(coreVector, opts.debug);
|
|
5986
|
-
// CRITICAL: Generate enhanced fingerprint hash combining
|
|
5987
|
-
//
|
|
5986
|
+
// CRITICAL: Generate enhanced fingerprint hash combining STABLE components only
|
|
5987
|
+
// Filter out unstable components that change between requests (canvas, webgl, audio)
|
|
5988
|
+
// These components can vary due to GPU state, rendering context, permissions, etc.
|
|
5989
|
+
const unstableComponentKeys = [
|
|
5990
|
+
"canvas",
|
|
5991
|
+
"webgl",
|
|
5992
|
+
"audio", // Visual/audio fingerprints (vary with context)
|
|
5993
|
+
"mathFingerprint",
|
|
5994
|
+
"fontPreferences",
|
|
5995
|
+
"enhancedFonts", // Measurement-based (can timeout/vary)
|
|
5996
|
+
"dateTimeLocale",
|
|
5997
|
+
"accessibilityEnhanced", // Locale/accessibility (can change)
|
|
5998
|
+
"domBlockers",
|
|
5999
|
+
"pluginsEnhanced", // Privacy tools detection (can change)
|
|
6000
|
+
];
|
|
6001
|
+
const stableComponentValues = {};
|
|
6002
|
+
for (const [key, value] of Object.entries(componentValues)) {
|
|
6003
|
+
if (!unstableComponentKeys.includes(key)) {
|
|
6004
|
+
stableComponentValues[key] = value;
|
|
6005
|
+
}
|
|
6006
|
+
}
|
|
5988
6007
|
const enhancedComponentValues = {
|
|
5989
|
-
...
|
|
6008
|
+
...stableComponentValues, // STABLE components only (screen, browser, system, etc.)
|
|
5990
6009
|
_stableCore: coreVector, // + Ultra-stable components (ua, platform, deviceType, etc.)
|
|
5991
6010
|
// REMOVED: _hourlyEntropy - was causing visitor ID instability (same user = different IDs)
|
|
5992
6011
|
};
|