message-verify 1.0.1-beta.36 → 1.0.1-beta.38
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.js +3 -1
- package/package.json +1 -1
- package/src/index.tsx +3 -1
package/dist/index.js
CHANGED
@@ -9,13 +9,15 @@ export const initFingerprint = async () => {
|
|
9
9
|
if (!fingerprintPromise) {
|
10
10
|
fingerprintPromise = new Promise((resolve) => {
|
11
11
|
Fingerprint2.get(components => {
|
12
|
-
const includeKeys = ['userAgent', '
|
12
|
+
const includeKeys = ['userAgent', 'cpuClass', 'hardwareConcurrency', 'platform'];
|
13
13
|
console.log('components:', components);
|
14
14
|
const values = components
|
15
15
|
.filter(c => includeKeys.includes(c.key))
|
16
16
|
.map(c => c.value)
|
17
17
|
.join('###');
|
18
|
+
console.log('values:', values);
|
18
19
|
const fingerprint = Fingerprint2.x64hash128(values, 31);
|
20
|
+
console.log('fingerprint:', fingerprint);
|
19
21
|
resolve(fingerprint);
|
20
22
|
});
|
21
23
|
});
|
package/package.json
CHANGED
package/src/index.tsx
CHANGED
@@ -11,13 +11,15 @@ export const initFingerprint = async (): Promise<string> => {
|
|
11
11
|
if (!fingerprintPromise) {
|
12
12
|
fingerprintPromise = new Promise((resolve) => {
|
13
13
|
Fingerprint2.get(components => {
|
14
|
-
const includeKeys = ['userAgent', '
|
14
|
+
const includeKeys = ['userAgent', 'cpuClass', 'hardwareConcurrency', 'platform'];
|
15
15
|
console.log('components:', components);
|
16
16
|
const values = components
|
17
17
|
.filter(c => includeKeys.includes(c.key))
|
18
18
|
.map(c => c.value)
|
19
19
|
.join('###');
|
20
|
+
console.log('values:', values);
|
20
21
|
const fingerprint = Fingerprint2.x64hash128(values, 31);
|
22
|
+
console.log('fingerprint:', fingerprint);
|
21
23
|
resolve(fingerprint);
|
22
24
|
});
|
23
25
|
});
|