posthog-js 1.200.2 → 1.201.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/README.md +7 -0
- package/dist/all-external-dependencies.js.map +1 -1
- package/dist/array.full.es5.js +1 -1
- package/dist/array.full.es5.js.map +1 -1
- package/dist/array.full.js +1 -1
- package/dist/array.full.js.map +1 -1
- package/dist/array.full.no-external.js +1 -1
- package/dist/array.full.no-external.js.map +1 -1
- package/dist/array.js +1 -1
- package/dist/array.js.map +1 -1
- package/dist/array.no-external.js +1 -1
- package/dist/array.no-external.js.map +1 -1
- package/dist/customizations.full.js +1 -1
- package/dist/customizations.full.js.map +1 -1
- package/dist/dead-clicks-autocapture.js.map +1 -1
- package/dist/exception-autocapture.js.map +1 -1
- package/dist/external-scripts-loader.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/module.d.ts +4 -2
- package/dist/module.full.d.ts +4 -2
- package/dist/module.full.js +1 -1
- package/dist/module.full.js.map +1 -1
- package/dist/module.full.no-external.d.ts +4 -2
- package/dist/module.full.no-external.js +1 -1
- package/dist/module.full.no-external.js.map +1 -1
- package/dist/module.js +1 -1
- package/dist/module.js.map +1 -1
- package/dist/module.no-external.d.ts +4 -2
- package/dist/module.no-external.js +1 -1
- package/dist/module.no-external.js.map +1 -1
- package/dist/recorder-v2.js.map +1 -1
- package/dist/recorder.js.map +1 -1
- package/dist/src/sessionid.d.ts +2 -0
- package/dist/src/types.d.ts +2 -2
- package/dist/surveys-preview.js.map +1 -1
- package/dist/surveys.js.map +1 -1
- package/dist/tracing-headers.js.map +1 -1
- package/lib/package.json +3 -3
- package/lib/src/entrypoints/dead-clicks-autocapture.js.map +1 -1
- package/lib/src/extensions/exception-autocapture/error-conversion.js +1 -1
- package/lib/src/extensions/exception-autocapture/error-conversion.js.map +1 -1
- package/lib/src/extensions/replay/config.js +1 -1
- package/lib/src/extensions/replay/config.js.map +1 -1
- package/lib/src/extensions/replay/sessionrecording.js.map +1 -1
- package/lib/src/posthog-core.js.map +1 -1
- package/lib/src/remote-config.js +30 -27
- package/lib/src/remote-config.js.map +1 -1
- package/lib/src/sessionid.d.ts +2 -0
- package/lib/src/sessionid.js +21 -9
- package/lib/src/sessionid.js.map +1 -1
- package/lib/src/types.d.ts +2 -2
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/event-utils.js.map +1 -1
- package/lib/src/utils/user-agent-utils.js.map +1 -1
- package/lib/src/web-experiments-types.js.map +1 -1
- package/package.json +3 -3
package/dist/module.d.ts
CHANGED
|
@@ -185,7 +185,7 @@ declare const knownUnsafeEditableEvent: readonly ["$snapshot", "$pageview", "$pa
|
|
|
185
185
|
*
|
|
186
186
|
* Some features of PostHog rely on receiving 100% of these events
|
|
187
187
|
*/
|
|
188
|
-
type KnownUnsafeEditableEvent = typeof knownUnsafeEditableEvent[number];
|
|
188
|
+
type KnownUnsafeEditableEvent = (typeof knownUnsafeEditableEvent)[number];
|
|
189
189
|
/**
|
|
190
190
|
* These are known events PostHog events that can be processed by the `beforeCapture` function
|
|
191
191
|
* That means PostHog functionality does not rely on receiving 100% of these for calculations
|
|
@@ -775,7 +775,7 @@ type ErrorMetadata = {
|
|
|
775
775
|
defaultExceptionMessage?: string;
|
|
776
776
|
};
|
|
777
777
|
declare const severityLevels: readonly ["fatal", "error", "warning", "log", "info", "debug"];
|
|
778
|
-
declare type SeverityLevel = typeof severityLevels[number];
|
|
778
|
+
declare type SeverityLevel = (typeof severityLevels)[number];
|
|
779
779
|
interface ErrorProperties {
|
|
780
780
|
$exception_type: string;
|
|
781
781
|
$exception_message: string;
|
|
@@ -995,6 +995,7 @@ declare class SessionIdManager {
|
|
|
995
995
|
private _sessionActivityTimestamp;
|
|
996
996
|
private _sessionIdChangedHandlers;
|
|
997
997
|
private readonly _sessionTimeoutMs;
|
|
998
|
+
private _enforceIdleTimeout;
|
|
998
999
|
constructor(instance: PostHog, sessionIdGenerator?: () => string, windowIdGenerator?: () => string);
|
|
999
1000
|
get sessionTimeoutMs(): number;
|
|
1000
1001
|
onSessionId(callback: SessionIdChangedCallback): () => void;
|
|
@@ -1016,6 +1017,7 @@ declare class SessionIdManager {
|
|
|
1016
1017
|
} | undefined;
|
|
1017
1018
|
lastActivityTimestamp: number;
|
|
1018
1019
|
};
|
|
1020
|
+
private resetIdleTimer;
|
|
1019
1021
|
}
|
|
1020
1022
|
|
|
1021
1023
|
/**
|
package/dist/module.full.d.ts
CHANGED
|
@@ -318,6 +318,7 @@ declare class SessionIdManager {
|
|
|
318
318
|
private _sessionActivityTimestamp;
|
|
319
319
|
private _sessionIdChangedHandlers;
|
|
320
320
|
private readonly _sessionTimeoutMs;
|
|
321
|
+
private _enforceIdleTimeout;
|
|
321
322
|
constructor(instance: PostHog, sessionIdGenerator?: () => string, windowIdGenerator?: () => string);
|
|
322
323
|
get sessionTimeoutMs(): number;
|
|
323
324
|
onSessionId(callback: SessionIdChangedCallback): () => void;
|
|
@@ -339,6 +340,7 @@ declare class SessionIdManager {
|
|
|
339
340
|
} | undefined;
|
|
340
341
|
lastActivityTimestamp: number;
|
|
341
342
|
};
|
|
343
|
+
private resetIdleTimer;
|
|
342
344
|
}
|
|
343
345
|
|
|
344
346
|
/**
|
|
@@ -1712,7 +1714,7 @@ declare const knownUnsafeEditableEvent: readonly ["$snapshot", "$pageview", "$pa
|
|
|
1712
1714
|
*
|
|
1713
1715
|
* Some features of PostHog rely on receiving 100% of these events
|
|
1714
1716
|
*/
|
|
1715
|
-
type KnownUnsafeEditableEvent = typeof knownUnsafeEditableEvent[number];
|
|
1717
|
+
type KnownUnsafeEditableEvent = (typeof knownUnsafeEditableEvent)[number];
|
|
1716
1718
|
/**
|
|
1717
1719
|
* These are known events PostHog events that can be processed by the `beforeCapture` function
|
|
1718
1720
|
* That means PostHog functionality does not rely on receiving 100% of these for calculations
|
|
@@ -2302,7 +2304,7 @@ type ErrorMetadata = {
|
|
|
2302
2304
|
defaultExceptionMessage?: string;
|
|
2303
2305
|
};
|
|
2304
2306
|
declare const severityLevels: readonly ["fatal", "error", "warning", "log", "info", "debug"];
|
|
2305
|
-
declare type SeverityLevel = typeof severityLevels[number];
|
|
2307
|
+
declare type SeverityLevel = (typeof severityLevels)[number];
|
|
2306
2308
|
interface ErrorProperties {
|
|
2307
2309
|
$exception_type: string;
|
|
2308
2310
|
$exception_message: string;
|