posthog-js 1.130.2 → 1.131.0

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.
@@ -598,6 +598,7 @@ export declare class PostHog {
598
598
  toString(): string;
599
599
  _isIdentified(): boolean;
600
600
  _hasPersonProcessing(): boolean;
601
+ _shouldCapturePageleave(): boolean;
601
602
  /**
602
603
  * Enables person processing if possible, returns true if it does so or already enabled, false otherwise
603
604
  *
@@ -79,7 +79,7 @@ export interface PostHogConfig {
79
79
  save_referrer: boolean;
80
80
  verbose: boolean;
81
81
  capture_pageview: boolean;
82
- capture_pageleave: boolean;
82
+ capture_pageleave: boolean | 'if_capture_pageview';
83
83
  debug: boolean;
84
84
  cookie_expiration: number;
85
85
  upgrade: boolean;
package/dist/module.d.ts CHANGED
@@ -211,7 +211,7 @@ interface PostHogConfig {
211
211
  save_referrer: boolean;
212
212
  verbose: boolean;
213
213
  capture_pageview: boolean;
214
- capture_pageleave: boolean;
214
+ capture_pageleave: boolean | 'if_capture_pageview';
215
215
  debug: boolean;
216
216
  cookie_expiration: number;
217
217
  upgrade: boolean;
@@ -1962,6 +1962,7 @@ declare class PostHog {
1962
1962
  toString(): string;
1963
1963
  _isIdentified(): boolean;
1964
1964
  _hasPersonProcessing(): boolean;
1965
+ _shouldCapturePageleave(): boolean;
1965
1966
  /**
1966
1967
  * Enables person processing if possible, returns true if it does so or already enabled, false otherwise
1967
1968
  *