@thumbmarkjs/thumbmarkjs 1.6.0 → 1.6.1
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/thumbmark.cjs.js +1 -1
- package/dist/thumbmark.cjs.js.map +1 -1
- package/dist/thumbmark.esm.js +1 -1
- package/dist/thumbmark.esm.js.map +1 -1
- package/dist/thumbmark.umd.js +1 -1
- package/dist/thumbmark.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/functions/index.ts +0 -1
- package/dist/types/components/audio/index.d.ts +0 -2
- package/dist/types/components/canvas/index.d.ts +0 -3
- package/dist/types/components/fonts/index.d.ts +0 -4
- package/dist/types/components/hardware/index.d.ts +0 -2
- package/dist/types/components/locales/index.d.ts +0 -2
- package/dist/types/components/math/index.d.ts +0 -2
- package/dist/types/components/mathml/index.d.ts +0 -2
- package/dist/types/components/permissions/index.d.ts +0 -3
- package/dist/types/components/plugins/index.d.ts +0 -2
- package/dist/types/components/screen/index.d.ts +0 -2
- package/dist/types/components/speech/index.d.ts +0 -2
- package/dist/types/components/system/browser.d.ts +0 -7
- package/dist/types/components/system/index.d.ts +0 -2
- package/dist/types/components/webgl/index.d.ts +0 -2
- package/dist/types/components/webrtc/index.d.ts +0 -2
- package/dist/types/factory.d.ts +0 -62
- package/dist/types/functions/api.d.ts +0 -50
- package/dist/types/functions/filterComponents.d.ts +0 -10
- package/dist/types/functions/index.d.ts +0 -45
- package/dist/types/functions/legacy_functions.d.ts +0 -27
- package/dist/types/index.d.ts +0 -9
- package/dist/types/options.d.ts +0 -59
- package/dist/types/thumbmark.d.ts +0 -26
- package/dist/types/utils/cache.d.ts +0 -23
- package/dist/types/utils/commonPixels.d.ts +0 -1
- package/dist/types/utils/ephemeralIFrame.d.ts +0 -4
- package/dist/types/utils/getMostFrequent.d.ts +0 -5
- package/dist/types/utils/hash.d.ts +0 -5
- package/dist/types/utils/imageDataToDataURL.d.ts +0 -1
- package/dist/types/utils/log.d.ts +0 -8
- package/dist/types/utils/raceAll.d.ts +0 -9
- package/dist/types/utils/sort.d.ts +0 -8
- package/dist/types/utils/stableStringify.d.ts +0 -22
- package/dist/types/utils/version.d.ts +0 -4
- package/dist/types/utils/visitorId.d.ts +0 -14
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getCommonPixels(images: ImageData[], width: number, height: number): ImageData;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function imageDataToDataURL(imageData: ImageData): string;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { componentInterface } from '../factory';
|
|
2
|
-
import { optionsInterface } from '../options';
|
|
3
|
-
/**
|
|
4
|
-
* Logs thumbmark data to remote logging endpoint (only once per session)
|
|
5
|
-
* You can disable this by setting options.logging to false.
|
|
6
|
-
* @internal
|
|
7
|
-
*/
|
|
8
|
-
export declare function logThumbmarkData(thisHash: string, thumbmarkData: componentInterface, options: optionsInterface, experimentalData?: componentInterface): Promise<void>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
type DelayedPromise<T> = Promise<T>;
|
|
2
|
-
export declare function delay<T>(t: number, val: T): DelayedPromise<T>;
|
|
3
|
-
export interface RaceResult<T> {
|
|
4
|
-
value: T;
|
|
5
|
-
elapsed?: number;
|
|
6
|
-
}
|
|
7
|
-
export declare function raceAllPerformance<T>(promises: Promise<T>[], timeoutTime: number, timeoutVal: T): Promise<RaceResult<T>[]>;
|
|
8
|
-
export declare function raceAll<T>(promises: Promise<T>[], timeoutTime: number, timeoutVal: T): Promise<(T | undefined)[]>;
|
|
9
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { componentInterface } from '../factory';
|
|
2
|
-
/**
|
|
3
|
-
* Recursively sorts the keys of a component object alphabetically.
|
|
4
|
-
* This ensures a consistent order for hashing.
|
|
5
|
-
* @param obj The component object to sort.
|
|
6
|
-
* @returns A new object with sorted keys.
|
|
7
|
-
*/
|
|
8
|
-
export declare function sortComponentKeys(obj: componentInterface): componentInterface;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Stable JSON stringify implementation
|
|
3
|
-
* Based on fast-json-stable-stringify by Evgeny Poberezkin
|
|
4
|
-
* https://github.com/epoberezkin/fast-json-stable-stringify
|
|
5
|
-
*
|
|
6
|
-
* This implementation ensures consistent JSON serialization by sorting object keys,
|
|
7
|
-
* which is critical for generating stable hashes from fingerprint data.
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* Converts data to a stable JSON string with sorted keys
|
|
11
|
-
*
|
|
12
|
-
* @param data - The data to stringify
|
|
13
|
-
* @returns Stable JSON string representation
|
|
14
|
-
* @throws TypeError if circular reference is detected
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```typescript
|
|
18
|
-
* const obj = { b: 2, a: 1 };
|
|
19
|
-
* stableStringify(obj); // '{"a":1,"b":2}'
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
export declare function stableStringify(data: any): string;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { OptionsAfterDefaults } from "../options";
|
|
2
|
-
/**
|
|
3
|
-
* Get the storage property name for visitor id
|
|
4
|
-
* @param _options
|
|
5
|
-
*/
|
|
6
|
-
export declare function getVisitorIdPropertyName(_options: Pick<OptionsAfterDefaults, 'storage_property_name' | 'property_name_factory'>): string;
|
|
7
|
-
/**
|
|
8
|
-
* Gets visitor ID from localStorage, returns null if unavailable
|
|
9
|
-
*/
|
|
10
|
-
export declare function getVisitorId(_options: OptionsAfterDefaults): string | null;
|
|
11
|
-
/**
|
|
12
|
-
* Sets visitor ID in localStorage
|
|
13
|
-
*/
|
|
14
|
-
export declare function setVisitorId(visitorId: string, _options: OptionsAfterDefaults): void;
|