@versini/ui-fingerprint 1.3.0 → 1.4.0
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 -14
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
@versini/ui-fingerprint v1.
|
|
3
|
-
©
|
|
2
|
+
@versini/ui-fingerprint v1.4.0
|
|
3
|
+
© 2026 gizmette.com
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
|
|
8
8
|
const hashFromFloat32Array = (array)=>{
|
|
9
9
|
const hashArray = Array.from(array).map((b)=>b.toString(16).padStart(2, "0")).join("");
|
|
10
10
|
return hashArray;
|
|
@@ -94,7 +94,6 @@ function wait(durationMs, resolveWith) {
|
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
;// CONCATENATED MODULE: ./src/components/audio.ts
|
|
98
97
|
|
|
99
98
|
const emptyAudio = {
|
|
100
99
|
audio: {
|
|
@@ -150,7 +149,6 @@ const getAudio = async (debug)=>{
|
|
|
150
149
|
});
|
|
151
150
|
};
|
|
152
151
|
|
|
153
|
-
;// CONCATENATED MODULE: ./src/components/browser.ts
|
|
154
152
|
const emptyBrowser = {
|
|
155
153
|
browser: ""
|
|
156
154
|
};
|
|
@@ -160,7 +158,6 @@ const getBrowser = async (_debug)=>{
|
|
|
160
158
|
};
|
|
161
159
|
};
|
|
162
160
|
|
|
163
|
-
;// CONCATENATED MODULE: ./src/components/canvas.ts
|
|
164
161
|
|
|
165
162
|
const emptyCanvas = {
|
|
166
163
|
canvas: {
|
|
@@ -264,7 +261,6 @@ const getCommonPixels = (images, width, height)=>{
|
|
|
264
261
|
return new ImageData(pixelArray, width, height);
|
|
265
262
|
};
|
|
266
263
|
|
|
267
|
-
;// CONCATENATED MODULE: ./src/components/fonts.ts
|
|
268
264
|
|
|
269
265
|
const emptyFonts = [];
|
|
270
266
|
// We use m or w because these two characters take up the maximum width.
|
|
@@ -376,7 +372,6 @@ const getFonts = async (_debug)=>{
|
|
|
376
372
|
});
|
|
377
373
|
};
|
|
378
374
|
|
|
379
|
-
;// CONCATENATED MODULE: ./src/components/hardware.ts
|
|
380
375
|
const emptyVideoCard = {
|
|
381
376
|
vendor: "",
|
|
382
377
|
vendorUnmasked: "",
|
|
@@ -444,7 +439,6 @@ const getHardware = async (debug)=>{
|
|
|
444
439
|
});
|
|
445
440
|
};
|
|
446
441
|
|
|
447
|
-
;// CONCATENATED MODULE: ./src/components/locale.ts
|
|
448
442
|
const emptyLocales = {
|
|
449
443
|
locales: {
|
|
450
444
|
languages: "",
|
|
@@ -462,7 +456,6 @@ const getLocales = async (_debug)=>{
|
|
|
462
456
|
});
|
|
463
457
|
};
|
|
464
458
|
|
|
465
|
-
;// CONCATENATED MODULE: ./src/components/screen.ts
|
|
466
459
|
const emptyScreen = {
|
|
467
460
|
screen: {
|
|
468
461
|
colorDepth: 0,
|
|
@@ -565,7 +558,6 @@ function mediaMatches() {
|
|
|
565
558
|
return results;
|
|
566
559
|
}
|
|
567
560
|
|
|
568
|
-
;// CONCATENATED MODULE: ./src/components/system.ts
|
|
569
561
|
const getSystem = async (debug)=>{
|
|
570
562
|
try {
|
|
571
563
|
return {
|
|
@@ -593,7 +585,6 @@ const emptySystem = {
|
|
|
593
585
|
}
|
|
594
586
|
};
|
|
595
587
|
|
|
596
|
-
;// CONCATENATED MODULE: ./src/common/fingerprint.ts
|
|
597
588
|
|
|
598
589
|
|
|
599
590
|
|
|
@@ -641,8 +632,6 @@ const getFingerprintHash = async (debug)=>{
|
|
|
641
632
|
}
|
|
642
633
|
};
|
|
643
634
|
|
|
644
|
-
;// CONCATENATED MODULE: ./src/components/index.ts
|
|
645
|
-
// force new release
|
|
646
635
|
|
|
647
636
|
|
|
648
637
|
export { getFingerprintData, getFingerprintHash };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-fingerprint",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"build:js": "rslib build",
|
|
24
24
|
"build:types": "echo 'Types now built with rslib'",
|
|
25
25
|
"build": "npm-run-all --serial clean build:check build:js",
|
|
26
|
-
"clean": "rimraf dist tmp",
|
|
26
|
+
"clean": "rimraf dist tmp coverage",
|
|
27
27
|
"dev:js": "rslib build --watch",
|
|
28
28
|
"dev:types": "echo 'Types now watched with rslib'",
|
|
29
29
|
"dev": "rslib build --watch",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"test:watch": "vitest",
|
|
35
35
|
"test": "vitest run"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "fbfcead0c4637fdf2cf9c8f6a701fe5da9508d4b"
|
|
38
38
|
}
|