From 5b04b9e96a35256593f37299c7036ea8afb89667 Mon Sep 17 00:00:00 2001 From: Rishat Valitov Date: Thu, 1 Jun 2023 23:06:24 +0300 Subject: [PATCH] Export DistinctivePropertiesPayload (#127) * Export DistinctivePropertiesPayload * bump version to 1.6.0 --------- Co-authored-by: xnerhu --- package.json | 2 +- src/index.ts | 12 ++++++++++-- src/sources/index.ts | 4 ++-- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 23e55596..cd972ed3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@fingerprintjs/botd", - "version": "1.5.0", + "version": "1.6.0", "description": "botd is a browser library for JavaScript bot detection", "keywords": [ "bot", diff --git a/src/index.ts b/src/index.ts index efba36de..e3b9bbcf 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,6 @@ import { version } from '../package.json' import BotDetector from './detector' -import { sources, WindowSizePayload, ProcessPayload } from './sources' +import { sources, WindowSizePayload, ProcessPayload, DistinctivePropertiesPayload } from './sources' import { BotdError, BotDetectorInterface, BotKind, BotDetectionResult } from './types' /** @@ -46,4 +46,12 @@ export default { load } // The exports below are for private usage. They may change unexpectedly. Use them at your own risk. /** Not documented, out of Semantic Versioning, usage is at your own risk */ -export { sources, BotdError, WindowSizePayload, ProcessPayload, BotDetectionResult, BotKind } +export { + sources, + BotdError, + WindowSizePayload, + ProcessPayload, + DistinctivePropertiesPayload, + BotDetectionResult, + BotKind, +} diff --git a/src/sources/index.ts b/src/sources/index.ts index 0e995f22..8db41ca0 100644 --- a/src/sources/index.ts +++ b/src/sources/index.ts @@ -16,7 +16,7 @@ import getWebDriver from './webdriver' import getWebGL from './webgl' import getWindowExternal from './window_external' import getWindowSize, { WindowSizePayload } from './window_size' -import checkDistinctiveProperties from './distinctive_properties' +import checkDistinctiveProperties, { DistinctivePropertiesPayload } from './distinctive_properties' export const sources = { userAgent: getUserAgent, @@ -40,4 +40,4 @@ export const sources = { distinctiveProps: checkDistinctiveProperties, } -export { WindowSizePayload, ProcessPayload } +export { WindowSizePayload, ProcessPayload, DistinctivePropertiesPayload }