From 5b2e04b37096015c98e930dc752498ef9af85c4c Mon Sep 17 00:00:00 2001 From: Dhenain Ambroise Date: Fri, 2 Dec 2022 05:48:25 +0100 Subject: [PATCH] Update posthog-js + Fix PostHog type --- lib/config.ts | 4 ++-- yarn.lock | 22 +++++++++++----------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/config.ts b/lib/config.ts index 4b3d6e8..bab17e9 100644 --- a/lib/config.ts +++ b/lib/config.ts @@ -5,7 +5,7 @@ * for optional depenencies. */ import { parsePageId } from 'notion-utils' -import type posthog from 'posthog-js' +import { PostHogConfig } from 'posthog-js' import { getEnv, getSiteConfig } from './get-config-value' import { NavigationLink } from './site-config' @@ -168,7 +168,7 @@ export const fathomConfig = fathomId : undefined export const posthogId = process.env.NEXT_PUBLIC_POSTHOG_ID -export const posthogConfig: posthog.Config = { +export const posthogConfig: Partial = { api_host: 'https://app.posthog.com' } diff --git a/yarn.lock b/yarn.lock index 1b375a4..5fd81fc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -459,10 +459,10 @@ resolved "https://registry.yarnpkg.com/@resvg/resvg-wasm/-/resvg-wasm-2.0.0-alpha.4.tgz#fc2f86186a9641df030d8f9f3f9d995899cd1ecb" integrity sha512-pWIG9a/x1ky8gXKRhPH1OPKpHFoMN1ISLbJ+O+gPXQHIAKhNd5I28RlWf7q576hAOQA9JZTlo3p/M2uyLzJmmw== -"@sentry/types@^6.11.0": - version "6.19.4" - resolved "https://registry.npmjs.org/@sentry/types/-/types-6.19.4.tgz" - integrity sha512-fzLiQPrjJQ8HgFgA2VqnpLiEOrTJ2ItRY8RY7Cn4038HACoYWYDjrkdVJQBq6IyrxxkgWOSLZXnv85uozBQC+g== +"@sentry/types@7.22.0": + version "7.22.0" + resolved "https://registry.yarnpkg.com/@sentry/types/-/types-7.22.0.tgz#58e4ce77b523048e0f31e2ea4b597946d76f6079" + integrity sha512-LhCL+wb1Jch+OesB2CIt6xpfO1Ab6CRvoNYRRzVumWPLns1T3ZJkarYfhbLaOEIb38EIbPgREdxn2AJT560U4Q== "@shuding/opentype.js@1.4.0-beta.0": version "1.4.0-beta.0" @@ -2881,13 +2881,13 @@ postcss@8.4.14: source-map-js "^1.0.2" posthog-js@^1.20.2: - version "1.20.2" - resolved "https://registry.npmjs.org/posthog-js/-/posthog-js-1.20.2.tgz" - integrity sha512-0HxG2aVObhGz6I98+N/tTZ0Azkus6vYPDS+TiDFO1UWx88QVzflcTAhybsBdhG0xfmghuC6jvFui73hjdimZeg== + version "1.36.1" + resolved "https://registry.yarnpkg.com/posthog-js/-/posthog-js-1.36.1.tgz#56786329e7dbce800c89920329dbafde827ef6d6" + integrity sha512-Uy5pWkktFjwQ8FGykwmB5daCMkAV6zZvoWD8gsyEoO2oict+x8F81RE4u7ZGYSODgXzu51aMzcoRyXysZwBTTw== dependencies: - "@sentry/types" "^6.11.0" + "@sentry/types" "7.22.0" fflate "^0.4.1" - rrweb-snapshot "^1.1.7" + rrweb-snapshot "^1.1.14" prebuild-install@^6.1.2: version "6.1.4" @@ -3237,9 +3237,9 @@ rimraf@^3.0.2: dependencies: glob "^7.1.3" -rrweb-snapshot@^1.1.7: +rrweb-snapshot@^1.1.14: version "1.1.14" - resolved "https://registry.npmjs.org/rrweb-snapshot/-/rrweb-snapshot-1.1.14.tgz" + resolved "https://registry.yarnpkg.com/rrweb-snapshot/-/rrweb-snapshot-1.1.14.tgz#9d4d9be54a28a893373428ee4393ec7e5bd83fcc" integrity sha512-eP5pirNjP5+GewQfcOQY4uBiDnpqxNRc65yKPW0eSoU1XamDfc4M8oqpXGMyUyvLyxFDB0q0+DChuxxiU2FXBQ== rss@^1.2.2: