posthog-js
Advanced tools
Comparing version 1.9.1 to 1.9.2
@@ -0,1 +1,6 @@ | ||
## 1.9.2 - 2021-03-12 | ||
- Add SentryIntegration TS (#202) | ||
- add SentryIntegration typing (#202) | ||
## 1.9.1 - 2021-03-08 | ||
@@ -2,0 +7,0 @@ |
@@ -454,4 +454,24 @@ // Type definitions for exported methods | ||
/** | ||
* Integrate Sentry with PostHog. This will add a direct link to the person in Sentry, and an $exception event in PostHog | ||
* | ||
* ### Usage | ||
* | ||
* Sentry.init({ | ||
* dsn: 'https://example', | ||
* integrations: [ | ||
* new posthog.SentryIntegration(posthog) | ||
* ] | ||
* }) | ||
* | ||
* @param {Object} [posthog] The posthog object | ||
* @param {string} [organization] Optional: The Sentry organization, used to send a direct link from PostHog to Sentry | ||
* @param {Number} [projectId] Optional: The Sentry project id, used to send a direct link from PostHog to Sentry | ||
* @param {string} [prefix] Optional: Url of a self-hosted sentry instance (default: https://sentry.io/organizations/) | ||
*/ | ||
static SentryIntegration(posthog: posthog, organization: string, projectId: number, prefix: string): void | ||
static toString(): string | ||
/* Will log all capture requests to the Javascript console, including event properties for easy debugging */ | ||
static debug(): void | ||
@@ -458,0 +478,0 @@ } |
{ | ||
"name": "posthog-js", | ||
"version": "1.9.1", | ||
"version": "1.9.2", | ||
"description": "Posthog-js allows you to automatically capture usage and send events to PostHog.", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/PostHog/posthog-js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
555277
11603