get-browser-fingerprint 4.0.0 → 4.1.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/README.md CHANGED
@@ -21,6 +21,7 @@ To test locally:
21
21
  ```sh
22
22
  fnm install
23
23
  pnpm install
24
+ pnpm exec playwright install chromium
24
25
  pnpm test
25
26
  ```
26
27
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "get-browser-fingerprint",
3
- "version": "4.0.0",
3
+ "version": "4.1.0",
4
4
  "author": "Damiano Barbati <damiano.barbati@gmail.com> (https://github.com/damianobarbati)",
5
5
  "repository": "https://github.com/damianobarbati/get-browser-fingerprint",
6
6
  "license": "MIT",
@@ -18,9 +18,9 @@
18
18
  "test": "vitest run"
19
19
  },
20
20
  "devDependencies": {
21
- "@biomejs/biome": "^1.9.2",
22
- "@playwright/test": "^1.47.2",
23
- "serve": "^14.2.3",
24
- "vitest": "^2.1.1"
21
+ "@biomejs/biome": "^1.9.4",
22
+ "@playwright/test": "^1.50.1",
23
+ "serve": "^14.2.4",
24
+ "vitest": "^3.0.5"
25
25
  }
26
26
  }
package/src/index.d.ts CHANGED
@@ -3,7 +3,7 @@ export interface FingerprintOptions {
3
3
  debug?: boolean;
4
4
  }
5
5
 
6
- export default function getBrowserFingerprint(options?: FingerprintOptions): number;
6
+ export default function getBrowserFingerprint(options?: FingerprintOptions): Promise<number>;
7
7
 
8
8
  declare global {
9
9
  interface Window {
package/src/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ /** @type {import('./index.d.ts').getBrowserFingerprint} */
1
2
  const getBrowserFingerprint = async ({ hardwareOnly = true, debug = false } = {}) => {
2
3
  const { cookieEnabled, deviceMemory, doNotTrack, hardwareConcurrency, language, languages, maxTouchPoints, platform, userAgent, vendor } = window.navigator;
3
4