@rebilly/risk-data-collector 10.28.1 → 10.28.3

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/CHANGELOG.md CHANGED
@@ -1 +1 @@
1
- ## [10.28.1](https://github.com/Rebilly/rebilly/compare/risk-data-collector-v10.28.0...risk-data-collector-v10.28.1) (2026-07-14)
1
+ ## [10.28.3](https://github.com/Rebilly/rebilly/compare/risk-data-collector-v10.28.2...risk-data-collector-v10.28.3) (2026-07-15)
@@ -0,0 +1 @@
1
+ export declare const getIsAdBlockEnabled: () => Promise<boolean>;
@@ -1,27 +1,20 @@
1
- export declare function collectData({ env, kountAccountId, kountSessionId }?: KountParams): Promise<{
2
- riskMetadata: RiskMetadata;
3
- }>;
4
-
5
- declare interface KountParams {
6
- env: string | null;
7
- kountAccountId: string | null;
8
- kountSessionId?: string | null;
9
- }
10
-
11
- export declare interface RiskMetadata {
12
- fingerprint: string | null;
13
- extraData: {
14
- kountFraudSessionId: string | null;
15
- };
16
- browserData: {
17
- colorDepth: number | null;
18
- isJavaEnabled: boolean | null;
19
- language: string | null;
20
- screenHeight: number | null;
21
- screenWidth: number | null;
22
- timeZoneOffset: number;
23
- isAdBlockEnabled: boolean | null;
24
- };
25
- }
26
-
27
- export { }
1
+ import { KountParams } from './kount';
2
+ export interface RiskMetadata {
3
+ fingerprint: string | null;
4
+ extraData: {
5
+ kountFraudSessionId: string | null;
6
+ };
7
+ browserData: {
8
+ colorDepth: number | null;
9
+ isJavaEnabled: boolean | null;
10
+ language: string | null;
11
+ screenHeight: number | null;
12
+ screenWidth: number | null;
13
+ timeZoneOffset: number;
14
+ isAdBlockEnabled: boolean | null;
15
+ };
16
+ }
17
+ declare function collectData({ env, kountAccountId, kountSessionId }?: KountParams): Promise<{
18
+ riskMetadata: RiskMetadata;
19
+ }>;
20
+ export { collectData };
@@ -0,0 +1 @@
1
+ export default function getFingerprint(): Promise<string | null>;
@@ -0,0 +1,6 @@
1
+ export interface KountParams {
2
+ env: string | null;
3
+ kountAccountId: string | null;
4
+ kountSessionId?: string | null;
5
+ }
6
+ export default function getFraudSessionId({ env, kountAccountId, kountSessionId, }: KountParams): Promise<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rebilly/risk-data-collector",
3
- "version": "10.28.1",
3
+ "version": "10.28.3",
4
4
  "description": "Microlibrary that collects browser data for risk assessment",
5
5
  "type": "module",
6
6
  "main": "dist/data-collector.js",
@@ -9,9 +9,9 @@
9
9
  "author": "Rebilly",
10
10
  "license": "MIT",
11
11
  "scripts": {
12
- "type:check": "tsc --noEmit",
12
+ "type:check": "tsc --noEmit && pnpm type:check:e2e",
13
13
  "type:check:e2e": "tsc --noEmit -p tsconfig.e2e.json",
14
- "build": "pnpm type:check && pnpm type:check:e2e && vite build",
14
+ "build": "vite build",
15
15
  "build:watch": "vite build --watch",
16
16
  "serve": "pnpm build && pnpx tsx@4.22.3 ./dev/server.ts",
17
17
  "test:playwright:run": "playwright test --reporter=list",
@@ -42,7 +42,7 @@
42
42
  "@rebilly/eslint-config": "*",
43
43
  "@types/node": "^22.15.30",
44
44
  "express": "^5.1.0",
45
- "typescript": "^5.8.3",
45
+ "typescript": "^6.0.3",
46
46
  "vite": "^5.4.21",
47
47
  "vite-plugin-commonjs": "^0.10.4",
48
48
  "vite-plugin-dts": "^4.5.0"