Skip to content

Commit

Permalink
Export DistinctivePropertiesPayload (#127)
Browse files Browse the repository at this point in the history
* Export DistinctivePropertiesPayload

* bump version to 1.6.0

---------

Co-authored-by: xnerhu <[email protected]>
  • Loading branch information
r-valitov and xnerhu authored Jun 1, 2023
1 parent ce0f9fc commit 5b04b9e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
12 changes: 10 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -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'

/**
Expand Down Expand Up @@ -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,
}
4 changes: 2 additions & 2 deletions src/sources/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -40,4 +40,4 @@ export const sources = {
distinctiveProps: checkDistinctiveProperties,
}

export { WindowSizePayload, ProcessPayload }
export { WindowSizePayload, ProcessPayload, DistinctivePropertiesPayload }

0 comments on commit 5b04b9e

Please sign in to comment.