From c09b649801b418a989ee05680a3e881fbed16949 Mon Sep 17 00:00:00 2001 From: Damien Simonin Feugas Date: Tue, 12 Nov 2024 08:57:55 +0100 Subject: [PATCH] docs: exposes types and updates example apps for beforeSend (#154) --- apps/astro/package.json | 1 + apps/astro/src/components/BaseHead.astro | 4 - apps/astro/src/layouts/Base.astro | 8 + apps/astro/tsconfig.json | 3 +- apps/nuxt/app.vue | 10 + apps/nuxt/layouts/default.vue | 4 +- apps/sveltekit/src/routes/+layout.js | 3 - apps/sveltekit/src/routes/+layout.ts | 13 + apps/vue/src/App.vue | 11 +- packages/web/src/astro/component.ts | 6 + packages/web/src/astro/index.astro | 3 +- packages/web/src/generic.ts | 4 +- packages/web/src/nextjs/index.tsx | 4 +- packages/web/src/nuxt/index.ts | 2 + packages/web/src/react.tsx | 4 +- packages/web/src/remix/index.tsx | 3 +- packages/web/src/sveltekit/index.ts | 5 +- packages/web/src/types.ts | 2 + packages/web/src/vue/index.ts | 2 + pnpm-lock.yaml | 11989 ++++++--------------- 20 files changed, 3215 insertions(+), 8866 deletions(-) delete mode 100644 apps/astro/src/components/BaseHead.astro delete mode 100644 apps/sveltekit/src/routes/+layout.js create mode 100644 apps/sveltekit/src/routes/+layout.ts diff --git a/apps/astro/package.json b/apps/astro/package.json index 90e0b83..dcc9dde 100644 --- a/apps/astro/package.json +++ b/apps/astro/package.json @@ -11,6 +11,7 @@ "start": "astro dev" }, "dependencies": { + "@astrojs/ts-plugin": "^1.10.4", "@vercel/analytics": "workspace:*", "astro": "latest" }, diff --git a/apps/astro/src/components/BaseHead.astro b/apps/astro/src/components/BaseHead.astro deleted file mode 100644 index 7bfda32..0000000 --- a/apps/astro/src/components/BaseHead.astro +++ /dev/null @@ -1,4 +0,0 @@ ---- -import Analytics from '@vercel/analytics/astro'; ---- - diff --git a/apps/astro/src/layouts/Base.astro b/apps/astro/src/layouts/Base.astro index c506df1..c68e148 100644 --- a/apps/astro/src/layouts/Base.astro +++ b/apps/astro/src/layouts/Base.astro @@ -3,6 +3,14 @@ import Analytics from '@vercel/analytics/astro'; const { title } = Astro.props; --- + + + diff --git a/apps/astro/tsconfig.json b/apps/astro/tsconfig.json index e51e062..0a31008 100644 --- a/apps/astro/tsconfig.json +++ b/apps/astro/tsconfig.json @@ -1,6 +1,7 @@ { "extends": "astro/tsconfigs/base", "compilerOptions": { - "strictNullChecks": true + "strictNullChecks": true, + "plugins": [{ "name": "@astrojs/ts-plugin" }] } } diff --git a/apps/nuxt/app.vue b/apps/nuxt/app.vue index f8eacfa..b56c21c 100644 --- a/apps/nuxt/app.vue +++ b/apps/nuxt/app.vue @@ -1,4 +1,14 @@ + +