message-verify 1.0.1-beta.35 → 1.0.1-beta.36
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 +2 -0
- package/package.json +1 -1
- package/src/index.tsx +2 -0
package/dist/index.js
CHANGED
@@ -5,10 +5,12 @@ import Fingerprint2 from 'fingerprintjs2';
|
|
5
5
|
import ReLoginModal from './relogin-modal.js';
|
6
6
|
let fingerprintPromise = null; // 用 Promise 本身作为缓存
|
7
7
|
export const initFingerprint = async () => {
|
8
|
+
console.log('fingerprintPromise:', fingerprintPromise);
|
8
9
|
if (!fingerprintPromise) {
|
9
10
|
fingerprintPromise = new Promise((resolve) => {
|
10
11
|
Fingerprint2.get(components => {
|
11
12
|
const includeKeys = ['userAgent', 'deviceMemory', 'cpuClass', 'hardwareConcurrency', 'platform'];
|
13
|
+
console.log('components:', components);
|
12
14
|
const values = components
|
13
15
|
.filter(c => includeKeys.includes(c.key))
|
14
16
|
.map(c => c.value)
|
package/package.json
CHANGED
package/src/index.tsx
CHANGED
@@ -7,10 +7,12 @@ import { ModalConfig, LoginModalConfig } from './utils/type.js';
|
|
7
7
|
let fingerprintPromise: Promise<string> | null = null; // 用 Promise 本身作为缓存
|
8
8
|
|
9
9
|
export const initFingerprint = async (): Promise<string> => {
|
10
|
+
console.log('fingerprintPromise:', fingerprintPromise);
|
10
11
|
if (!fingerprintPromise) {
|
11
12
|
fingerprintPromise = new Promise((resolve) => {
|
12
13
|
Fingerprint2.get(components => {
|
13
14
|
const includeKeys = ['userAgent', 'deviceMemory', 'cpuClass', 'hardwareConcurrency', 'platform'];
|
15
|
+
console.log('components:', components);
|
14
16
|
const values = components
|
15
17
|
.filter(c => includeKeys.includes(c.key))
|
16
18
|
.map(c => c.value)
|