From 1d375c0e5cfe9164f1e881ee4214191485fc5e0b Mon Sep 17 00:00:00 2001 From: PostHog Bot <69588470+posthog-bot@users.noreply.github.com> Date: Thu, 26 Oct 2023 05:12:44 -0400 Subject: [PATCH] chore(deps): Update posthog-js to 1.85.4 (#18199) --- frontend/src/lib/components/Errors/ErrorDisplay.tsx | 4 ++-- package.json | 2 +- pnpm-lock.yaml | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/frontend/src/lib/components/Errors/ErrorDisplay.tsx b/frontend/src/lib/components/Errors/ErrorDisplay.tsx index 46a7e4b74a05c..4c14a6e44412a 100644 --- a/frontend/src/lib/components/Errors/ErrorDisplay.tsx +++ b/frontend/src/lib/components/Errors/ErrorDisplay.tsx @@ -2,8 +2,8 @@ import { EventType, RecordingEventType } from '~/types' import { LemonTag } from 'lib/lemon-ui/LemonTag/LemonTag' import { IconFlag } from 'lib/lemon-ui/icons' import clsx from 'clsx' -import posthog from 'posthog-js' import { Link } from 'lib/lemon-ui/Link' +import posthog from 'posthog-js' interface StackFrame { filename: string @@ -43,7 +43,7 @@ function StackTrace({ rawTrace }: { rawTrace: string }): JSX.Element | null { ) } catch (e: any) { //very meta - posthog.captureException(e, { tag: 'error-display-stack-trace' }) + posthog.capture('Cannot parse stack trace in Exception event', { tag: 'error-display-stack-trace', e }) return Error parsing stack trace } } diff --git a/package.json b/package.json index 04efee98671d6..583620eca93e3 100644 --- a/package.json +++ b/package.json @@ -134,7 +134,7 @@ "md5": "^2.3.0", "monaco-editor": "^0.39.0", "papaparse": "^5.4.1", - "posthog-js": "1.85.3", + "posthog-js": "1.85.4", "posthog-js-lite": "2.0.0-alpha5", "prettier": "^2.8.8", "prop-types": "^15.7.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d5c9d73418389..70f37cc6ddc4d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -216,8 +216,8 @@ dependencies: specifier: ^5.4.1 version: 5.4.1 posthog-js: - specifier: 1.85.3 - version: 1.85.3 + specifier: 1.85.4 + version: 1.85.4 posthog-js-lite: specifier: 2.0.0-alpha5 version: 2.0.0-alpha5 @@ -15373,8 +15373,8 @@ packages: resolution: {integrity: sha512-tlkBdypJuvK/s00n4EiQjwYVfuuZv6vt8BF3g1ooIQa2Gz9Vz80p8q3qsPLZ0V5ErGRy6i3Q4fWC9TDzR7GNRQ==} dev: false - /posthog-js@1.85.3: - resolution: {integrity: sha512-RHWLDamFU1k4SjolS/DWr8tYbuWQaJUJywxlKTUJp/ESIe9bJz9SkWuDNqgTV58fJnxdjCCtD89o+gMimfOSGw==} + /posthog-js@1.85.4: + resolution: {integrity: sha512-V2pwCcKb1MHFozVqAi2nYu4b3h/+QpP0NrN2kyxzp/v2tcVZXLm02qAAgAremVyP6WAX18pqjF6MvlKRjP87RA==} dependencies: fflate: 0.4.8 dev: false