posthog-js 1.130.2 → 1.131.1
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/array.full.js +1 -1
- package/dist/array.full.js.map +1 -1
- package/dist/array.js +1 -1
- package/dist/array.js.map +1 -1
- package/dist/es.js +1 -1
- package/dist/es.js.map +1 -1
- package/dist/lib/src/posthog-core.d.ts +1 -0
- package/dist/lib/src/request.d.ts +1 -1
- package/dist/lib/src/types.d.ts +1 -1
- package/dist/lib/src/utils/index.d.ts +1 -0
- package/dist/module.d.ts +2 -1
- package/dist/module.js +1 -1
- package/dist/module.js.map +1 -1
- package/dist/recorder-v2.js.map +1 -1
- package/dist/recorder.js.map +1 -1
- package/lib/package.json +5 -2
- package/lib/src/config.js +1 -1
- package/lib/src/config.js.map +1 -1
- package/lib/src/extensions/toolbar.js +2 -1
- package/lib/src/extensions/toolbar.js.map +1 -1
- package/lib/src/posthog-core.d.ts +1 -0
- package/lib/src/posthog-core.js +7 -4
- package/lib/src/posthog-core.js.map +1 -1
- package/lib/src/request.d.ts +1 -1
- package/lib/src/request.js +43 -25
- package/lib/src/request.js.map +1 -1
- package/lib/src/types.d.ts +1 -1
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/index.d.ts +1 -0
- package/lib/src/utils/index.js +8 -0
- package/lib/src/utils/index.js.map +1 -1
- package/package.json +5 -2
|
@@ -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
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { RequestOptions } from './types';
|
|
2
2
|
export declare const SUPPORTS_REQUEST: boolean;
|
|
3
|
-
export declare const request: (_options: RequestOptions) => void;
|
|
4
3
|
export declare const extendURLParams: (url: string, params: Record<string, any>) => string;
|
|
4
|
+
export declare const request: (_options: RequestOptions) => void;
|
package/dist/lib/src/types.d.ts
CHANGED
|
@@ -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;
|
|
@@ -31,3 +31,4 @@ export declare const registerEvent: (element: Element | Window | Document | Node
|
|
|
31
31
|
export declare function loadScript(scriptUrlToLoad: string, callback: (error?: string | Event, event?: Event) => void): void;
|
|
32
32
|
export declare function isCrossDomainCookie(documentLocation: Location | undefined): boolean;
|
|
33
33
|
export declare function isDistinctIdStringLike(value: string): boolean;
|
|
34
|
+
export declare function find<T>(value: T[], predicate: (value: T) => boolean): T | undefined;
|
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
|
*
|