posthog-js-lite 3.4.0 → 3.4.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.
@@ -186,7 +186,7 @@ export declare abstract class PostHogCore extends PostHogCoreStateless {
186
186
  /***
187
187
  *** ERROR TRACKING
188
188
  ***/
189
- captureException(error: Error, additionalProperties?: {
189
+ captureException(error: unknown, additionalProperties?: {
190
190
  [key: string]: any;
191
191
  }): void;
192
192
  /**
@@ -11,4 +11,5 @@ export declare function currentTimestamp(): number;
11
11
  export declare function currentISOTime(): string;
12
12
  export declare function safeSetTimeout(fn: () => void, timeout: number): any;
13
13
  export declare const isPromise: (obj: any) => obj is Promise<any>;
14
+ export declare const isError: (x: unknown) => x is Error;
14
15
  export declare function getFetch(): FetchLike | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "posthog-js-lite",
3
- "version": "3.4.0",
3
+ "version": "3.4.1",
4
4
  "main": "lib/index.cjs.js",
5
5
  "module": "lib/index.esm.js",
6
6
  "types": "lib/index.d.ts",