@zaplier/sdk 1.0.6 → 1.0.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 +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +6 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/sdk.js +6 -2
- package/dist/sdk.js.map +1 -1
- package/dist/sdk.min.js +1 -1
- package/dist/src/modules/fingerprint/hashing.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -151,8 +151,12 @@ function x64hash128(input, seed = 0) {
|
|
|
151
151
|
h1 = x64Add(h1, h2);
|
|
152
152
|
h2 = x64Add(h2, h1);
|
|
153
153
|
// Convert to hex string
|
|
154
|
-
|
|
155
|
-
|
|
154
|
+
// CRITICAL: Use >>> 0 to convert to unsigned 32-bit integer before converting to hex
|
|
155
|
+
// This prevents negative numbers from generating hashes with minus signs (e.g., "-6b43973f")
|
|
156
|
+
const hex1 = (h1[0] >>> 0).toString(16).padStart(8, "0") +
|
|
157
|
+
(h1[1] >>> 0).toString(16).padStart(8, "0");
|
|
158
|
+
const hex2 = (h2[0] >>> 0).toString(16).padStart(8, "0") +
|
|
159
|
+
(h2[1] >>> 0).toString(16).padStart(8, "0");
|
|
156
160
|
return hex1 + hex2;
|
|
157
161
|
}
|
|
158
162
|
/**
|