posthog-node 4.13.0 → 4.14.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.
- package/CHANGELOG.md +4 -0
- package/lib/index.cjs.js +26 -2
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +10 -0
- package/lib/index.esm.js +26 -2
- package/lib/index.esm.js.map +1 -1
- package/lib/posthog-core/src/index.d.ts +10 -7
- package/package.json +1 -1
|
@@ -92,6 +92,16 @@ export declare abstract class PostHogCoreStateless {
|
|
|
92
92
|
*** SURVEYS
|
|
93
93
|
***/
|
|
94
94
|
getSurveysStateless(): Promise<SurveyResponse['surveys']>;
|
|
95
|
+
/***
|
|
96
|
+
*** SUPER PROPERTIES
|
|
97
|
+
***/
|
|
98
|
+
private _props;
|
|
99
|
+
protected get props(): PostHogEventProperties;
|
|
100
|
+
protected set props(val: PostHogEventProperties | undefined);
|
|
101
|
+
register(properties: {
|
|
102
|
+
[key: string]: any;
|
|
103
|
+
}): Promise<void>;
|
|
104
|
+
unregister(property: string): Promise<void>;
|
|
95
105
|
/***
|
|
96
106
|
*** QUEUEING AND FLUSHING
|
|
97
107
|
***/
|
|
@@ -118,10 +128,7 @@ export declare abstract class PostHogCore extends PostHogCoreStateless {
|
|
|
118
128
|
protected sessionProps: PostHogEventProperties;
|
|
119
129
|
constructor(apiKey: string, options?: PostHogCoreOptions);
|
|
120
130
|
protected setupBootstrap(options?: Partial<PostHogCoreOptions>): void;
|
|
121
|
-
private get props();
|
|
122
|
-
private set props(value);
|
|
123
131
|
private clearProps;
|
|
124
|
-
private _props;
|
|
125
132
|
on(event: string, cb: (...args: any[]) => void): () => void;
|
|
126
133
|
reset(propertiesToKeep?: PostHogPersistedProperty[]): void;
|
|
127
134
|
protected getCommonEventProperties(): any;
|
|
@@ -139,10 +146,6 @@ export declare abstract class PostHogCore extends PostHogCoreStateless {
|
|
|
139
146
|
* * @returns {string} The stored distinct ID. This may be an empty string if the client is not yet fully initialized.
|
|
140
147
|
*/
|
|
141
148
|
getDistinctId(): string;
|
|
142
|
-
unregister(property: string): Promise<void>;
|
|
143
|
-
register(properties: {
|
|
144
|
-
[key: string]: any;
|
|
145
|
-
}): Promise<void>;
|
|
146
149
|
registerForSession(properties: {
|
|
147
150
|
[key: string]: any;
|
|
148
151
|
}): void;
|