@capxul/observability 2.5.1 → 2.5.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/dist/index.d.mts +15 -7
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1537,6 +1537,11 @@ type PostHogBrowserOptions = PostHogUtilityAppOptions;
|
|
|
1537
1537
|
* recorder script loads from PostHog, so external dependency loading is on.
|
|
1538
1538
|
* (Ruling 2026-09-01: pre-launch, every failure needs its evidence; replay
|
|
1539
1539
|
* gated to production left staging failures with no recording at all.)
|
|
1540
|
+
* Flags stay ENABLED for this client: posthog-js starts the recorder only
|
|
1541
|
+
* after it loads the project's remote config, and it skips that load when
|
|
1542
|
+
* `advanced_disable_flags` is true ("Remote config is disabled. Falling back
|
|
1543
|
+
* to local config."). With flags disabled the SDK captured events but never
|
|
1544
|
+
* recorded a session (0 replay rows in 7 days, verified 2026-09-02).
|
|
1540
1545
|
*
|
|
1541
1546
|
* Autocapture stays OFF: funnels run on catalog events, not on DOM guesses.
|
|
1542
1547
|
*/
|
|
@@ -1560,7 +1565,7 @@ interface PostHogProductAppOptions {
|
|
|
1560
1565
|
readonly disable_conversations: true;
|
|
1561
1566
|
readonly disable_external_dependency_loading: false;
|
|
1562
1567
|
readonly person_profiles: "identified_only";
|
|
1563
|
-
readonly advanced_disable_flags:
|
|
1568
|
+
readonly advanced_disable_flags: false;
|
|
1564
1569
|
readonly save_campaign_params: false;
|
|
1565
1570
|
readonly save_referrer: false;
|
|
1566
1571
|
readonly session_recording: {
|
|
@@ -1573,7 +1578,7 @@ interface PostHogProductAppOptions {
|
|
|
1573
1578
|
};
|
|
1574
1579
|
readonly recordHeaders: true;
|
|
1575
1580
|
readonly recordBody: true; /** Drops credential headers and masks secrets and OTP codes in bodies. */
|
|
1576
|
-
readonly maskCapturedNetworkRequestFn: (request:
|
|
1581
|
+
readonly maskCapturedNetworkRequestFn: <T extends CapturedNetworkRequestLike>(request: T) => T;
|
|
1577
1582
|
};
|
|
1578
1583
|
readonly before_send: PostHogBeforeSend;
|
|
1579
1584
|
}
|
|
@@ -1586,13 +1591,16 @@ interface CapxulBrowserAnalyticsInput {
|
|
|
1586
1591
|
/** Back-compat alias for the pre-ADR-0020 name. */
|
|
1587
1592
|
type InitializePostHogBrowserAnalyticsInput = CapxulBrowserAnalyticsInput;
|
|
1588
1593
|
declare function utilityAppAnalytics(input: CapxulBrowserAnalyticsInput): PostHogUtilityAppOptions;
|
|
1589
|
-
/**
|
|
1594
|
+
/**
|
|
1595
|
+
* The posthog-js `CapturedNetworkRequest` fields this profile touches. Kept
|
|
1596
|
+
* structural and optional so posthog-js's own type satisfies it: the masker is
|
|
1597
|
+
* generic over the real request type and returns the same type it was given.
|
|
1598
|
+
*/
|
|
1590
1599
|
interface CapturedNetworkRequestLike {
|
|
1591
1600
|
readonly requestHeaders?: Record<string, string> | undefined;
|
|
1592
1601
|
readonly responseHeaders?: Record<string, string> | undefined;
|
|
1593
|
-
readonly requestBody?:
|
|
1594
|
-
readonly responseBody?:
|
|
1595
|
-
readonly [key: string]: unknown;
|
|
1602
|
+
readonly requestBody?: unknown;
|
|
1603
|
+
readonly responseBody?: unknown;
|
|
1596
1604
|
}
|
|
1597
1605
|
/**
|
|
1598
1606
|
* Replay keeps the request line, status, timing, headers, and bodies, so a
|
|
@@ -1600,7 +1608,7 @@ interface CapturedNetworkRequestLike {
|
|
|
1600
1608
|
* never leave the browser: bearer tokens, cookies, API keys, and the OTP a
|
|
1601
1609
|
* user just typed are masked before the recording is sent.
|
|
1602
1610
|
*/
|
|
1603
|
-
declare function maskCapturedNetworkRequest(request:
|
|
1611
|
+
declare function maskCapturedNetworkRequest<T extends CapturedNetworkRequestLike>(request: T): T;
|
|
1604
1612
|
declare function productAppAnalytics(input: CapxulBrowserAnalyticsInput): PostHogProductAppOptions;
|
|
1605
1613
|
type PostHogBrowserInitialize<Options, T> = (key: string, options: Options) => T;
|
|
1606
1614
|
interface PostHogBrowserPageviewClient {
|
package/dist/index.mjs
CHANGED
|
@@ -1073,7 +1073,7 @@ function productAppAnalytics(input) {
|
|
|
1073
1073
|
disable_conversations: true,
|
|
1074
1074
|
disable_external_dependency_loading: false,
|
|
1075
1075
|
person_profiles: "identified_only",
|
|
1076
|
-
advanced_disable_flags:
|
|
1076
|
+
advanced_disable_flags: false,
|
|
1077
1077
|
save_campaign_params: false,
|
|
1078
1078
|
save_referrer: false,
|
|
1079
1079
|
session_recording: {
|