message-verify 1.0.1-beta.30 → 1.0.1-beta.31

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 CHANGED
@@ -14,12 +14,15 @@ export const initFingerprint = async () => {
14
14
  return new Promise((resolve) => {
15
15
  Fingerprint2.get(function (components) {
16
16
  console.log('components', components);
17
- const includeKeys = ['userAgent', 'deviceMemory', 'cpuClass', 'hardwareConcurrency', 'platform'];
17
+ const includeKeys = ['userAgent'];
18
+ // const includeKeys = ['userAgent', 'deviceMemory', 'cpuClass', 'hardwareConcurrency', 'platform'];
18
19
  const values = components
19
20
  .filter(component => includeKeys.includes(component.key))
20
21
  .map(component => component.value)
21
22
  .join('###');
23
+ console.log('values', values);
22
24
  const fingerprint = Fingerprint2.x64hash128(values, 31);
25
+ console.log('fingerprint', fingerprint);
23
26
  // cachedFingerprint = fingerprint;
24
27
  resolve(fingerprint);
25
28
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "message-verify",
3
- "version": "1.0.1-beta.30",
3
+ "version": "1.0.1-beta.31",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "dependencies": {
package/src/index.tsx CHANGED
@@ -15,12 +15,15 @@ export const initFingerprint = async (): Promise<string> => {
15
15
  return new Promise((resolve) => {
16
16
  Fingerprint2.get(function (components) {
17
17
  console.log('components', components);
18
- const includeKeys = ['userAgent', 'deviceMemory', 'cpuClass', 'hardwareConcurrency', 'platform'];
18
+ const includeKeys = ['userAgent'];
19
+ // const includeKeys = ['userAgent', 'deviceMemory', 'cpuClass', 'hardwareConcurrency', 'platform'];
19
20
  const values = components
20
21
  .filter(component => includeKeys.includes(component.key))
21
22
  .map(component => component.value)
22
23
  .join('###');
24
+ console.log('values', values);
23
25
  const fingerprint = Fingerprint2.x64hash128(values, 31);
26
+ console.log('fingerprint', fingerprint);
24
27
  // cachedFingerprint = fingerprint;
25
28
  resolve(fingerprint);
26
29
  });