@rebilly/risk-data-collector 10.33.20 → 10.33.21

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,5 +1,5 @@
1
- ## 10.33.20 (2026-11-02)
1
+ ## 10.33.21 (2026-11-05)
2
2
 
3
- ### 🧱 Updated Dependencies
3
+ ### Bug Fixes
4
4
 
5
- - Updated eslint-config to 4.32.17
5
+ - **fe:** send FramePay ready-to-pay without waiting for risk data, and collect it once ([#31121](https://github.com/Rebilly/rebilly/pull/31121), [#31106](https://github.com/Rebilly/rebilly/issues/31106))
package/README.md CHANGED
@@ -19,6 +19,8 @@ Collect browser data for risk assessment purposes.
19
19
  - deviceFingerprintHash
20
20
  - kountFraudSessionId (optional)
21
21
 
22
+ If the Kount script fails to load, `kountFraudSessionId` is `null` and the other values are still returned.
23
+
22
24
  ## Usage
23
25
 
24
26
  `risk-data-collector` is distributed in two ways:
@@ -66,6 +68,16 @@ import { collectData } from '@rebilly/risk-data-collector';
66
68
  })();
67
69
  ```
68
70
 
71
+ ### Browser data without waiting
72
+
73
+ `getBrowserData()` returns the browser data at once, without the fingerprint, Kount, or the ad-block check (`isAdBlockEnabled` is `null`):
74
+
75
+ ```js
76
+ import { getBrowserData } from '@rebilly/risk-data-collector';
77
+
78
+ const browserData = getBrowserData();
79
+ ```
80
+
69
81
  ## Kount
70
82
 
71
83
  `risk-data-collector` works with [Kount](https://kount.com/) to collect `kountFraudSessionId`.
@@ -14,7 +14,13 @@ export interface RiskMetadata {
14
14
  isAdBlockEnabled: boolean | null;
15
15
  };
16
16
  }
17
+ /**
18
+ * The browser data the page has at once. Whether an ad blocker runs takes
19
+ * the probe script, so `isAdBlockEnabled` is null here; `collectData` fills
20
+ * it in.
21
+ */
22
+ declare function getBrowserData(): RiskMetadata['browserData'];
17
23
  declare function collectData({ env, kountAccountId, kountSessionId }?: KountParams): Promise<{
18
24
  riskMetadata: RiskMetadata;
19
25
  }>;
20
- export { collectData };
26
+ export { collectData, getBrowserData };