posthog-js 1.279.2 → 1.280.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.
Files changed (39) hide show
  1. package/dist/all-external-dependencies.js.map +1 -1
  2. package/dist/array.full.es5.js +1 -1
  3. package/dist/array.full.es5.js.map +1 -1
  4. package/dist/array.full.js +1 -1
  5. package/dist/array.full.js.map +1 -1
  6. package/dist/array.full.no-external.js +1 -1
  7. package/dist/array.full.no-external.js.map +1 -1
  8. package/dist/array.js +1 -1
  9. package/dist/array.js.map +1 -1
  10. package/dist/array.no-external.js +1 -1
  11. package/dist/array.no-external.js.map +1 -1
  12. package/dist/customizations.full.js +1 -1
  13. package/dist/exception-autocapture.js.map +1 -1
  14. package/dist/lazy-recorder.js +1 -1
  15. package/dist/main.js +1 -1
  16. package/dist/main.js.map +1 -1
  17. package/dist/module.d.ts +8 -0
  18. package/dist/module.full.d.ts +8 -0
  19. package/dist/module.full.js +1 -1
  20. package/dist/module.full.js.map +1 -1
  21. package/dist/module.full.no-external.d.ts +8 -0
  22. package/dist/module.full.no-external.js +1 -1
  23. package/dist/module.full.no-external.js.map +1 -1
  24. package/dist/module.js +1 -1
  25. package/dist/module.js.map +1 -1
  26. package/dist/module.no-external.d.ts +8 -0
  27. package/dist/module.no-external.js +1 -1
  28. package/dist/module.no-external.js.map +1 -1
  29. package/dist/posthog-recorder.js +1 -1
  30. package/dist/src/posthog-exceptions.d.ts +2 -0
  31. package/dist/src/types.d.ts +6 -0
  32. package/dist/surveys-preview.d.ts +8 -0
  33. package/lib/package.json +1 -1
  34. package/lib/src/posthog-exceptions.d.ts +2 -0
  35. package/lib/src/posthog-exceptions.js +31 -15
  36. package/lib/src/posthog-exceptions.js.map +1 -1
  37. package/lib/src/types.d.ts +6 -0
  38. package/lib/src/types.js.map +1 -1
  39. package/package.json +2 -2
@@ -1738,6 +1738,12 @@ interface ErrorTrackingOptions {
1738
1738
  * @default false
1739
1739
  */
1740
1740
  captureExtensionExceptions?: boolean;
1741
+ /**
1742
+ * UNSTABLE: determines whether exception caused by the PostHog SDK will be captured
1743
+ *
1744
+ * @default false
1745
+ */
1746
+ __capturePostHogExceptions?: boolean;
1741
1747
  /**
1742
1748
  * ADVANCED: alters the refill rate for the token bucket mutation throttling
1743
1749
  * Normally only altered alongside posthog support guidance.
@@ -2661,6 +2667,8 @@ declare class PostHogExceptions {
2661
2667
  sendExceptionEvent(properties: Properties): CaptureResult | undefined;
2662
2668
  private _matchesSuppressionRule;
2663
2669
  private _isExtensionException;
2670
+ private _isPostHogException;
2671
+ private _isExceptionList;
2664
2672
  }
2665
2673
 
2666
2674
  /**