get-browser-fingerprint
Advanced tools
Comparing version 4.0.0 to 4.0.1
{ | ||
"name": "get-browser-fingerprint", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"author": "Damiano Barbati <damiano.barbati@gmail.com> (https://github.com/damianobarbati)", | ||
@@ -21,7 +21,7 @@ "repository": "https://github.com/damianobarbati/get-browser-fingerprint", | ||
"devDependencies": { | ||
"@biomejs/biome": "^1.9.2", | ||
"@playwright/test": "^1.47.2", | ||
"serve": "^14.2.3", | ||
"vitest": "^2.1.1" | ||
"@biomejs/biome": "^1.9.4", | ||
"@playwright/test": "^1.48.1", | ||
"serve": "^14.2.4", | ||
"vitest": "^2.1.3" | ||
} | ||
} |
@@ -6,3 +6,3 @@ export interface FingerprintOptions { | ||
export default function getBrowserFingerprint(options?: FingerprintOptions): number; | ||
export default function getBrowserFingerprint(options?: FingerprintOptions): Promise<number>; | ||
@@ -9,0 +9,0 @@ declare global { |
@@ -0,1 +1,2 @@ | ||
/** @type {import('./index.d.ts').getBrowserFingerprint} */ | ||
const getBrowserFingerprint = async ({ hardwareOnly = true, debug = false } = {}) => { | ||
@@ -2,0 +3,0 @@ const { cookieEnabled, deviceMemory, doNotTrack, hardwareConcurrency, language, languages, maxTouchPoints, platform, userAgent, vendor } = window.navigator; |
11833
292